/* ==========================================================================
   RONDA 26-NOV-2026 (Desktop) · correcciones de diseño de Tash.
   Carga al último: manda sobre estilos.css y compartido.css sin tocarlos.
   - Paleta oro + verde de Akumal Natura Residence; el verde siempre lleva textura.
   - Botones con brillo que pasa; botones y tarjetas reaccionan al cursor.
   - Video que se enfoca al bajar (pantalla negra + play animado).
   - Ubícalo en mosaico, «Un diseño que dialoga» con fondo de naturaleza,
     caminos en vector y en espejo, Artigas en su marca clara, galería aparador.
   Solo se anima transform y opacity (Safari).
   ========================================================================== */
:root{
  --oro-1: #8a6a3c; --oro-2: #c3a062; --oro-3: #f0dfb4;
  --acento-lujo: linear-gradient(115deg,#7a5c34 0%,#b8944f 24%,#f0dfb4 50%,#b8944f 76%,#7a5c34 100%);
  --oro-linea: rgba(195,160,98,.55);
  --curva: cubic-bezier(.2,.7,.2,1);
}

/* --- Botones: brillo que cruza y respuesta al cursor ---------------------- */
.boton{ position: relative; overflow: hidden; isolation: isolate; }
.boton::after{
  content: ""; position: absolute; inset: -2px auto -2px 0; width: 46%; z-index: -1;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,.0) 20%, rgba(255,250,235,.75) 50%, rgba(255,255,255,0) 80%, transparent 100%);
  transform: translateX(-160%) skewX(-18deg); pointer-events: none;
  animation: boton-brillo 5.5s var(--curva) infinite;
}
.boton:nth-of-type(2)::after{ animation-delay: 1.2s; }
.boton--linea::after, .boton--fantasma::after{ background: linear-gradient(100deg, transparent, rgba(240,223,180,.35), transparent); }
.boton--solido::after{ background: linear-gradient(100deg, transparent, rgba(240,223,180,.28), transparent); }
@keyframes boton-brillo{
  0%, 62%{ transform: translateX(-160%) skewX(-18deg); }
  86%, 100%{ transform: translateX(330%) skewX(-18deg); }
}
.boton--linea, .boton--fantasma{ border-color: var(--oro-linea); }
@media (hover: hover){
  .boton:hover{ transform: translateY(-3px) scale(1.02); }
  .boton:hover::after{ animation: boton-brillo-ya .7s var(--curva) 1 forwards; }
  .boton:active{ transform: translateY(0) scale(.98); }
  .boton--linea:hover, .boton--fantasma:hover{ border-color: var(--oro-2); box-shadow: 0 0 0 4px rgba(195,160,98,.12); }
}
@keyframes boton-brillo-ya{ from{ transform: translateX(-160%) skewX(-18deg); } to{ transform: translateX(330%) skewX(-18deg); } }

/* --- Tarjetas de información: se levantan y se encienden al pasar ---------- */
.ficha__fila, .ficha__destacado, .zona__t, .reparto__parte, .paso,
.amen__min, .akmapa-lugar, .datos-fuente li, .vistazo figure{
  transition: transform .45s var(--curva), box-shadow .45s var(--curva), border-color .45s ease, background-color .45s ease;
}
@media (hover: hover){
  .ficha__fila:hover, .ficha__destacado:hover, .reparto__parte:hover, .paso:hover, .datos-fuente li:hover{
    transform: translateY(-4px);
    box-shadow: 0 22px 40px -22px rgba(22,37,13,.55), inset 0 0 0 1px var(--oro-linea);
  }
  .ficha__fila:hover .ficha__ico, .paso:hover .paso__n{ transform: scale(1.1) rotate(-4deg); }
  .ficha__ico, .paso__n{ transition: transform .45s var(--curva); }
  .zona__t:hover{ transform: translateY(-6px); box-shadow: 0 30px 50px -28px rgba(0,0,0,.7); }
  .zona__t img{ transition: transform 1.2s var(--curva); }
  .zona__t:hover img{ transform: scale(1.08); }
  .amen__min:hover{ transform: translateY(-4px); }
  .akmapa-lugar:hover{ transform: translateX(4px); }
}

/* --- El verde siempre con textura (hojas + líneas) y acento oro ------------ */
.bloque.oscuro:not(.bloque--portada){ isolation: isolate; overflow: hidden; }
.bloque.oscuro:not(.bloque--portada)::before{
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    url("../assets/img/textura-lineas.svg") center / cover no-repeat,
    linear-gradient(180deg, rgba(22,37,13,.86), rgba(22,37,13,.94)),
    url("../assets/img/fondo-hojas.webp") center / cover no-repeat;
  opacity: 1;
}
.bloque.oscuro:not(.bloque--portada)::after{
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 50% at 85% 10%, rgba(195,160,98,.16), transparent 70%),
              radial-gradient(50% 40% at 10% 95%, rgba(132,149,115,.18), transparent 70%);
}
.oscuro .rotulo, .oscuro .numeros__zona{ color: var(--oro-2); }
.oscuro .titular em{ background: var(--acento-lujo); -webkit-background-clip: text; background-clip: text; color: transparent; }
.zona__cifra b, .ficha__destacado-n{ background: var(--acento-lujo); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
/* Franjas verdes chicas (fichas, cifras) con la misma textura */
.oscuro .ficha__fila, .oscuro .ficha__destacado{
  background-image: linear-gradient(160deg, rgba(255,255,255,.04), rgba(255,255,255,0) 60%);
}

/* --- Video: al bajar, todo se va a negro y el video llena el marco ---------- */
.video-foco{ transition: background-color .6s ease; }
.video-foco .envoltorio{ position: relative; z-index: 1; }
.video-foco::before{
  content: ""; position: absolute; inset: 0; background: #050805; opacity: 0; z-index: 0;
  transition: opacity .9s ease; pointer-events: none;
}
.video-foco.en-foco::before{ opacity: 1; }
.video-foco .rotulo, .video-foco .titular, .video-foco .microleyenda{ transition: color .9s ease, opacity .9s ease; }
.video-foco.en-foco .rotulo{ color: var(--oro-2); }
.video-foco.en-foco .titular{ color: var(--texto-claro); }
.video-foco.en-foco .microleyenda{ color: rgba(234,231,221,.55); }
.video--foco{ position: relative; margin: 2rem auto 0; }
/* la escala va en el video, no en la figura: la figura ya usa transform para el «reveal» */
.video--foco video{ border-radius: 18px; box-shadow: 0 40px 90px -40px rgba(0,0,0,.85);
  transform: scale(var(--foco, .86)); transform-origin: center; transition: transform .2s linear, box-shadow .9s ease; will-change: transform; }
.video--foco .play{ transform: scale(calc(var(--foco, .86) + .14)); }
.video-foco.en-foco .video--foco video{ box-shadow: 0 0 0 1px rgba(195,160,98,.35), 0 50px 120px -30px rgba(0,0,0,.95); }
/* botón de play animado (lo agrega js/ronda2.js) */
.play{
  position: absolute; left: 50%; top: 50%; width: 112px; height: 112px; margin: -56px 0 0 -56px;
  border: 0; border-radius: 50%; cursor: pointer; z-index: 2;
  display: grid; place-items: center; color: var(--tinta);
  background: var(--acento-lujo); background-size: 200% 100%;
  box-shadow: 0 20px 50px -14px rgba(0,0,0,.7);
  transition: transform .45s var(--curva), opacity .4s ease;
}
.play svg{ width: 34px; height: 34px; margin-left: 6px; }
.play::before, .play::after{
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid rgba(240,223,180,.7); animation: play-onda 2.6s ease-out infinite;
}
.play::after{ animation-delay: 1.3s; }
@keyframes play-onda{ from{ transform: scale(1); opacity: .9; } to{ transform: scale(1.9); opacity: 0; } }
.play .play__t{ position: absolute; top: calc(100% + 16px); left: 50%; transform: translateX(-50%); white-space: nowrap;
  font: 700 11px/1 var(--texto); letter-spacing: .24em; text-transform: uppercase; color: var(--oro-3); }
@media (hover: hover){ .play:hover{ transform: scale(1.08); } }
.video--jugando .play{ opacity: 0; pointer-events: none; transform: scale(.7); }
.video--perspectiva .play{ width: 88px; height: 88px; margin: -44px 0 0 -44px; }
.video--perspectiva .play .play__t{ color: var(--tinta); }

/* --- Videos de perspectiva: protagonistas, centrados, sin pantalla negra ---- */
.videos--foco{ display: block; max-width: 1180px; margin: 2.4rem auto 0; position: relative; }
.videos--foco::before{
  content: ""; position: absolute; inset: 8% -4% -6%; z-index: 0; border-radius: 40px;
  background: radial-gradient(closest-side, rgba(195,160,98,.28), transparent 75%); filter: none;
}
.videos--foco .video{ position: relative; z-index: 1; margin: 0; }
.videos--foco video{ border-radius: 22px; box-shadow: 0 0 0 1px var(--oro-linea), 0 50px 90px -45px rgba(22,37,13,.7); }
.videos--foco .video::after{ /* marco fino oro desplazado */
  content: ""; position: absolute; inset: -14px 14px 14px -14px; border: 1px solid var(--oro-linea); border-radius: 26px; z-index: -1;
}

/* --- Ubícalo de un vistazo: mosaico con pie -------------------------------- */
.vistazo{
  display: grid; gap: clamp(12px, 1.4vw, 20px); margin-top: 2rem;
  grid-template-columns: 1.5fr 1fr 1fr; grid-template-rows: repeat(2, clamp(220px, 19vw, 300px));
}
.vistazo figure{
  position: relative; margin: 0; overflow: hidden; border-radius: 18px; cursor: zoom-in;
  background: var(--lino); box-shadow: 0 18px 40px -26px rgba(22,37,13,.6);
}
.vistazo__t--grande{ grid-row: span 2; }
.vistazo img{ width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--curva); }
.vistazo img[src$=".svg"]{ object-fit: contain; background: var(--papel); padding: 4%; }
.vistazo figcaption{
  position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 20px 18px;
  display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: baseline;
  background: linear-gradient(0deg, rgba(14,24,8,.88), rgba(14,24,8,0)); color: var(--texto-claro);
}
.vistazo__n{ grid-row: span 2; font: 400 30px/1 var(--display); color: var(--oro-2); }
.vistazo figcaption b{ font: 600 15px/1.3 var(--texto); letter-spacing: .02em; }
.vistazo figcaption small{ font-size: 12.5px; opacity: .8; }
.vistazo__ver{ position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(239,236,227,.9); color: var(--tinta); opacity: 0; transform: scale(.8);
  transition: opacity .35s ease, transform .35s var(--curva); }
.vistazo__ver .ico{ width: 16px; height: 16px; }
@media (hover: hover){
  .vistazo figure:hover{ transform: translateY(-4px); box-shadow: 0 30px 50px -26px rgba(22,37,13,.7); }
  .vistazo figure:hover img{ transform: scale(1.06); }
  .vistazo figure:hover .vistazo__ver{ opacity: 1; transform: none; }
}
@media (max-width: 860px){
  .vistazo{ grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 200px; }
  .vistazo__t--grande{ grid-column: span 2; grid-row: auto; height: 300px; }
  .vistazo figure:last-child{ grid-column: span 2; }
}
@media (max-width: 520px){
  .vistazo{ grid-template-columns: 1fr; grid-auto-rows: 230px; }
  .vistazo__t--grande, .vistazo figure:last-child{ grid-column: auto; height: auto; }
}

/* --- «Un diseño que dialoga con la naturaleza»: fondo y plano protagonistas - */
#mapa.escena-natura{ background: var(--papel-hueso); isolation: isolate; overflow: hidden; }
/* la selva solo cubre la parte de arriba (titulo + plano); abajo sigue el papel */
#mapa.escena-natura::before{
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: clamp(900px, 95vw, 1300px); z-index: -2;
  background: url("../assets/img/fondo-hojas.webp") center / cover no-repeat;
}
#mapa.escena-natura::after{
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: clamp(900px, 95vw, 1300px); z-index: -1;
  background:
    url("../assets/img/textura-lineas.svg") center / cover no-repeat,
    linear-gradient(180deg, rgba(14,26,7,.74) 0%, rgba(22,37,13,.5) 45%, rgba(22,37,13,.25) 70%, var(--papel-hueso) 100%);
}
#mapa.escena-natura > .envoltorio > .rotulo{ color: var(--oro-3); }
#mapa.escena-natura > .envoltorio > .titular{ color: var(--texto-claro); text-shadow: 0 2px 30px rgba(0,0,0,.35); }
#mapa.escena-natura > .envoltorio > .columna:first-of-type{ color: rgba(239,236,227,.92); }
.mapa--protagonista{
  position: relative; padding: clamp(10px, 1.2vw, 16px); border-radius: 26px;
  background: rgba(239,236,227,.94); box-shadow: 0 60px 120px -50px rgba(0,0,0,.75), 0 0 0 1px var(--oro-linea);
}
.mapa--protagonista .mapa__lienzo{ border-radius: 18px; }

/* --- Caminos en vector: espejo norte / sur y los sectores suben ------------ */
.caminos{ display: grid; gap: clamp(8px, 2vw, 24px); margin-top: 2rem; }
.caminos__mitad{ margin: 0; position: relative; padding: clamp(14px, 2vw, 28px); border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.65), rgba(255,255,255,.25)); box-shadow: inset 0 0 0 1px rgba(88,106,60,.15); }
.caminos__mitad figcaption{ font: 700 11.5px/1 var(--texto); letter-spacing: .2em; text-transform: uppercase; color: var(--verde-medio); margin-bottom: 8px; }
.caminos__mitad--sur figcaption{ text-align: right; }
.caminos__svg{ display: block; width: 100%; height: auto; overflow: visible; }
.caminos__plano path{ fill: var(--verde-medio); }
.caminos__calle > line{ stroke: var(--oro-1); stroke-width: 3; stroke-dasharray: 2 7; stroke-linecap: round; }
.caminos__calle > circle{ fill: var(--oro-2); stroke: var(--papel); stroke-width: 3; }
.caminos__calle text{ font: 700 30px/1 var(--texto); letter-spacing: .14em; fill: var(--verde-profundo); text-anchor: middle; }
/* animación: el plano sube y luego las calles, una por una */
.caminos__plano, .caminos__calle{ opacity: 0; transform: translateY(60px); transform-box: fill-box;
  transition: opacity .9s var(--curva), transform 1.1s var(--curva); }
.caminos__calle{ transition-delay: calc(.45s + var(--k) * .07s); }
.caminos__mitad.visible .caminos__plano, .caminos__mitad.visible .caminos__calle{ opacity: 1; transform: none; }
.caminos__mitad--sur .caminos__plano{ transition-delay: .15s; }
@media (hover: hover){
  .caminos__calle{ cursor: default; }
  .caminos__calle:hover text{ fill: var(--oro-1); }
  .caminos__calle:hover > circle{ r: 11; }
}
@media (max-width: 620px){ .caminos__calle text{ font-size: 54px; letter-spacing: .06em; } .caminos__mitad{ padding: 12px 10px; } }

/* --- Artigas en su marca clara: blanco, negro, línea fina ------------------ */
.artigas{
  margin-top: clamp(3rem, 6vw, 5rem); padding: clamp(2rem, 5vw, 4.5rem) clamp(1.4rem, 5vw, 5rem);
  background: #fbfaf7; color: #1a1a1a; border-radius: 4px; position: relative;
  box-shadow: 0 40px 80px -60px rgba(0,0,0,.5); text-align: center;
}
.artigas::before{ content: ""; position: absolute; inset: 14px; border: 1px solid rgba(26,26,26,.12); pointer-events: none; }
.artigas__logo{ display: block; width: 92px; height: auto; margin: 0 auto 1.6rem; }
.artigas .subtitular{ color: #111; font-family: var(--display); font-weight: 400; letter-spacing: .08em; margin-top: 0; }
.artigas .columna{ margin-left: auto; margin-right: auto; }
.artigas .atributo__cita{ color: #333; border: 0; font-style: italic; }
.artigas .carrusel{ text-align: left; }
.artigas .datos-fuente{ text-align: left; max-width: 860px; margin-left: auto; margin-right: auto; }
.artigas .datos-fuente li{ border-color: rgba(0,0,0,.12); padding-left: 10px; padding-right: 10px; }
.artigas .datos-fuente strong{ color: #111; }
.artigas .fuente{ color: #777; }
.artigas .atributo__firma{ display: none; } /* el logo ya va arriba */
.artigas .microleyenda{ color: #777; text-align: right; }

/* --- Galería de amenidades: aparador que avanza solo ---------------------- */
.amen__hero{ position: relative; }
.amen__flecha{
  position: absolute; top: 50%; z-index: 3; width: 52px; height: 52px; margin-top: -26px; border: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; color: var(--tinta);
  background: rgba(239,236,227,.88); box-shadow: 0 12px 30px -12px rgba(0,0,0,.6);
  transition: transform .35s var(--curva), background-color .3s ease;
}
.amen__flecha .ico{ width: 20px; height: 20px; }
.amen__flecha--ant{ left: 18px; } .amen__flecha--sig{ right: 18px; }
@media (hover: hover){ .amen__flecha:hover{ transform: scale(1.1); background: var(--oro-3); } }
.amen__hero img{ animation: amen-zoom 7s ease-out both; }
@keyframes amen-zoom{ from{ transform: scale(1.06); } to{ transform: scale(1); } }
.amen__avance{ position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 3; background: rgba(255,255,255,.18); }
.amen__avance i{ display: block; height: 100%; background: var(--acento-lujo); transform-origin: left; transform: scaleX(0); }
.amen__tira{ scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce){
  .boton::after, .play::before, .play::after, .amen__hero img{ animation: none; }
  .caminos__plano, .caminos__calle{ opacity: 1; transform: none; transition: none; }
  .video--foco video{ transform: none; }
}
/* en el sur el rotulo va abajo, como espejo del norte */
.caminos__mitad--sur{ display: flex; flex-direction: column-reverse; }
.caminos__mitad--sur figcaption{ margin: 8px 0 0; }
