/* ==========================================================================
   Crisol Santiago — v2
   Índice:
   1. Tokens          6. Hero              11. Testimonio
   2. Base            7. Marquesina        12. Visítanos
   3. Utilidades      8. Nuestra historia  13. Banner WhatsApp
   4. Botones         9. Colecciones       14. Footer
   5. Cabecera        10. Símbolos / Peregrinos   15. Animaciones
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  /* Marca */
  --verde: #24422F;
  --verde-osc: #152419;
  --oro: #B8923A;
  --oro-claro: #D9B464;
  --oro-texto: #8A6A22;      /* oro legible sobre fondos claros (AA) */
  --ink: #161513;
  --marfil: #FAF8F4;
  --hueso: #F2EDE4;
  --piedra: #E3DDD5;
  --blanco: #FFFFFF;
  --texto: #2B2926;
  --texto-suave: #5F5A53;    /* AA sobre marfil y hueso */
  --claro-suave: rgba(250, 248, 244, .72);
  --wa: #25D366;
  --wa-osc: #128C4A;

  /* Tipografía */
  --f-display: "Cormorant Garamond", Georgia, serif;
  --f-texto: "Manrope", system-ui, -apple-system, sans-serif;
  --t-xs: .75rem;
  --t-s: .875rem;
  --t-m: clamp(.95rem, .9rem + .25vw, 1.05rem);
  --t-l: clamp(1.15rem, 1rem + .6vw, 1.4rem);
  --t-h3: clamp(1.75rem, 1.4rem + 1.5vw, 2.6rem);
  --t-h2: clamp(2.4rem, 1.8rem + 3vw, 4.4rem);
  --t-h1: clamp(3.2rem, min(2rem + 7vw, 15svh), 8.5rem);

  /* Espaciado y layout */
  --gutter: clamp(1rem, 4vw, 4rem);
  --max: 1280px;
  --sec: clamp(4.5rem, 3rem + 7vw, 9rem);
  --header: 72px;
  --radio: 14px;
  --radio-s: 8px;

  /* Movimiento */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-texto);
  font-size: var(--t-m);
  line-height: 1.7;
  color: var(--texto);
  background: var(--marfil);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.05; letter-spacing: -.01em; }
em { font-style: italic; }
:focus-visible { outline: 2px solid var(--oro); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: fixed; top: .75rem; left: .75rem; z-index: 1000;
  padding: .6rem 1rem; background: var(--ink); color: var(--marfil);
  transform: translateY(-200%); transition: transform .3s var(--ease);
}
.skip:focus { transform: none; }

/* 3. Utilidades ------------------------------------------------------------ */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sec { padding-block: var(--sec); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .9rem;
  font-size: var(--t-xs); font-weight: 600; letter-spacing: .32em; text-transform: uppercase;
  color: var(--oro-texto);
}
.eyebrow::before { content: ""; width: 2rem; height: 1px; background: currentColor; }
.eyebrow--claro { color: var(--oro-claro); }
.eyebrow--centro::after { content: ""; width: 2rem; height: 1px; background: currentColor; }

.sec-head { max-width: 42rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.sec-head--centro { margin-inline: auto; text-align: center; }
.sec-head h2 { font-size: var(--t-h2); font-weight: 300; margin: 1.1rem 0 1.2rem; color: var(--ink); }
.sec-head h2 em { color: var(--verde); }
.sec-head p { color: var(--texto-suave); max-width: 36rem; }
.sec-head--centro p { margin-inline: auto; }

/* 4. Botones --------------------------------------------------------------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3.25rem; padding: .9rem 1.9rem;
  font-size: var(--t-xs); font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  border-radius: 999px;
  transition: color .45s var(--ease), border-color .45s var(--ease), transform .45s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: translateY(101%); border-radius: inherit;
  transition: transform .55s var(--ease);
}
.btn:hover::before { transform: none; }
.btn svg { width: 1.1rem; height: 1.1rem; flex-shrink: 0; }
.btn .flecha { transition: transform .45s var(--ease); }
.btn:hover .flecha { transform: translateX(4px); }

.btn--oro { background: var(--oro); color: var(--ink); }
.btn--oro::before { background: var(--marfil); }
.btn--borde-claro { color: var(--marfil); border: 1px solid rgba(250, 248, 244, .35); }
.btn--borde-claro::before { background: var(--marfil); }
.btn--borde-claro:hover { color: var(--ink); border-color: var(--marfil); }
.btn--verde { background: var(--verde); color: var(--marfil); }
.btn--verde::before { background: var(--ink); }
.btn--wa { background: var(--wa); color: #08321A; }
.btn--wa::before { background: var(--marfil); }

/* Enlace de WhatsApp de cada colección */
.link-wa {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: var(--t-xs); font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--verde);
  padding-bottom: .35rem;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: background-size .5s var(--ease), color .3s;
}
.link-wa svg { width: 1.05rem; height: 1.05rem; color: var(--wa-osc); }
.link-wa .flecha { transition: transform .45s var(--ease); }
.link-wa:hover { color: var(--oro-texto); background-size: 0 1px; background-position: right bottom; }
.link-wa:hover .flecha { transform: translateX(5px); }

/* 5. Cabecera -------------------------------------------------------------- */
.progreso {
  position: fixed; inset: 0 0 auto; z-index: 900; height: 2px;
  background: linear-gradient(to right, var(--oro), var(--oro-claro));
  transform: scaleX(0); transform-origin: left;
}
.header {
  position: fixed; inset: 0 0 auto; z-index: 800; height: var(--header);
  background: rgba(250, 248, 244, .9);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: transform .5s var(--ease), background-color .4s, border-color .4s, box-shadow .4s;
}
.header.is-scrolled { border-color: var(--piedra); box-shadow: 0 6px 30px rgba(22, 21, 19, .06); }
.header.is-over-hero { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-color: transparent; box-shadow: none; }
.header.is-over-hero .nav-links a { color: rgba(250, 248, 244, .78); }
.header.is-over-hero .nav-links a:hover, .header.is-over-hero .nav-links a[aria-current="true"] { color: var(--marfil); }
.header.is-over-hero .ham span { background: var(--marfil); }
.header.is-hidden { transform: translateY(-100%); }
.header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { display: block; padding: 3px; background: #FBF6EC; border-radius: 12px; box-shadow: 0 4px 18px -6px rgba(0, 0, 0, .35); transition: transform .5s var(--ease); }
.logo:hover { transform: rotate(-3deg) scale(1.04); }
.logo img { height: 50px; width: auto; border-radius: 9px; mix-blend-mode: multiply; }
.nav-links { display: none; list-style: none; gap: clamp(1.2rem, 2.5vw, 2.6rem); }
.nav-links a {
  position: relative; font-size: var(--t-xs); font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--texto-suave); padding-block: .4rem; transition: color .3s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--oro);
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="true"] { color: var(--verde); }
.nav-links a:hover::after, .nav-links a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }

.ham { width: 44px; height: 44px; display: grid; place-content: center; gap: 6px; }
.ham span { display: block; width: 24px; height: 1.5px; background: var(--ink); transition: transform .45s var(--ease), opacity .3s; }
.ham[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.ham[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ham[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.drawer {
  position: fixed; inset: var(--header) 0 0; z-index: 790;
  display: flex; flex-direction: column; justify-content: center; gap: 1.6rem;
  padding: var(--gutter);
  background: var(--marfil);
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .7s var(--ease), visibility 0s .7s;
}
.drawer.is-open { clip-path: inset(0); visibility: visible; transition: clip-path .7s var(--ease); }
.drawer a {
  font-family: var(--f-display); font-style: italic; font-size: clamp(2.2rem, 9vw, 3.4rem); line-height: 1.1;
  color: var(--verde); display: flex; align-items: baseline; gap: 1rem;
  opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .6s var(--ease), color .3s;
}
.drawer a span { font-family: var(--f-texto); font-style: normal; font-size: var(--t-xs); color: var(--oro-texto); letter-spacing: .2em; }
.drawer.is-open a { opacity: 1; transform: none; }
.drawer.is-open a:nth-child(2) { transition-delay: .06s; }
.drawer.is-open a:nth-child(3) { transition-delay: .12s; }
.drawer.is-open a:nth-child(4) { transition-delay: .18s; }
.drawer a:hover { color: var(--oro-texto); }
body.menu-open { overflow: hidden; }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .ham, .drawer { display: none; }
}

/* 6. Hero ------------------------------------------------------------------ */
.hero {
  position: relative; overflow: hidden;
  min-height: 100svh; padding-top: calc(var(--header) + clamp(1.5rem, 4vh, 4rem)); padding-bottom: clamp(2.5rem, 6vh, 5rem);
  background:
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(184, 146, 58, .16), transparent 70%),
    linear-gradient(160deg, var(--verde-osc) 0%, var(--ink) 70%);
  color: var(--marfil);
  display: flex; align-items: center;
}
.hero .wrap { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
.hero-title { font-size: var(--t-h1); font-weight: 300; font-style: italic; line-height: 1; margin: 1.4rem 0 1.6rem; }
.hero-title .linea { display: block; }
.hero-title .linea > span { display: block; }
.hero-title .linea:nth-child(2) { color: var(--oro-claro); padding-left: clamp(1.5rem, 6vw, 5rem); }
.hero-tag { font-family: var(--f-display); font-style: italic; font-size: var(--t-l); color: var(--marfil); margin-bottom: .6rem; }
.hero-desc { color: var(--claro-suave); max-width: 32rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.hero-info {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.4rem; margin-top: 2rem;
  font-size: var(--t-s); color: var(--claro-suave);
}
.hero-info span { display: inline-flex; align-items: center; gap: .5rem; }
.hero-info svg { width: 1.05rem; height: 1.05rem; color: var(--oro-claro); flex-shrink: 0; }

.hero-mosaico {
  display: grid; gap: clamp(.4rem, 1vw, .75rem);
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, clamp(90px, 22vw, 200px));
  grid-template-areas: "a a b" "a a c" "d e e";
}
.hero-visual { position: relative; }
.hero-mosaico figure { position: relative; overflow: hidden; border-radius: var(--radio); background: var(--verde); }
.hero-mosaico img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.hero-mosaico figure:hover img { transform: scale(1.06); }
.hero-badge {
  position: absolute; left: clamp(-1.5rem, -2vw, -.5rem); bottom: 36%; z-index: 2;
  display: flex; align-items: center; gap: .85rem;
  padding: .8rem 1.1rem .8rem .8rem; border-radius: 999px;
  background: rgba(22, 21, 19, .55); border: 1px solid rgba(250, 248, 244, .18);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6);
  animation: fadeUp 1s var(--ease) 1.1s both, float 6s ease-in-out 2.1s infinite;
}
.hero-badge b {
  display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 50%;
  background: var(--oro); color: var(--ink); font-family: var(--f-display); font-size: 1.05rem; font-weight: 500;
}
.hero-badge span { font-size: var(--t-xs); line-height: 1.35; letter-spacing: .06em; color: var(--marfil); }
.hero-badge small { display: block; color: var(--claro-suave); font-size: var(--t-xs); letter-spacing: .04em; }
.hero-mosaico figure:nth-child(1) { grid-area: a; }
.hero-mosaico figure:nth-child(2) { grid-area: b; }
.hero-mosaico figure:nth-child(3) { grid-area: c; }
.hero-mosaico figure:nth-child(4) { grid-area: d; }
.hero-mosaico figure:nth-child(5) { grid-area: e; }

/* Portátiles con poca altura: que los botones del hero se vean sin hacer scroll */
@media (min-width: 960px) and (max-height: 760px) {
  .hero-title { margin: .7rem 0 1rem; }
  .hero-tag { margin-bottom: .3rem; }
  .hero-desc { line-height: 1.6; }
  .hero-ctas { margin-top: 1.4rem; }
  .hero-info { margin-top: 1.2rem; }
}
@media (max-width: 559px) { .hero-badge { left: .6rem; bottom: .6rem; padding: .55rem .9rem .55rem .55rem; } .hero-badge b { width: 2.4rem; height: 2.4rem; } }
/* Hero en móvil (<768px): logo con aro dorado → título → subtítulo → botones.
   En 768px o más, el logo del hero no existe y todo queda como en escritorio. */
.hero-marca { display: none; }
@media (max-width: 767px) {
  .header .logo { display: none; }
  .ham { margin-left: auto; }
  .hero { padding-top: calc(var(--header) + .25rem); }
  .hero .eyebrow, .hero-visual { display: none; }
  .hero-marca {
    position: relative; display: block; width: 150px; aspect-ratio: 1; margin: 0 auto 2rem;
    animation: scaleIn 1.1s var(--ease) both, float 6s ease-in-out 1.2s infinite;
  }
  /* Halo de luz dorada que respira detrás del logo */
  .hero-marca::before {
    content: ""; position: absolute; inset: -38%; z-index: 0; border-radius: 50%;
    background: radial-gradient(circle, rgba(217, 180, 100, .38) 0%, rgba(217, 180, 100, .1) 40%, transparent 68%);
    animation: halo 4.5s ease-in-out infinite;
  }
  /* Aro dorado que gira alrededor del logo */
  .hero-marca::after {
    content: ""; position: absolute; inset: -5px; z-index: 1; border-radius: 30px; padding: 2px;
    background: conic-gradient(from var(--giro, 0deg), transparent 0deg, var(--oro-claro) 70deg, #FFF3D1 110deg, var(--oro) 150deg, transparent 220deg, transparent 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    animation: giro 5s linear infinite;
  }
  .hero-marca img {
    position: relative; z-index: 2; width: 100%; height: 100%; border-radius: 26px;
    background: #FBF6EC; mix-blend-mode: normal;
    box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .8);
  }
  .hero-title { margin-top: 0; }
}
@property --giro { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes giro { to { --giro: 360deg; } }
@keyframes halo { 0%, 100% { opacity: .65; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.06); } }
@media (min-width: 960px) {
  .hero .wrap { grid-template-columns: 1.05fr 1fr; }
  .hero-mosaico { grid-template-rows: repeat(3, clamp(110px, min(15vw, 24svh), 210px)); }
}

/* 7. Marquesina ------------------------------------------------------------ */
/* Cinta de fotos (solo móvil): misma técnica que la marquesina, pero hacia la derecha */
.fotos-cinta { display: none; }
@media (max-width: 767px) {
  .fotos-cinta { display: block; overflow: hidden; background: var(--ink); }
  .fotos-track { display: flex; width: max-content; animation: cinta 40s linear infinite; }
  .fotos-track img { width: 140px; height: 140px; object-fit: cover; margin-right: 3px; }
}
.marquee { overflow: hidden; background: var(--verde); color: var(--marfil); padding-block: 1rem; }
.marquee-track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  display: inline-flex; align-items: center; gap: 2rem; padding-right: 2rem;
  font-family: var(--f-display); font-style: italic; font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); white-space: nowrap;
}
.marquee-track span::after { content: "✦"; font-style: normal; font-size: .7em; color: var(--oro-claro); }

/* 8. Nuestra historia ------------------------------------------------------ */
.historia { background: var(--blanco); }
.historia .wrap { display: grid; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.historia h2 { font-size: var(--t-h2); font-weight: 300; color: var(--ink); margin: 1.1rem 0 1.6rem; }
.historia h2 em { color: var(--verde); }
.historia p { color: var(--texto-suave); max-width: 34rem; }
.historia p + p { margin-top: 1rem; }
.sello {
  display: inline-flex; align-items: center; gap: 1rem; margin-top: 2.2rem; padding-top: 1.6rem;
  border-top: 1px solid var(--piedra);
  font-size: var(--t-s); color: var(--texto-suave);
}
.sello strong { font-family: var(--f-display); font-size: 2.6rem; font-weight: 400; line-height: 1; color: var(--oro-texto); }

.historia-fotos { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.5rem, 1.2vw, 1rem); }
.historia-fotos figure { overflow: hidden; border-radius: var(--radio); aspect-ratio: 4 / 5; background: var(--hueso); }
.historia-fotos figure:nth-child(even) { transform: translateY(clamp(1.5rem, 4vw, 3.5rem)); }
.historia-fotos img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.historia-fotos figure:hover img { transform: scale(1.05); }

@media (min-width: 900px) {
  .historia .wrap { grid-template-columns: 1fr 1.1fr; }
  .historia-fotos { padding-bottom: 3.5rem; }
}

/* 9. Colecciones ----------------------------------------------------------- */
.colecciones { background: var(--marfil); }
.colecciones .sec-head { display: grid; gap: 1rem; max-width: none; }
.col-total { font-family: var(--f-display); font-style: italic; font-weight: 300; font-size: clamp(5rem, 12vw, 10rem); line-height: .8; color: var(--piedra); }
@media (min-width: 900px) {
  .colecciones .sec-head { grid-template-columns: 1fr auto; align-items: end; }
}

.col-list { display: grid; gap: clamp(3.5rem, 8vw, 7rem); }
.col-item { display: grid; gap: clamp(1.5rem, 4vw, 4.5rem); align-items: center; }
.col-media { position: relative; overflow: hidden; border-radius: var(--radio); aspect-ratio: 4 / 3; background: var(--hueso); }
.col-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.col-item:hover .col-media img { transform: scale(1.04); }
.col-num {
  position: absolute; bottom: 1rem; left: 1rem; z-index: 1;
  padding: .3rem .75rem; border-radius: 999px;
  background: rgba(22, 21, 19, .7); color: var(--marfil);
  font-size: var(--t-xs); font-weight: 600; letter-spacing: .18em;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.col-tag { font-size: var(--t-xs); font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--oro-texto); }
.col-txt h3 { font-size: var(--t-h3); font-weight: 400; color: var(--ink); margin: .8rem 0 1rem; }
.col-txt p { color: var(--texto-suave); max-width: 32rem; margin-bottom: 1.8rem; }

@media (min-width: 900px) {
  .col-item { grid-template-columns: 7fr 5fr; }
  .col-item.is-reverse { grid-template-columns: 5fr 7fr; }
  .col-item.is-reverse .col-media { order: 2; }
}

/* 10a. Símbolos ------------------------------------------------------------ */
.simbolos { background: var(--hueso); }
.sym-grid { display: grid; gap: clamp(.75rem, 1.5vw, 1.25rem); grid-template-columns: 1fr; }
@media (min-width: 560px) { .sym-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .sym-grid { grid-template-columns: repeat(4, 1fr); } }
.sym-card {
  position: relative; text-align: center;
  padding: clamp(2rem, 3vw, 2.75rem) clamp(1.4rem, 2vw, 2rem);
  background: var(--blanco); border-radius: var(--radio);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.sym-card::after {
  content: ""; position: absolute; inset: auto 0 0; height: 2px; border-radius: 0 0 var(--radio) var(--radio);
  background: linear-gradient(to right, var(--verde), var(--oro));
  transform: scaleX(0); transition: transform .7s var(--ease);
}
.sym-card:hover { transform: translateY(-6px); box-shadow: 0 22px 50px -20px rgba(22, 21, 19, .25); }
.sym-card:hover::after { transform: scaleX(1); }
.sym-foto {
  width: 128px; height: 128px; margin: 0 auto 1.6rem; border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(184, 146, 58, .45), 0 0 0 7px var(--blanco), 0 0 0 8px rgba(184, 146, 58, .2);
  transition: transform .8s var(--ease);
}
.sym-card:hover .sym-foto { transform: rotate(-6deg) scale(1.05); }
.sym-foto img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.sym-card h3 { font-size: clamp(1.5rem, 1.3rem + .8vw, 1.9rem); color: var(--verde); }
.sym-sub { display: block; margin: .5rem 0 1rem; font-size: var(--t-xs); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--oro-texto); }
.sym-card p { font-size: var(--t-s); color: var(--texto-suave); }

/* 10b. Peregrinos ---------------------------------------------------------- */
.peregrinos {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(92svh, 900px); display: flex; align-items: center;
  padding-block: var(--sec); background: var(--ink); color: var(--marfil);
}
/* Foto de fondo difuminada */
.per-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.per-bg img {
  position: absolute; left: -4%; top: -10%; width: 108%; height: 125%; max-width: none;
  object-fit: cover; filter: blur(4px) saturate(.9) brightness(.72); will-change: transform;
}
.per-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(22, 21, 19, .85) 0%, rgba(22, 21, 19, .5) 50%, rgba(22, 21, 19, .25) 100%),
    linear-gradient(to bottom, var(--ink) 0%, transparent 18%, transparent 82%, var(--ink) 100%);
}
.per-txt { display: grid; gap: clamp(2.5rem, 4vw, 5rem); align-items: center; }
.peregrinos h2 { font-size: clamp(3rem, 2rem + 4.5vw, 6rem); font-weight: 300; font-style: italic; margin: 1.1rem 0 1.4rem; text-shadow: 0 6px 40px rgba(0, 0, 0, .5); }
.peregrinos h2 em { font-style: normal; color: var(--oro-claro); }
.per-txt p:not(.stats-fuente) { color: rgba(250, 248, 244, .85); max-width: 30rem; margin-bottom: 2.2rem; }

.stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-bottom: .9rem;
  background: rgba(250, 248, 244, .14); border: 1px solid rgba(250, 248, 244, .16); border-radius: var(--radio); overflow: hidden;
  backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
}
.stat { padding: clamp(1.1rem, 2vw, 1.6rem); background: rgba(22, 21, 19, .55); transition: background .4s; }
.stat:hover { background: rgba(22, 21, 19, .4); }
.stat-n { display: block; font-family: var(--f-display); font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem); line-height: 1; color: var(--marfil); font-variant-numeric: tabular-nums; }
.stat-n small { font-size: .55em; color: var(--oro-claro); }
.stat-l { display: block; margin-top: .55rem; font-size: var(--t-s); line-height: 1.45; color: rgba(250, 248, 244, .8); }
.stats-fuente { font-size: var(--t-xs); color: rgba(250, 248, 244, .7); }

@media (min-width: 960px) { .per-txt { grid-template-columns: 1fr 1fr; } }
@media (max-width: 959px) { .per-bg::after { background: linear-gradient(to bottom, var(--ink) 0%, rgba(22, 21, 19, .6) 20%, rgba(22, 21, 19, .7) 80%, var(--ink) 100%); } }

/* 11. Testimonio ----------------------------------------------------------- */
.testimonio { background: var(--blanco); text-align: center; }
.t-card {
  position: relative; max-width: 60rem; margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 5vw, 5rem);
  background: radial-gradient(ellipse 70% 80% at 50% 0%, rgba(184, 146, 58, .12), transparent 70%), var(--hueso);
  border-radius: calc(var(--radio) * 2);
}
.t-card::before {
  content: "“"; display: block; height: .55em; margin-bottom: .4rem;
  font-family: var(--f-display); font-size: clamp(7rem, 14vw, 11rem); line-height: 1; color: var(--oro);
}
/* Las opiniones se apilan en la misma celda: la tarjeta toma la altura de la más larga y no salta */
.t-track { display: grid; }
.t-slide {
  grid-area: 1 / 1; align-self: center;
  opacity: 0; visibility: hidden; transform: translateX(32px);
  transition: opacity .7s var(--ease), transform .9s var(--ease), visibility 0s .9s;
}
.t-slide.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .7s var(--ease) .1s, transform .9s var(--ease) .1s; }
.t-slide.is-prev { transform: translateX(-32px); }
.t-stars { margin-bottom: 1.2rem; font-size: 1.15rem; letter-spacing: .3em; color: var(--oro); }
.testimonio blockquote { font-family: var(--f-display); font-style: italic; font-weight: 300; font-size: clamp(1.45rem, 1.1rem + 1.5vw, 2.4rem); line-height: 1.3; color: var(--verde); }
.testimonio figcaption { margin-top: 2rem; font-size: var(--t-xs); font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--texto-suave); }
.t-ctrl { display: flex; align-items: center; justify-content: center; gap: 1.2rem; margin-top: 2.4rem; }
.t-ctrl[hidden] { display: none; }
.t-btn {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(36, 66, 47, .25); color: var(--verde);
  transition: background .3s, color .3s, border-color .3s;
}
.t-btn:hover { background: var(--verde); border-color: var(--verde); color: var(--marfil); }
.t-dots { display: flex; gap: .5rem; }
.t-dots button { width: 8px; height: 8px; padding: 0; border-radius: 999px; background: rgba(36, 66, 47, .25); transition: width .5s var(--ease), background .3s; }
.t-dots button[aria-current="true"] { width: 28px; background: var(--oro); }

/* 12. Visítanos ------------------------------------------------------------ */
.visita { background: var(--marfil); }
.visita .wrap { display: grid; gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.visita .sec-head { margin-bottom: 2rem; }
.vis-datos { display: grid; gap: 1px; background: var(--piedra); border: 1px solid var(--piedra); border-radius: var(--radio); overflow: hidden; margin-bottom: 2rem; }
.vis-dato { display: grid; grid-template-columns: 2.5rem 1fr; gap: .4rem 1rem; padding: 1.4rem 1.5rem; background: var(--blanco); }
.vis-dato svg { grid-row: span 2; width: 1.5rem; height: 1.5rem; color: var(--oro-texto); margin-top: .15rem; }
.vis-dato h3 { font-family: var(--f-texto); font-size: var(--t-xs); font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--oro-texto); }
.vis-dato p { color: var(--texto); }
.vis-dato p span { color: var(--texto-suave); }
.vis-fotos { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.4rem, 1vw, .8rem); }
.vis-fotos figure { overflow: hidden; border-radius: var(--radio); aspect-ratio: 3 / 4; background: var(--hueso); }
.vis-fotos figure:nth-child(2) { transform: translateY(-1.5rem); }
.vis-fotos img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.vis-fotos figure:hover img { transform: scale(1.05); }
@media (min-width: 900px) {
  .visita .wrap { grid-template-columns: 1fr 1.15fr; }
}

/* 13. Banner WhatsApp ------------------------------------------------------ */
.wa-banner { background: var(--marfil); padding-bottom: clamp(3rem, 6vw, 6rem); }
.wa-card {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1.25rem, 5vw, 4rem);
  border-radius: calc(var(--radio) * 2);
  background:
    radial-gradient(ellipse 50% 70% at 50% 0%, rgba(217, 180, 100, .22), transparent 70%),
    radial-gradient(ellipse 40% 60% at 100% 100%, rgba(37, 211, 102, .12), transparent 70%),
    var(--verde);
  color: var(--marfil);
}
.wa-banner h2 { font-size: var(--t-h2); font-weight: 300; font-style: italic; margin-bottom: 1.2rem; }
.wa-banner h2 em { font-style: normal; color: var(--oro-claro); }
.wa-banner p { color: var(--claro-suave); max-width: 34rem; margin: 0 auto 2.2rem; }

.wa-float {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 700;
  display: inline-flex; align-items: center; gap: .6rem;
  height: 56px; padding: 0 1.3rem 0 1.05rem; border-radius: 999px;
  background: var(--wa); color: #08321A;
  font-size: var(--t-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  box-shadow: 0 10px 30px -8px rgba(18, 140, 74, .55);
  transition: transform .5s var(--ease), opacity .4s, box-shadow .4s;
}
.wa-float svg { width: 24px; height: 24px; }
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 16px 36px -8px rgba(18, 140, 74, .65); }
.wa-float.is-hidden { opacity: 0; transform: translateY(20px) scale(.9); pointer-events: none; }
@media (max-width: 639px) {
  .wa-float { width: 56px; padding: 0; justify-content: center; }
  .wa-float span { display: none; }
}

/* 14. Footer --------------------------------------------------------------- */
.footer { background: var(--ink); color: var(--claro-suave); text-align: center; padding-block: clamp(3.5rem, 6vw, 5rem) 2rem; }
.footer .wrap { display: flex; flex-direction: column; align-items: center; gap: 1.4rem; }
.footer-logo { display: inline-block; padding: .6rem; background: var(--blanco); border-radius: 12px; }
.footer-logo img { width: 120px; height: 120px; object-fit: contain; }
.footer-tag { font-family: var(--f-display); font-style: italic; font-size: var(--t-l); color: var(--marfil); }
.footer-ig {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(250, 248, 244, .25); color: var(--marfil);
  transition: border-color .3s, color .3s, background .3s;
}
.footer-ig:hover { border-color: var(--oro-claro); color: var(--oro-claro); background: rgba(217, 180, 100, .08); }
.footer-ig svg { width: 18px; height: 18px; }
.footer-legal { width: 100%; margin-top: 1rem; padding-top: 1.6rem; border-top: 1px solid rgba(250, 248, 244, .1); font-size: var(--t-s); }
.footer-legal p + p { margin-top: .3rem; }
.footer-legal a { color: var(--oro-claro); }
.footer-legal a:hover { text-decoration: underline; }

/* 15. Animaciones ---------------------------------------------------------- */
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes cinta { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@keyframes lineIn { from { opacity: 0; transform: translateY(.35em); filter: blur(14px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes unveil { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.18); } to { transform: scale(1); } }

/* Entrada del hero (solo CSS: funciona aunque falle el JS) */
.hero-title .linea > span { animation: lineIn 1.3s var(--ease) both; }
.hero-title .linea:nth-child(1) > span { animation-delay: .15s; }
.hero-title .linea:nth-child(2) > span { animation-delay: .3s; }
.hero .eyebrow, .hero-tag, .hero-desc, .hero-ctas { animation: fadeUp 1s var(--ease) both; }
.hero .eyebrow { animation-delay: .05s; }
.hero-tag { animation-delay: .55s; }
.hero-desc { animation-delay: .65s; }
.hero-ctas { animation-delay: .75s; }
.hero-mosaico figure { animation: unveil 1.3s var(--ease) both; }
.hero-mosaico img { animation: settle 1.8s var(--ease) both; }
.hero-mosaico figure:nth-child(1), .hero-mosaico figure:nth-child(1) img { animation-delay: .25s; }
.hero-mosaico figure:nth-child(2), .hero-mosaico figure:nth-child(2) img { animation-delay: .4s; }
.hero-mosaico figure:nth-child(3), .hero-mosaico figure:nth-child(3) img { animation-delay: .5s; }
.hero-mosaico figure:nth-child(4), .hero-mosaico figure:nth-child(4) img { animation-delay: .6s; }
.hero-mosaico figure:nth-child(5), .hero-mosaico figure:nth-child(5) img { animation-delay: .7s; }

/* Apariciones al hacer scroll. Solo se ocultan si el JS está activo (html.js) */
.js [data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal="img"] {
  opacity: 1; transform: none;
  clip-path: inset(12% 0 0 0 round var(--radio));
  transition: clip-path 1.4s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal="img"] img { transform: scale(1.12); transition: transform 1.8s var(--ease); transition-delay: inherit; }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="img"].is-in { clip-path: inset(0 0 0 0 round var(--radio)); }
.js [data-reveal="img"].is-in img { transform: none; }
/* Las fotos desplazadas conservan su desfase vertical */
.js .historia-fotos figure:nth-child(even)[data-reveal] { transform: translateY(clamp(1.5rem, 4vw, 3.5rem)); }
.js .vis-fotos figure:nth-child(2)[data-reveal] { transform: translateY(-1.5rem); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none; }
  .js [data-reveal], .js [data-reveal="img"], .js [data-reveal="img"] img { opacity: 1; transform: none; clip-path: none; }
}
