/* ==========================================================
   Lashia Studio — estilos
   Tokens del Manual de Identidad 2026. No agregar colores
   ni tipografías fuera de esta lista.
   ========================================================== */

/* ---------- Fuentes (self-hosted, subset latin) ---------- */
@font-face {
  font-family: 'Cormorant Garamond';
  src: url(/assets/fonts/cormorant-garamond-500.woff2) format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url(/assets/fonts/montserrat-400-500.woff2) format('woff2');
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}
/* Solo trae los glifos de «Más que pestañas, es confianza.» */
@font-face {
  font-family: 'Pinyon Script';
  src: url(/assets/fonts/pinyon-script-400.woff2) format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* Respaldos con métricas ajustadas: evitan saltos de layout al cargar la fuente */
@font-face {
  font-family: 'Cormorant respaldo';
  src: local('Georgia');
  size-adjust: 88.45%;
  ascent-override: 104.46%;
  descent-override: 32.45%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Montserrat respaldo';
  src: local('Arial');
  size-adjust: 110.67%;
  ascent-override: 87.46%;
  descent-override: 22.68%;
  line-gap-override: 0%;
}

/* ---------- Tokens ---------- */
:root {
  /* Color */
  --ciruela:        #26132F;  /* fondo principal oscuro, texto sobre claro */
  --violeta:        #6E3A8E;  /* acento primario, enlaces, iconos */
  --oro-champana:   #B8955F;  /* filetes, detalles; NUNCA texto pequeño sobre claro */
  --oro-profundo:   #8A6A3B;  /* texto en oro sobre Marfil (4.77:1). Sobre Lila Velo solo texto grande (4.16:1) */
  --lavanda:        #B9A3CB;  /* texto secundario sobre ciruela */
  --lila-velo:      #EFE8F3;  /* fondos de sección alternos */
  --blanco-marfil:  #FBF9FB;  /* fondo base claro */
  --gris-ciruela:   #4A4150;  /* texto de párrafo sobre claro */

  /* Tipografía */
  --font-display: 'Cormorant Garamond', 'Cormorant respaldo', Georgia, serif;
  --font-body:    'Montserrat', 'Montserrat respaldo', system-ui, sans-serif;
  --font-script:  'Pinyon Script', cursive;   /* UNA sola frase en toda la página */

  /* Escala (móvil primero) */
  --step--1: clamp(0.875rem, 0.84rem + 0.18vw, 0.95rem);
  --step-0:  clamp(1rem,     0.96rem + 0.2vw,  1.0625rem);
  --step-1:  clamp(1.25rem,  1.15rem + 0.5vw,  1.5rem);
  --step-2:  clamp(1.5rem,   1.3rem  + 1vw,    2rem);
  --step-3:  clamp(2rem,     1.6rem  + 2vw,    3rem);
  --step-4:  clamp(2.5rem,   1.9rem  + 3vw,    4.25rem);  /* solo el H1 del hero */

  /* Ritmo */
  --space-section: clamp(3.5rem, 2.5rem + 5vw, 7rem);
  --radius: 14px;
  --maxw: 1140px;
  --gutter: max(1.25rem, env(safe-area-inset-left), env(safe-area-inset-right));
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--blanco-marfil);
  color: var(--gris-ciruela);
  font: 400 var(--step-0)/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: rgb(110 58 142 / 0.15);
}

img, svg { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  color: var(--ciruela);
  text-wrap: balance;
}
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--violeta); text-underline-offset: 0.2em; }

:focus-visible {
  outline: 3px solid var(--violeta);
  outline-offset: 3px;
  border-radius: 4px;
}
.oscuro :focus-visible { outline-color: var(--oro-champana); }

.sr {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

[hidden] { display: none !important; }

/* ---------- Layout ---------- */
.contenedor {
  width: min(100% - 2 * var(--gutter), var(--maxw));
  margin-inline: auto;
}
.angosto { max-width: 46rem; }

.seccion { padding-block: var(--space-section); }

/* Alterna Marfil / Lila Velo contando solo las secciones visibles */
main > .seccion:nth-child(odd of .seccion:not([hidden])) { background: var(--lila-velo); }

.oscuro {
  background: var(--ciruela);
  color: var(--lavanda);
}
.oscuro h1, .oscuro h2 { color: var(--blanco-marfil); }

.encabezado {
  max-width: 38rem;
  margin: 0 auto clamp(2rem, 1.5rem + 2vw, 3.25rem);
  text-align: center;
}
.encabezado > p:not(.etiqueta) { font-size: var(--step-0); }

.etiqueta {
  margin-bottom: 0.9rem;
  font: 500 0.75rem/1.4 var(--font-body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--violeta);
}

.filete {
  width: 3.5rem;
  height: 1px;
  margin: 1.25rem auto 0;
  border: 0;
  background: var(--oro-champana);
}

.centrado { text-align: center; }
.cta-seccion { margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); text-align: center; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;           /* 52 px: área táctil ≥ 48 px */
  padding: 0.85rem 1.75rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 500 1rem/1.2 var(--font-body);
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn svg { width: 1.25rem; height: 1.25rem; flex: none; fill: currentColor; }

.btn--principal {
  background: var(--violeta);
  border-color: var(--oro-champana);  /* sobre ciruela el violeta solo da 2.19:1; el filete oro lo separa */
  color: var(--blanco-marfil);
}
@media (hover: hover) {
  .btn--principal:hover { background: var(--ciruela); }
  .oscuro .btn--principal:hover { background: var(--blanco-marfil); color: var(--ciruela); }
}

.btn--linea {
  background: transparent;
  border-color: var(--violeta);
  color: var(--violeta);
}
@media (hover: hover) {
  .btn--linea:hover { background: var(--violeta); color: var(--blanco-marfil); }
}
.btn:active { transform: translateY(1px); }

/* Celular: botones principales a lo ancho, más fáciles de tocar */
@media (max-width: 480px) {
  .btn--principal { width: 100%; max-width: 22rem; }
}
/* Pantallas muy angostas (≤ 359 px): botones compactos para que el texto no se parta */
@media (max-width: 359px) {
  .btn { gap: 0.5rem; padding-inline: 0.9rem; font-size: 0.9375rem; letter-spacing: 0; }
  .servicio { padding: 1.5rem 1.1rem; }
}
/* Teléfonos plegables cerrados (≤ 300 px) */
@media (max-width: 300px) {
  :root { --gutter: max(1rem, env(safe-area-inset-left), env(safe-area-inset-right)); }
  .servicio { padding-inline: 1rem; }
  .servicio .btn svg { display: none; }
}

/* ---------- 1. Hero ---------- */
.hero {
  padding-block: clamp(2.5rem, 1.5rem + 5vw, 6rem) clamp(3rem, 2rem + 5vw, 6.5rem);
  background:
    radial-gradient(ellipse 80% 55% at 50% 18%, rgb(110 58 142 / 0.38), transparent 70%),
    var(--ciruela);
  text-align: center;
}
.hero__logo {
  width: clamp(240px, 26vw + 120px, 380px);   /* manual: logo completo ≥ 240 px */
  margin: 0 auto clamp(2rem, 1.5rem + 2vw, 3rem);
}
.hero h1 {
  max-width: 14ch;
  margin-inline: auto;
  font-size: var(--step-4);
  line-height: 1.05;
}
.hero__sub {
  max-width: 36rem;
  margin: 0 auto 2rem;
  font-size: clamp(1rem, 0.92rem + 0.35vw, 1.25rem);
}
@media (min-width: 768px) {
  .hero .btn { min-height: 3.5rem; padding-inline: 2.25rem; font-size: 1.0625rem; }
}
.hero__micro {
  margin: 0.85rem 0 0;
  font-size: var(--step--1);
  color: var(--blanco-marfil);
}
.hero__cred {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  max-width: 40rem;
  margin: 2rem auto 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid rgb(184 149 95 / 0.45);
  list-style: none;
  font: 500 0.75rem/1.5 var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lavanda);
}
@media (min-width: 640px) {
  .hero__cred { flex-direction: row; justify-content: center; gap: 0; }
  .hero__cred li { white-space: nowrap; }
  .hero__cred li + li::before { content: '·'; margin-inline: 0.75em; color: var(--oro-champana); }
}

/* Celular acostado: portada compacta para que el botón quede cerca */
@media (orientation: landscape) and (max-height: 500px) {
  .hero { padding-block: 0.75rem 2.5rem; }
  .hero__logo { width: 240px; margin-bottom: 0.75rem; }
  .hero h1 { max-width: none; margin-bottom: 0.3em; font-size: 2.25rem; }
  .hero__sub { margin-bottom: 1rem; font-size: 0.9375rem; line-height: 1.55; }
  .hero .btn { min-height: 3.25rem; }
  .hero__cred { margin-top: 1.25rem; }
}

/* ---------- 2. Resultados ---------- */
.galeria {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.galeria img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--lila-velo);
}
@media (min-width: 768px) {
  .galeria { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}

/* ---------- 3. Servicios ---------- */
.servicios {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.servicio {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.75rem 1.5rem;
  border: 1px solid rgb(184 149 95 / 0.35);
  border-radius: var(--radius);
  background: var(--blanco-marfil);
}
.servicio h3 { font-size: var(--step-2); margin-bottom: 0.6rem; }
.servicio p { font-size: var(--step--1); }
.servicio__precio {
  margin-top: 0.25rem;
  font: 500 var(--step-0)/1.4 var(--font-body);
  color: var(--oro-profundo);   /* la tarjeta es Marfil: 4.77:1 */
}
.servicio__accion { margin-top: auto; padding-top: 1.5rem; }
.servicio__accion .btn { width: 100%; }
@media (min-width: 640px) {
  .servicios { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; max-width: 62rem; margin-inline: auto; }
  .servicio { padding: 2rem; }
  .servicio__accion .btn { width: auto; }
}

/* ---------- 4. Cómo funciona ---------- */
.pasos {
  display: grid;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: paso;
}
.paso { counter-increment: paso; text-align: center; }
.paso::before {
  content: '0' counter(paso);
  display: block;
  margin-bottom: 0.5rem;
  font: 500 var(--step-3)/1 var(--font-display);
  color: var(--oro-profundo);   /* texto grande: pasa AA sobre Marfil y Lila */
}
.paso h3 { font-size: var(--step-1); margin-bottom: 0.4rem; }
.paso p { max-width: 22rem; margin-inline: auto; }
@media (min-width: 768px) {
  .pasos { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
}

/* ---------- 5. Por qué Lashia ---------- */
.beneficios {
  display: grid;
  gap: 1.1rem;
  max-width: 44rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.beneficios li {
  position: relative;
  padding-left: 1.6rem;
}
.beneficios li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--oro-champana);
}
.beneficios strong { font-weight: 500; color: var(--ciruela); }

/* ---------- 7. Testimonios ---------- */
.testimonios {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.testimonio {
  height: 100%;
  margin: 0;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--blanco-marfil);
}
.testimonio img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  margin-bottom: 1rem;
  border-radius: calc(var(--radius) - 4px);
  background: var(--lila-velo);
}
.testimonio blockquote {
  margin: 0 0 1rem;
  font: 500 var(--step-1)/1.4 var(--font-display);
  color: var(--ciruela);
}
.testimonio figcaption { font-size: var(--step--1); }
.testimonio figcaption strong { font-weight: 500; color: var(--ciruela); }
@media (min-width: 768px) {
  .testimonios { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- 8. Preguntas frecuentes ---------- */
.faq details {
  border-bottom: 1px solid rgb(184 149 95 / 0.45);
}
.faq details:first-child { border-top: 1px solid rgb(184 149 95 / 0.45); }
.faq summary {
  position: relative;
  display: block;
  padding: 1.15rem 2.5rem 1.15rem 0;
  font: 500 var(--step-1)/1.3 var(--font-display);
  color: var(--ciruela);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  font: 400 1.5rem/1 var(--font-body);
  color: var(--violeta);
}
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 2.5rem 1.35rem 0; }

/* ---------- 9. Ubicación ---------- */
.ubicacion {
  display: grid;
  gap: 2rem;
  text-align: center;
}
.ubicacion h3 {
  margin-bottom: 0.75rem;
  font: 500 0.75rem/1.4 var(--font-body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--violeta);
}
.ubicacion address { font-style: normal; }
.horario { margin: 0; padding: 0; list-style: none; }
.mapa {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 0.5rem;
  font-weight: 500;
}
@media (min-width: 768px) {
  .ubicacion { grid-template-columns: repeat(2, 1fr); max-width: 44rem; margin-inline: auto; }
}

/* ---------- 10. Cierre ---------- */
.cierre {
  padding-block: var(--space-section);
  text-align: center;
}
.cierre__isotipo { width: 96px; margin: 0 auto 2rem; }
.cierre h2 { font-size: var(--step-3); }
.cierre p { max-width: 30rem; margin-inline: auto; }
.cierre .btn { margin-top: 1.75rem; }
.escasez {
  margin-top: 1.5rem;
  font-size: var(--step--1);
  color: var(--blanco-marfil);
}
.firma-script {
  margin: 2.75rem 0 0;
  font: 400 clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem)/1.2 var(--font-script);
  color: var(--oro-champana);   /* sobre ciruela: 6.17:1 */
}

/* ---------- Footer ---------- */
.pie {
  padding-block: 2.5rem;
  border-top: 1px solid rgb(184 149 95 / 0.3);
  font-size: var(--step--1);
  text-align: center;
}
.pie a { color: var(--lavanda); }
.pie a:hover { color: var(--blanco-marfil); }
.pie__marca { margin-bottom: 0.25rem; color: var(--blanco-marfil); }
.pie__enlaces {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 1.5rem;
  margin: 1.25rem 0;
  padding: 0;
  list-style: none;
}
.pie__enlaces a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
}

/* ---------- Botón flotante (solo móvil) ---------- */
.wa-flotante { display: none; }

@media (max-width: 768px), (hover: none) and (pointer: coarse) and (max-height: 500px) {
  .wa-flotante {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right));
    bottom: calc(1rem + env(safe-area-inset-bottom));
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border: 1px solid var(--oro-champana);
    border-radius: 50%;
    background: var(--violeta);
    color: var(--blanco-marfil);
    box-shadow: 0 4px 14px rgb(38 19 47 / 0.28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(0.5rem);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  }
  .wa-flotante.visible { opacity: 1; visibility: visible; transform: none; }
  .wa-flotante svg { width: 1.6rem; height: 1.6rem; fill: currentColor; }
  /* Espacio para que el botón no tape los enlaces del footer */
  .pie { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
}

/* ---------- Páginas secundarias ---------- */
.pagina-simple {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
.pagina-simple main { flex: 1; }
.cabecera-simple {
  padding-block: 1.5rem;
  text-align: center;
}
.cabecera-simple img { width: 240px; margin-inline: auto; }   /* manual: logo con firma ≥ 240 px */
.pagina-simple h1 { font-size: var(--step-3); }
.legal h2 { font-size: var(--step-2); margin-top: 2.25rem; }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
