

:root{
  /* ===============================
     PALETA (nueva)
     =============================== */
  --black: #1E231D;
  --white: #F2F2F2;
  --gray:  #4E5C53;

  --primary:   #3B4C36;
  --secondary: #C9A887;
  --accent:    #B59C67;

  /* ===============================
     ALIAS (compat con tu CSS actual)
     =============================== */
  --bg:  var(--black);
  --bg2: #2D332B;           
  --ink: var(--white);
  --line: var(--gray);

  --muted: rgba(242,242,242,.72);
  --accent-dim: rgba(181,156,103,.28);

  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Quicksand", sans-serif, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;

  --radius: 22px;
  --radius-sm: 3px;

  --pad: 18px;

  --shadow: 0 18px 60px rgba(0,0,0,.55);

  /* spotlight vars */
  --mx: 50vw;
  --my: 50vh;
}

*{ box-sizing:border-box; }
html, body{ height:100%; }

body{
  margin:0;
  color: var(--ink);
  font-family: var(--sans);
  overflow:hidden; /* scroll vive dentro de .experience */

  /* Background global: tonos verdes */
  background:
    radial-gradient(1200px 900px at 60% 10%, rgba(92,108,86,.42), transparent 62%),
    radial-gradient(900px 700px at 22% 65%, rgba(66,78,61,.55), transparent 60%),
    radial-gradient(900px 700px at 85% 78%, rgba(58,69,54,.35), transparent 62%),
    linear-gradient(180deg, var(--bg), var(--bg2));
}
.experience { scroll-behavior: smooth; }

/* ==========================================================================
   SCROLLER + SNAP
   IMPORTANT: NO scroll-behavior smooth acá (evita flicker con snap)
   ========================================================================== */
.experience{
  height: 100svh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
}

.scene{
  position:relative;
  min-height: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: always;

  display:grid;
  place-items:center;

  padding: calc(86px + var(--pad)) var(--pad) var(--pad);
  border-bottom: 1px solid rgba(74,79,72,.55);
  overflow:hidden;
}

/* Capas para parallax */
/* Apaga parallax de capas (mínimo) */
.layer{
  transform: none !important;
  will-change: auto !important;
}

.scene__bg{
  position:absolute;
  inset:-12%;
  z-index: 0;
  background:
    radial-gradient(700px 520px at 25% 30%, rgba(92,108,86,.34), transparent 60%),
    radial-gradient(950px 700px at 78% 22%, rgba(66,78,61,.40), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(0,0,0,.00));
  filter: saturate(1.02) contrast(1.02);
}

.scene__fog{
  position:absolute;
  inset:-18%;
  z-index: 1;
  background:
    radial-gradient(closest-side at 35% 45%, rgba(255,255,255,.05), transparent 70%),
    radial-gradient(closest-side at 70% 60%, rgba(255,255,255,.03), transparent 72%);
  opacity:.7;
  mix-blend-mode: screen;
}

.scene__grain{
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index: 2;
  opacity:.08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}


/* ==========================================================================
   CONTENT
   ========================================================================== */
.content{
  position:relative;
  z-index: 10;
  /* width: min(920px, 100%); */
}
.content--wide{ width: min(1120px, 100%); }

.kicker{
  margin:0 0 10px;
  color: var(--muted);
  letter-spacing:.18em;
  text-transform:uppercase;
  font-size: 11px;
}
.title{
  margin:0 0 20px;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: .01em;
  font-size: 50px;
  line-height: 1.05;
}
.lead{
  margin:0;
  color: rgba(242,242,242,.82);
  max-width: 60ch;
  font-size: 15px;
  line-height: 1.6;
}

/* ==========================================================================
   RECEPCIÓN: VIDEO INTRO + LOBBY AL FINAL DEL VIDEO
   ========================================================================== */
.scene--reception .scene__video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit: cover;
  z-index: 0;
  opacity: .92;
  filter: contrast(1.04) saturate(.95) brightness(1.05);
}

.scene--reception .scene__endfade{
  position:absolute;
  inset:0;
  z-index: 4;
  pointer-events:none;

  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.6s ease, transform 1.8s ease;

  /* IMAGEN ESPIRAL + MÁSCARA MÁS SUAVE */
  background-image:
  radial-gradient(
    circle at center,
    rgba(0,0,0,.06) 0%,
    rgba(0,0,0,.18) 42%,
    rgba(0,0,0,.36) 72%,
    rgba(0,0,0,.55) 100%
  ),
  url("../assets/img/bg/recepcion.png");

  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
}

.scene--reception.is-endfade-on .scene__endfade{
  opacity: 1;
  transform: scale(1);
}
.scene--reception.is-endfade-on .scene__video{
  opacity: .08;
  transition: opacity 1.0s ease;
}

.scene--reception .content{
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  transition: opacity .7s ease, transform .8s ease;
}
.scene--reception.is-intro-ready .content{
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

#reception .content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* LOBBY CARD */
.lobby-card{
  position: relative;
  /* width: min(760px, 92vw); */
  padding: 30px 50px;
  margin-bottom: 60px;
  text-align: center;

  background: rgba(255,255,255,.02);
  /* backdrop-filter: blur(15px); */

  border: 1px solid rgba(255,255,255,.05);
  border-radius: var(--radius-sm);
  box-shadow: 0 22px 80px rgba(0,0,0,.35);
}
.lobby-card::before{
  content:"";
  position:absolute;
  inset: 18px;
  /* border: 1px solid rgba(255,255,255,.06); */
  pointer-events:none;
}
.lobby-card::after{
  content:"";
  position:absolute;
  inset: 18px;
  pointer-events:none;
  background:
    linear-gradient(var(--accent), var(--accent)) left top / 16px 1px no-repeat,
    linear-gradient(var(--accent), var(--accent)) left top / 1px 16px no-repeat,
    linear-gradient(var(--accent), var(--accent)) right top / 16px 1px no-repeat,
    linear-gradient(var(--accent), var(--accent)) right top / 1px 16px no-repeat,
    linear-gradient(var(--accent), var(--accent)) left bottom / 16px 1px no-repeat,
    linear-gradient(var(--accent), var(--accent)) left bottom / 1px 16px no-repeat,
    linear-gradient(var(--accent), var(--accent)) right bottom / 16px 1px no-repeat,
    linear-gradient(var(--accent), var(--accent)) right bottom / 1px 16px no-repeat;
  opacity: .55;
}

.lobby-eyebrow{
  margin: 0 0 16px;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-size: 11px;
  color: rgba(242,242,242,.65);
}
.lobby-title{
  font-family: var(--serif);
  font-size: clamp(44px, 6vw, 70px);
  letter-spacing: .10em;
  margin: 10px 0;
  font-weight: 500;
}

.lobby-tagline{
  font-family: var(--serif);
  font-style: italic;
  color: rgba(242,242,242,.70);
  font-size: 14px;
  margin: 0 0 26px;
}

/* ==========================================================================
   GALLERY GRID
   ========================================================================== */

.scene--galleryIntro{
  place-items: stretch;
  padding: 0;     
  
  position: relative;
  min-height: 100vh;
}

.scene--galleryIntro .scene__photo{
  position: absolute;
  inset: 0;
  z-index: 0;

  background-image: url("../assets/img/bg/galeria.jpg");
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;

  filter: contrast(1.05) saturate(.95) brightness(1.05);
}

.scene--galleryIntro .scene__photo::after{
  content:"";
  position:absolute;
  inset:0;
 background:
  radial-gradient(1200px 800px at 7% 15%, rgba(0,0,0,.32), transparent 40%),
  linear-gradient(
    90deg,
    rgba(0,0,0,.56) 0%,
    rgba(0,0,0,.28) 11%,
    rgba(0,0,0,.16) 36%,
    rgba(0,0,0,0) 87%
  );
}
.scene--galleryIntro{
  --padTop:    100px;
  --padRight:  0px;
  --padBottom: 35px;
  --padLeft:   0px;

  --titleShiftY:  20px;   
  --leadShiftY:   0px;    
  --btnShiftY:    0px;    

  --maxContent: 1400px;
  --leadMax: 52ch;

  --safeTop: 0px; 
}


.content--galleryIntro{
  position: relative;
  z-index: 2;

  min-height: 100vh;
  max-width: var(--maxContent);
  margin: 0 auto;

  display: grid;
  grid-template-rows: auto 1fr auto;          
  grid-template-columns: 1fr 1fr;             
  column-gap: clamp(16px, 4vw, 56px);

  padding:
    calc(var(--padTop) + var(--safeTop))
    var(--padRight)
    var(--padBottom)
    var(--padLeft);
}

.scene--galleryIntro .title,
.scene--workshops .title{
  grid-column: 1 / -1;
  margin: 0;
  position: relative;
  top: var(--titleShiftY);

  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(54px, 6.2vw, 80px);
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 0.95;

  color: rgba(242,242,242,.92);
  text-shadow: 0 18px 80px rgba(0,0,0,.55);
}

.scene--galleryIntro .lead{
  grid-row: 3;
  grid-column: 1;
  margin: 0;
  max-width: var(--leadMax);
  align-self: end;

  position: relative;
  top: var(--leadShiftY);

  font-size: clamp(13px, 1.35vw, 18px);
  line-height: 1.75;

  color: rgba(242,242,242,.70);
}
.content--galleryIntro .btn{
 grid-row: 3;
  grid-column: 2;
  justify-self: end;
  align-self: end;

  position: relative;
  top: var(--btnShiftY);
}

/* ==========================================================================
   GALLERY ROOMS — DOORS (cada puerta es una SCENE)
   ========================================================================== */

#gallery-room-01{ background-image: url("../assets/img/galeria/sala1.png"); }
#gallery-room-02{ background-image: url("../assets/img/galeria/sala2.png"); }
#gallery-room-03{ background-image: url("../assets/img/galeria/sala3.jpg"); }

.scene.scene--door{
  position: relative;
  padding: 0;
  overflow: hidden; 
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.scene--door::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index: 0;
  background: radial-gradient(
    70% 60% at 50% 40%,
    rgba(0,0,0,.10),
    rgba(0,0,0,.68)
  );
}

.scene.scene--door .door__panel{
  position: absolute;
  z-index: 1;
  width: min(560px, 86vw);
  padding: 0;
  background: none;
  border: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  text-shadow: 0 18px 60px rgba(0,0,0,.65);
}

.scene.scene--door::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:0;
}

.scene.scene--door.door--left::after{
  background: linear-gradient(90deg,
    rgba(0,0,0,.72) 0%,
    rgba(0,0,0,.38) 45%,
    rgba(0,0,0,0) 75%
  );
}
.scene.scene--door.door--right::after{
  background: linear-gradient(270deg,
    rgba(0,0,0,.72) 0%,
    rgba(0,0,0,.38) 45%,
    rgba(0,0,0,0) 75%
  );
}

/* Posicionamiento de Panel de textos */
.scene--door{
  --panelX: 72px;           
  --panelY: 120px;          
  --panelW: min(560px, 86vw);
  --panelAlign: left;      
}

.scene--door .door__panel{
  width: var(--panelW);

  top: var(--panelY);
  left: var(--panelX);
  right: auto;

  text-align: left;
}

.scene--door.is-panel-right .door__panel{
  left: auto;
  right: var(--panelX);
  text-align: right;
}

/* Sala 1 (panel a la derecha) */
#gallery-room-01{
  --panelX: 160px;
  --panelY: 235px;
}

/* Sala 2  */
#gallery-room-02{
  --panelX: 100px;
  --panelY: 245px;
}

/* Sala 3 (panel a la derecha) */
#gallery-room-03{
  --panelX: 160px;
  --panelY: 160px;
}

/* Botones dentro de puertas */
.scene--door .door__panel--btns{
  display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
    padding: 20px 0px;
}
.scene--door .door__panel--btns.is-left{
  align-items: flex-start;
} 

/* ======================================================================
   ATELIER 
   ====================================================================== */
.scene--workshops{
  place-items: stretch;
}

.scene--workshops .scene__bg{
  position: absolute;
  z-index: 0;

  background-image: url("../assets/img/bg/atelier.jpg");
  background-size: cover;
  background-position: 50% 15%;
  background-repeat: no-repeat;

  filter: contrast(1.05) saturate(.9) brightness(.85);
}

.scene--workshops .scene__bg::after{
  content:"";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 600px at 30% 35%, rgba(0,0,0,.55), transparent 60%),
    linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.25) 55%, rgba(0,0,0,0) 100%);
}

.content.content--workshops{
  width: max(350px, 20%);
      margin-top: 50px;
}

.scene--workshops .title{
  position: relative;
  top: var(--titleShiftY);
}

.scene--workshops .lead{
  position: relative;
  top: var(--leadShiftY);
}


/* =========================================================
   ATELIER — escena con carrusel centrado + texto derecho
   ========================================================= */

.scene--workshops{
  --panelLeftX: clamp(18px, 4vw, 70px);
  --panelLeftY: 25%;               
  --panelLeftW: min(260px, 20vw);   

  /* galleryIntro */
  --titleShiftY: -34px;
  --leadShiftY: 60px;

  /* CARRUSEL */
  --atelier-center-x: 0px;
  --atelier-center-y: 8px;
  --atelier-center-top: 60%;

  /* PANEL DERECHO (info material) */
  --panelRightX: clamp(18px, 0vw, 70px);
  --panelRightY: 58%;
  --panelRightW: min(300px, 20vw);
  --atelier-right-x: -10px;
  --atelier-right-y: 0px;
}


.scene--workshops .atelierLeft{
   position: absolute;
  left: var(--panelLeftX);
  top: var(--panelLeftY);
  width: var(--panelLeftW);
  z-index: 3;
}

.scene--workshops .atelierCenter{
  position: absolute;
  left: 50%;
  top: var(--atelier-center-top);
  transform: translate(calc(-50% + var(--atelier-center-x)), calc(-50% + var(--atelier-center-y)));
  z-index: 4;
  pointer-events: none;
}

.atelierWheel{
  position: relative;
  width: min(440px, 48vw);
  height: 280px;
  pointer-events: auto;
  
  --arrow-offset-y: 80px;   
  --arrow-gap: 14px;      
  --arrow-size: 42px;
}

.atelierArrow{
  position: absolute;
  left: 50%;
  bottom: calc(-1 * var(--arrow-offset-y));
  width: var(--arrow-size);
  height: var(--arrow-size);

  display: grid;
  place-items: center;

  border-radius: var(--radius-sm);
  border: 1px solid rgba(242,242,242,.18);
  background: rgba(0,0,0,.12);
  color: rgba(242,242,242,.88);
  cursor: pointer;
  z-index: 8;

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  /* base transform (centrado) */
  transform: translateX(-50%);
  transition: background 180ms ease, transform 180ms ease;
}

.atelierArrow:hover{
  background: rgba(0,0,0,.20);
}

.atelierArrow:active{
  background: rgba(0,0,0,.26);
}

.atelierArrow--left{
  transform: translateX(calc(-50% - (var(--arrow-size) / 2) - var(--arrow-gap)));
}

.atelierArrow--right{
  transform: translateX(calc(-50% + (var(--arrow-size) / 2) + var(--arrow-gap)));
}

/* Stage 3D */
.atelierWheel__stage{
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  perspective: 1100px;
  perspective-origin: 50% 45%;
}

/* Card 3D */
.atelierCard{
  position: absolute;
  left: 50%;
  top: 54%;
  width: clamp(120px, 16vw, 160px);
  height: clamp(120px, 16vw, 160px);
  transform-style: preserve-3d;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;

  background: transparent;
  border: 0;

  opacity: 0;
  filter: saturate(1.02) contrast(1.02);
  will-change: transform, opacity;
  transition:
    transform 600ms cubic-bezier(.2,.85,.2,1),
    opacity 420ms cubic-bezier(.2,.85,.2,1);
}

.atelierCard__img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

  border-radius: 12px;
  box-shadow:
    0 40px 90px rgba(0,0,0,.55),
    0 10px 24px rgba(0,0,0,.35);
}

.scene--workshops .atelierRight{
  position: absolute;
  right: var(--panelRightX);
  top: var(--panelRightY);
  width: var(--panelRightW);
  transform: translate(var(--atelier-right-x), calc(-50% + var(--atelier-right-y)));
  z-index: 5;
}

.atelierInfo__kicker{
  opacity: .75;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: 12px;
  margin: 0 0 10px;
}

.atelierInfo__title{
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.05;
}

.atelierInfo__desc{
  margin: 0 0 14px;
  color: rgba(242,242,242,.78);
  font-size: 14px;
  line-height: 1.6;
}

.atelierInfo__meta{
  margin: 0;
  color: rgba(242,242,242,.65);
  font-size: 12.5px;
  letter-spacing: .02em;
}

.atelierInfo{
  transition: opacity 260ms ease, transform 260ms ease;
  margin-bottom: 50px
}
.atelierInfo.is-out{
  opacity: 0;
  transform: translateY(10px);
}

/* =========================
   EPÍLOGO (reutiliza sistema)
========================= */
.scene--epilogo{
  place-items: center;
}
.scene--epilogo .scene__bg{
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../assets/img/bg/epilogo.png");
  background-size: cover;
  background-position: 65% center;
  background-repeat: no-repeat;
  filter: contrast(1.05) saturate(.9) brightness(.85);
}
.scene--epilogo .scene__bg::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 600px at 50% 40%, rgba(0,0,0,.45), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.65), rgba(0,0,0,.48));
}
.scene--epilogo .content{
  position: relative;
  z-index: 3;
}
.scene--epilogo .title--h3{
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 5vw, 28px);
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.05;
}
.epilogoGrid{
  margin-top: 70px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(26px, 4vw, 56px);
  align-items: start;
}
.epilogoCol .lead{
  max-width: 52ch;
  margin-bottom: 40px;
}
.scene--epilogo .title{
  text-shadow: 0 4px 30px rgba(0,0,0,.6);
}
.scene--epilogo .lead{
  text-shadow: 0 2px 18px rgba(0,0,0,.55);
}
.scene--epilogo .btn--primary{
  backdrop-filter: blur(3px);
  background: rgba(201,169,110,.12);
  border-color: rgba(201,169,110,.5);
}
.scene--epilogo .btn--primary:hover{
  background: rgba(201,169,110,.22);
}
.epilogoBack{
  margin-top: 100px;
  display: flex;
  justify-content: center;
}

/* ==========================================================================
   COMPONENTS: FORM
   ========================================================================== */

/* Form */
.form{ margin-top: 16px; display:grid; gap: 12px; max-width: 520px; }
.field{ display:grid; gap: 6px; }
.field__label{ font-size: 12px; color: rgba(242,242,242,.70); }
.field__input{
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(242,242,242,.14);
  background: rgba(0,0,0,.22);
  color: var(--ink);
  padding: 12px 12px;
  outline: none;
}
.field__input--area{ resize: none; min-height: 92px; }
.actions{ display:flex; gap: 10px; }
.btn{
  cursor:pointer;
  font-family: var(--sans);
  text-transform: uppercase;
  padding: 12px 14px;
  font-size: 12px;
  border-radius:1px;
  letter-spacing: .18em;

}
.btn--primary{
  background: transparent;
  color: var(--ink);
  text-decoration: none;
   
  outline: 1px solid rgba(201,168,134,.55);
  outline-offset: 2px;
}

/* ==========================================================================
   REVEALS
   ========================================================================== */
.reveal{
  opacity:0;
  transform: translate3d(0, 18px, 0);
  transition: opacity .8s ease, transform .9s ease;
}
.reveal.is-in{
  opacity:1;
  transform: translate3d(0, 0, 0);
}

/* ==========================================================================
   SPOTLIGHT + CURSOR
   ========================================================================== */
.spotlight{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  background:
    radial-gradient(
      circle 220px at var(--mx) var(--my),
      rgba(255, 255, 255, .18) 0%,
      rgba(255, 255, 255, .08) 35%,
      rgba(0, 0, 0, .72) 72%,
      rgba(0, 0, 0, .88) 100%
    );
  mix-blend-mode: screen;
  opacity: .95;
}
@media (hover: none) and (pointer: coarse){
  .spotlight{ display:none; }
}
@media (hover: hover) and (pointer: fine){
  body{ cursor: none; }
}
.cursor-ring{
  position: fixed;
  left: var(--mx);
  top: var(--my);
  transform: translate3d(-50%, -50%, 0);
  z-index: 70;
  pointer-events: none;

  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(242,242,242,.55);

  box-shadow:
    0 0 22px rgba(255,255,255,.20),
    0 0 50px rgba(255,255,255,.10);

  background: radial-gradient(circle, rgba(255,255,255,.08), transparent 60%);
  opacity: .95;
  transition: width .18s ease, height .18s ease, border-color .18s ease, opacity .18s ease;
}
.cursor-ring.is-hover{
  width: 44px;
  height: 44px;
  border-color: rgba(242,242,242,.75);
  opacity: 1;
}