/* ==========================================================================
   XÈNIA CAMINS · CONSULTORÍA HOTELERA — HOJA DE ESTILOS
   ==========================================================================
   Estructura del archivo:
   1. Tokens (custom properties)
   2. Reset y base
   3. Utilidades (contenedor, secciones, tipografía)
   4. Botones
   5. Navbar
   6. Hero
   7. Barra de confianza (trust bar)
   8. Desafíos
   9. Servicios
   10. Resultados
   11. Sobre mí
   12. Contacto (formulario + tarjeta)
   13. Footer
   14. Scroll reveal (animaciones de entrada)
   ========================================================================== */


/* ==========================================================================
   1. TOKENS — Variables de diseño (colores, tipografía, espaciado, radios, sombras)
   Cambiar un valor aquí se propaga a toda la web.
   ========================================================================== */
:root {
  /* Paleta de color */
  --bone: #F7F5EF;           /* Fondo base claro */
  --surface: #FFFFFF;         /* Tarjetas y superficies */
  --sand: #EBE4D6;            /* Secciones alternas / fondos suaves */
  --sand-line: #DAD0BD;       /* Bordes y divisores */
  --espresso: #5B4636;        /* Texto principal / botón primario */
  --espresso-900: #3F2F25;    /* Máximo contraste / footer */
  --brass: #C19A4E;           /* Acento: iconos, líneas, kickers */
  --brass-700: #9C7A2C;       /* Acento de texto sobre fondo claro (enlaces) */
  --taupe: #C8B29D;           /* Decorativo / secundario */
  --ink: #3D352E;             /* Texto cuerpo sobre claro */
  --muted: #8A8178;           /* Texto secundario */
  --bone-on-dark: #F3EFE6;    /* Texto sobre fondos espresso */

  /* Tipografía */
  --font-head: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Espaciado (base 8px) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-6: 24px;
  --s-8: 32px;
  --s-12: 48px;
  --s-16: 64px;
  --s-24: 96px;
  --s-32: 128px;

  /* Radios de borde */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;

  /* Sombras suaves */
  --shadow-sm: 0 1px 2px rgba(59, 53, 46, .06);
  --shadow-md: 0 8px 24px rgba(59, 53, 46, .10);

  /* Layout */
  --container: 1240px;        /* Ancho máximo del contenedor */
  --measure: 700px;           /* Ancho máximo de lectura (60-75 caracteres) */
}


/* ==========================================================================
   2. RESET Y BASE — Normalización y estilos globales del body
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bone);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}


/* ==========================================================================
   3. UTILIDADES — Contenedor, padding de sección, encabezados, tipografía
   ========================================================================== */

/* Contenedor centrado con ancho máximo */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-6);
}

@media (max-width: 640px) {
  .container {
    padding: 0 var(--s-4);
  }
}

/* Padding vertical estándar para todas las secciones */
.section-padding {
  padding: var(--s-32) 0;
}

@media (max-width: 640px) {
  .section-padding {
    padding: var(--s-16) 0;
  }
}

/* Encabezado de sección: patrón repetido (kicker + H2 + lead) */
.section-header {
  max-width: var(--measure);
  margin-bottom: var(--s-12);
}

/* Kicker / antetítulo: texto pequeño en mayúsculas con línea de acento */
.kicker {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-700);
  margin-bottom: var(--s-4);
  display: flex;
  align-items: center;
  gap: var(--s-3);
}

/* Tick de latón antes del kicker */
.kicker::before {
  content: '';
  display: inline-block;
  width: 2px;
  height: 28px;
  background: var(--brass);
  border-radius: 1px;
}

/* Titulares */
h1 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 3.75rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--espresso);
}

h2 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 2.375rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--espresso);
}

h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.375rem;
  line-height: 1.25;
  color: var(--espresso);
}

/* Lead / subtítulo */
.lead {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: var(--measure);
  margin-top: var(--s-4);
}

/* Tipografía responsive (móvil) */
@media (max-width: 640px) {
  h1 { font-size: 38px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }
  .lead { font-size: 17px; }
  .kicker { font-size: 12px; }
}


/* ==========================================================================
   4. BOTONES — Primario, secundario, terciario (enlace con flecha)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.01em;
  border-radius: var(--r-sm);
  padding: 14px 28px;
  border: none;
  cursor: pointer;
  transition: all 150ms ease;
  text-decoration: none;
  line-height: 1;
}

/* Anillo de foco visible para accesibilidad de teclado */
.btn:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

/* Primario: fondo espresso, texto claro */
.btn-primary {
  background: var(--espresso);
  color: var(--bone-on-dark);
}

.btn-primary:hover {
  background: var(--espresso-900);
  box-shadow: var(--shadow-md);
}

/* Secundario: borde espresso, fondo transparente */
.btn-secondary {
  background: transparent;
  color: var(--espresso);
  border: 1px solid var(--espresso);
}

.btn-secondary:hover {
  background: rgba(91, 70, 54, 0.06);
}

/* Terciario: texto con flecha animada */
.btn-tertiary {
  background: transparent;
  color: var(--brass-700);
  padding: 14px 0;
}

.btn-tertiary svg {
  transition: transform 150ms ease;
}

.btn-tertiary:hover svg {
  transform: translateX(4px);
}


/* ==========================================================================
   5. NAVBAR — Barra de navegación fija superior
   Transparente sobre el hero, con fondo al hacer scroll.
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 120px;
  display: flex;
  align-items: center;
  background: var(--bone);
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition: border-color 300ms ease, box-shadow 300ms ease;
}

/* Estado con scroll: añade borde y sombra sutil */
.navbar.scrolled {
  border-bottom-color: var(--sand-line);
  box-shadow: var(--shadow-sm);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Logo en la navbar */
.nav-logo {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--espresso);
  display: flex;
  align-items: center;
  gap: var(--s-2);
}

.nav-logo img {
  height: 105px;
  width: auto;
}

/* Enlaces de navegación */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-8);
}

.nav-links a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  color: var(--espresso);
  transition: color 150ms ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--brass-700);
}

/* Subrayado animado en hover */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brass);
  transition: width 200ms ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* CTA de la navbar */
.nav-cta {
  margin-left: var(--s-4);
}

/* Botón hamburguesa (oculto en desktop) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--s-2);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--espresso);
  margin: 6px 0;
  transition: all 200ms ease;
}

/* Menú mobile: se despliega verticalmente */
@media (max-width: 1024px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 120px;
    left: 0;
    right: 0;
    background: var(--bone);
    padding: var(--s-6);
    border-bottom: 1px solid var(--sand-line);
    box-shadow: var(--shadow-md);
    gap: var(--s-6);
  }

  .nav-cta.open {
    display: block;
    position: absolute;
    top: calc(120px + var(--s-6));
    right: var(--s-6);
  }
}


/* ==========================================================================
   6. HERO — Sección principal con titular, subtítulo, CTAs e imagen
   Layout 50/50 en desktop, apilado en móvil.
   ========================================================================== */
.hero {
  padding-top: calc(120px + var(--s-24));
  padding-bottom: var(--s-24);
  background: var(--bone);
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-16);
  align-items: center;
}

.hero-content {
  max-width: 600px;
}

/* Kicker del hero (sin tick de latón): letter-spacing reducido para evitar salto de línea */
.hero-kicker {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brass-700);
  margin-bottom: var(--s-6);
}

.hero h1 {
  margin-bottom: var(--s-6);
}

.hero .lead {
  margin-bottom: var(--s-8);
  color: var(--ink);
}

/* Botones del hero en fila */
.hero-ctas {
  display: flex;
  gap: var(--s-4);
  flex-wrap: wrap;
}

/* Imagen del hero */
.hero-image {
  position: relative;
}

.hero-image img {
  border-radius: var(--r-lg);
  width: 100%;
  height: 500px;
  object-fit: cover;
}

/* Hero responsive */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: var(--s-12);
  }

  .hero {
    padding-top: calc(120px + var(--s-12));
    padding-bottom: var(--s-12);
  }

  .hero-image img {
    height: 360px;
  }
}


/* ==========================================================================
   7. BARRA DE CONFIANZA — Métricas clave bajo el hero
   4 columnas en desktop, 2 en móvil.
   ========================================================================== */
.trust-bar {
  background: var(--sand);
  padding: var(--s-8) 0;
}

.trust-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-6);
  text-align: center;
}

.trust-item strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.375rem;
  color: var(--espresso);
  margin-bottom: var(--s-1);
}

.trust-item span {
  font-size: 14px;
  color: var(--muted);
}

@media (max-width: 640px) {
  .trust-bar .container {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-4);
  }

  .trust-item strong {
    font-size: 1.125rem;
  }
}


/* ==========================================================================
   8. DESAFÍOS — 4 tarjetas con los problemas que resuelve
   Grid 2 columnas en desktop, 1 en móvil.
   ========================================================================== */
.desafios {
  background: var(--bone);
}

.desafios-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-6);
}

@media (max-width: 768px) {
  .desafios-grid {
    grid-template-columns: 1fr;
  }
}

/* Tarjeta individual de desafío */
.desafio-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--s-8);
  border: 1px solid var(--sand-line);
  box-shadow: var(--shadow-sm);
}

/* Contenedor de icono: cuadrado redondeado con fondo arena */
.desafio-card-icon {
  width: 48px;
  height: 48px;
  background: var(--sand);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-4);
}

.desafio-card-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--brass);
  stroke-width: 1.75;
  fill: none;
}

.desafio-card h3 {
  margin-bottom: var(--s-4);
}

.desafio-card ul {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

/* Items de lista con guion en latón */
.desafio-card li {
  font-size: 15px;
  color: var(--ink);
  padding-left: var(--s-4);
  position: relative;
  line-height: 1.5;
}

.desafio-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 1.5px;
  background: var(--brass);
}

/* Cita final y CTA de la sección desafíos */
.desafios-quote {
  max-width: var(--measure);
  margin: var(--s-12) auto 0;
  text-align: center;
}

.desafios-quote p {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--espresso);
  margin-bottom: var(--s-8);
}


/* ==========================================================================
   9. SERVICIOS — 4 tarjetas con los servicios ofrecidos
   Fondo arena para alternar con la sección anterior.
   ========================================================================== */
.servicios {
  background: var(--sand);
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-6);
}

@media (max-width: 768px) {
  .servicios-grid {
    grid-template-columns: 1fr;
  }
}

/* Tarjeta de servicio */
.servicio-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--s-8);
  box-shadow: var(--shadow-sm);
}

.servicio-card-icon {
  width: 48px;
  height: 48px;
  background: var(--sand);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-4);
}

.servicio-card-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--brass);
  stroke-width: 1.75;
  fill: none;
}

.servicio-card h3 {
  margin-bottom: var(--s-4);
}

.servicio-card ul {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.servicio-card li {
  font-size: 15px;
  color: var(--ink);
  padding-left: var(--s-4);
  position: relative;
  line-height: 1.5;
}

.servicio-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 1.5px;
  background: var(--brass);
}

/* CTA centrado bajo las tarjetas */
.servicios-cta {
  text-align: center;
  margin-top: var(--s-12);
}


/* ==========================================================================
   10. RESULTADOS — 4 tarjetas + imagen lateral
   Layout 50/50 en desktop, apilado en móvil.
   ========================================================================== */
.resultados {
  background: var(--bone);
}

.resultados-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-16);
  align-items: center;
}

@media (max-width: 1024px) {
  .resultados-layout {
    grid-template-columns: 1fr;
    gap: var(--s-12);
  }
}

.resultados-cards {
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
}

/* Tarjeta de resultado: icono + texto en fila */
.resultado-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  border: 1px solid var(--sand-line);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: var(--s-4);
  align-items: flex-start;
}

.resultado-card-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--sand);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.resultado-card-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--brass);
  stroke-width: 1.75;
  fill: none;
}

.resultado-card h3 {
  font-size: 1.125rem;
  margin-bottom: var(--s-1);
}

.resultado-card p {
  font-size: 15px;
  color: var(--muted);
}

/* Etiqueta de resultado destacada */
.resultado-card .resultado-tag {
  font-size: 13px;
  font-weight: 600;
  color: var(--brass-700);
  margin-top: var(--s-2);
}

/* Imagen lateral */
.resultados-image img {
  border-radius: var(--r-lg);
  width: 100%;
  height: 480px;
  object-fit: cover;
}

@media (max-width: 1024px) {
  .resultados-image img {
    height: 320px;
  }
}

.resultados-cta {
  text-align: center;
  margin-top: var(--s-12);
}


/* ==========================================================================
   11. SOBRE MÍ — Biografía profesional + tabla de impacto + imagen
   Layout 60/40 en desktop, apilado en móvil.
   ========================================================================== */
.sobre-mi {
  background: var(--sand);
}

.sobre-mi-layout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--s-16);
  align-items: center;
}

@media (max-width: 1024px) {
  .sobre-mi-layout {
    grid-template-columns: 1fr;
    gap: var(--s-12);
  }
}

.sobre-mi-content .lead {
  color: var(--ink);
  margin-bottom: var(--s-6);
}

/* Propuesta de valor destacada */
.sobre-mi-value {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--espresso);
  margin-bottom: var(--s-8);
}

/* Grid de métricas de impacto (3 columnas, 2 en móvil) */
.impacto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
  margin-bottom: var(--s-8);
}

@media (max-width: 640px) {
  .impacto-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.impacto-item {
  background: var(--surface);
  border-radius: var(--r-md);
  padding: var(--s-4);
  text-align: center;
  border: 1px solid var(--sand-line);
}

.impacto-item .impacto-num {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--espresso);
  display: block;
  margin-bottom: var(--s-1);
}

.impacto-item .impacto-label {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

/* Imagen de Xènia */
.sobre-mi-image img {
  border-radius: var(--r-lg);
  width: 100%;
  height: 480px;
  object-fit: cover;
}

@media (max-width: 1024px) {
  .sobre-mi-image img {
    height: 360px;
  }
}


/* ==========================================================================
   12. CONTACTO — Sección oscura (espresso) con tarjeta + formulario
   Layout 40/60 en desktop, apilado en móvil.
   ========================================================================== */
.contacto {
  background: var(--espresso);
  color: var(--bone-on-dark);
}

/* Sobreescribir colores del kicker y H2 para fondo oscuro */
.contacto .kicker {
  color: var(--brass);
}

.contacto .kicker::before {
  background: var(--brass);
}

.contacto h2 {
  color: var(--bone-on-dark);
}

.contacto .lead {
  color: var(--taupe);
}

.contacto-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--s-16);
  align-items: start;
}

/* Sin formulario: columna única centrada */
.contacto-layout--solo {
  grid-template-columns: 1fr;
  justify-items: center;
}

@media (max-width: 1024px) {
  .contacto-layout {
    grid-template-columns: 1fr;
    gap: var(--s-12);
  }
}

/* Tarjeta de contacto con foto redonda */
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--s-6);
}

/* Foto circular con borde latón */
.contact-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--brass);
}

.contact-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.375rem;
  color: var(--bone-on-dark);
}

.contact-role {
  font-size: 15px;
  color: var(--taupe);
  margin-top: var(--s-1);
}

/* Botones de contacto anti-spam (email y teléfono revelados por JS) */
.contact-links {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  width: 100%;
}

.contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 12px 20px;
  border-radius: var(--r-sm);
  border: 1px solid var(--taupe);
  background: rgba(243, 239, 230, 0.08);
  color: var(--bone-on-dark);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 150ms ease;
  text-decoration: none;
  min-height: 44px;
}

.contact-btn:hover {
  background: rgba(193, 154, 78, 0.15);
  border-color: var(--brass);
  color: var(--brass);
}

.contact-btn svg {
  width: 18px;
  height: 18px;
  stroke: var(--brass);
  stroke-width: 1.75;
  fill: none;
  flex-shrink: 0;
}

/* Enlace de LinkedIn (no necesita protección anti-spam) */
.contact-links a.contact-link-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 12px 20px;
  border-radius: var(--r-sm);
  border: 1px solid var(--taupe);
  background: rgba(243, 239, 230, 0.08);
  color: var(--bone-on-dark);
  font-size: 15px;
  font-weight: 500;
  transition: all 150ms ease;
  min-height: 44px;
}

.contact-links a.contact-link-social:hover {
  background: rgba(193, 154, 78, 0.15);
  border-color: var(--brass);
  color: var(--brass);
}

.contact-links a.contact-link-social svg {
  width: 18px;
  height: 18px;
  stroke: var(--brass);
  stroke-width: 1.75;
  fill: none;
}

/* Formulario de contacto */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

/* Fila de 2 campos lado a lado */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

/* Etiquetas de campo */
.form-group label {
  font-weight: 600;
  font-size: 14px;
  color: var(--bone-on-dark);
}

.form-group label .required {
  color: var(--brass);
}

/* Campos de formulario */
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 16px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--sand-line);
  border-radius: var(--r-sm);
  color: var(--ink);
  min-height: 44px;
  transition: border 150ms ease;
}

/* Estado de foco: borde latón + anillo sutil */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(193, 154, 78, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* Checkbox de privacidad */
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  font-size: 14px;
  color: var(--taupe);
}

.form-checkbox input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--brass);
  min-width: 18px;
  min-height: 18px;
}

.form-checkbox a {
  color: var(--brass);
  text-decoration: underline;
}

/* Botón de envío */
.form-submit {
  margin-top: var(--s-2);
}

.form-submit .btn {
  width: 100%;
  justify-content: center;
  background: var(--brass);
  color: var(--espresso-900);
  font-weight: 600;
}

.form-submit .btn:hover {
  background: var(--brass-700);
  color: var(--bone-on-dark);
}

@media (min-width: 641px) {
  .form-submit .btn {
    width: auto;
  }
}

/* Texto de confianza bajo el botón */
.form-microcopy {
  font-size: 13px;
  color: var(--taupe);
  margin-top: var(--s-2);
}


/* ==========================================================================
   13. FOOTER — Fondo oscuro (espresso-900) con logo, enlaces y legales
   ========================================================================== */
.footer {
  background: var(--espresso-900);
  color: var(--bone-on-dark);
  padding: var(--s-16) 0 var(--s-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--s-12);
  margin-bottom: var(--s-12);
  align-items: start;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--s-8);
  }
}

/* Bloque de marca en el footer */
.footer-brand .nav-logo {
  color: var(--bone-on-dark);
  margin-bottom: var(--s-4);
  font-size: 1.25rem;
}

.footer-brand .nav-logo img {
  height: 105px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--taupe);
}

/* Columnas del footer (navegación y contacto) */
.footer-col h4 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  color: var(--bone-on-dark);
  margin-bottom: var(--s-4);
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--taupe);
  padding: var(--s-1) 0;
  transition: color 150ms ease;
}

.footer-col a:hover {
  color: var(--brass);
}

/* Barra inferior con legales y copyright */
.footer-bottom {
  border-top: 1px solid rgba(243, 239, 230, 0.1);
  padding-top: var(--s-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-4);
}

.footer-legal {
  display: flex;
  gap: var(--s-6);
}

.footer-legal a {
  font-size: 13px;
  color: var(--muted);
  transition: color 150ms ease;
}

.footer-legal a:hover {
  color: var(--brass);
}

.footer-copy {
  font-size: 13px;
  color: var(--muted);
}


/* ==========================================================================
   14. SCROLL REVEAL — Animación de entrada al hacer scroll
   Fade in + desplazamiento vertical de 16px.
   Se desactiva si el usuario prefiere movimiento reducido.
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease-out, transform 500ms ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Respetar preferencias de accesibilidad */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* ==========================================================================
   15. PÁGINAS LEGALES — Aviso legal, Privacidad, Cookies
   Layout limpio de lectura con ancho máximo y tipografía clara.
   ========================================================================== */
.legal-page {
  padding-top: calc(120px + var(--s-12));
  padding-bottom: var(--s-24);
  background: var(--bone);
  min-height: 100vh;
}

.legal-page .container {
  max-width: var(--measure);
}

/* Enlace de vuelta a la página principal */
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 600;
  font-size: 15px;
  color: var(--brass-700);
  margin-bottom: var(--s-8);
  transition: color 150ms ease;
}

.legal-back:hover {
  color: var(--espresso);
}

/* Titulares legales */
.legal-page h1 {
  font-size: 2.375rem;
  margin-bottom: var(--s-6);
}

.legal-page h2 {
  font-size: 1.375rem;
  margin-top: var(--s-8);
  margin-bottom: var(--s-4);
}

/* Texto legal */
.legal-page p,
.legal-page li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: var(--s-4);
}

.legal-page ul,
.legal-page ol {
  padding-left: var(--s-6);
  margin-bottom: var(--s-4);
}

.legal-page ul {
  list-style: disc;
}

.legal-page ol {
  list-style: decimal;
}

.legal-page li {
  margin-bottom: var(--s-2);
}

/* Enlaces dentro del texto legal */
.legal-page a:not(.legal-back):not(.nav-logo) {
  color: var(--brass-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-page a:not(.legal-back):not(.nav-logo):hover {
  color: var(--espresso);
}

/* Datos del titular (lista sin viñeta) */
.legal-page .legal-data {
  list-style: none;
  padding-left: 0;
}

.legal-page .legal-data li {
  padding-left: 0;
}

/* Tabla de cookies */
.legal-page table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--s-6) 0;
  font-size: 14px;
}

.legal-page th,
.legal-page td {
  text-align: left;
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--sand-line);
}

.legal-page th {
  font-weight: 600;
  color: var(--espresso);
  background: var(--sand);
}

.legal-page td {
  color: var(--ink);
}

/* Fecha de actualización */
.legal-page .legal-updated {
  font-size: 14px;
  color: var(--muted);
  font-style: italic;
  margin-top: var(--s-8);
}

@media (max-width: 640px) {
  .legal-page h1 { font-size: 28px; }
  .legal-page { padding-top: calc(120px + var(--s-6)); }

  .legal-page table {
    font-size: 13px;
  }

  .legal-page th,
  .legal-page td {
    padding: var(--s-2) var(--s-3);
  }
}
