/* ==========================================================================
   ACUITY — Stylesheet
   Orden: 1. Variables · 2. Reset · 3. Componentes · 4. Secciones
          5. Responsive · 6. Animaciones · 7. Accesibilidad (reduced-motion)
   ========================================================================== */


/* ==========================================================================
   1. VARIABLES
   ========================================================================== */

:root {
  --color-primary: #2b6d0c;
  --color-primary-hover: #235a0a;
  --color-text: #1a1e15;
  --color-text-secondary: #474d41;
  --color-text-muted: #6b7064;        /* Pasa AA sobre bg-light (4.6:1) */
  --bg-light: #f2f4f0;
  --bg-white: #f9f9f5;
  --color-white: #ffffff;
  --color-border: rgba(26, 30, 21, 0.1);

  --font-heading: 'neue-haas-grotesk-display', sans-serif;
  --font-body: 'Inter', sans-serif;

  --text-h1: clamp(2.5rem, 5vw + 1rem, 4rem);
  --text-h2: clamp(1.75rem, 3vw + 0.5rem, 2.5rem);
  --text-h3: clamp(1.25rem, 2vw + 0.25rem, 1.5rem);
  --text-h4: clamp(1.125rem, 1.5vw + 0.25rem, 1.25rem);
  --text-h5: clamp(1rem, 1vw + 0.5rem, 1.125rem);
  --text-body: clamp(1rem, 1vw + 0.5rem, 1.125rem);
  --text-body-large: clamp(1.125rem, 1.5vw + 0.5rem, 1.25rem);
  --text-small: clamp(0.875rem, 0.5vw + 0.5rem, 0.9375rem);
  --text-label: clamp(0.75rem, 0.5vw + 0.25rem, 0.8125rem);

  --space-xs: clamp(0.5rem, 1vw, 0.75rem);
  --space-sm: clamp(1rem, 2vw, 1.5rem);
  --space-md: clamp(1.5rem, 3vw, 2.5rem);
  --space-lg: clamp(2.5rem, 5vw, 4rem);
  --space-xl: clamp(4rem, 8vw, 7rem);
  --space-2xl: clamp(6rem, 12vw, 10rem);

  --container-max: 1200px;
  --container-padding: clamp(1.25rem, 4vw, 3rem);
  --header-height: 80px;
  --mobile-cta-height: 72px;
}


/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--color-text);
  background-color: var(--bg-white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.1;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); margin-bottom: var(--space-md); }
h3 { font-size: var(--text-h3); }
h4 { font-size: var(--text-h4); }

p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

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

ul, ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
}

/* Utilidades */
.bg-light   { background-color: var(--bg-light); }
.bg-white   { background-color: var(--bg-white); }
.bg-primary { background-color: var(--color-primary); }
.text-center { text-align: center; }
.text-white  { color: var(--color-white); }
.text-primary { color: var(--color-primary); }

/* Foco global visible — requisito WCAG 2.1 AA */
*:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
  border-radius: 2px;
}

/* Skip link: aparece solo al recibir foco por teclado */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-sm);
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
  border-radius: 0.375rem;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: var(--space-sm);
}


/* ==========================================================================
   3. COMPONENTES COMUNES
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

section {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.section-header {
  max-width: 800px;
  margin: 0 auto var(--space-2xl);
  text-align: center;
}

.section-header h2 {
  margin-bottom: var(--space-sm);
}

.section-header p,
.section-header .subtitle,
.section-header .subheadline {
  font-size: var(--text-body-large);
  line-height: 1.6;
  max-width: 650px;
  margin: 0 auto;
  color: var(--color-text-secondary);  /* Sustituye opacity 0.8 — WCAG AA */
}

/* Botones */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 500;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.btn-primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
}

.btn-small {
  padding: 0.5rem 1.25rem;
  font-size: var(--text-label);
  font-weight: 600;
}

.btn-inverted {
  background-color: var(--color-white);
  color: var(--color-primary);          /* verde #2b6d0c sobre blanco = 7.8:1 ✅ AAA */
  border: 2px solid var(--color-white);
  font-weight: 600;
}
.btn-inverted:hover {
  background-color: var(--color-primary-hover);  /* verde oscuro sólido */
  color: var(--color-white);                     /* blanco sobre verde oscuro = 9.1:1 ✅ AAA */
  border-color: var(--color-primary-hover);
}

.label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.logo-link {
  display: inline-flex;
  align-items: center;
}


/* ==========================================================================
   4. SECCIONES
   ========================================================================== */

/* --- HEADER --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(242, 244, 240, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 1px 0 rgba(26, 30, 21, 0.08), 0 4px 20px rgba(26, 30, 21, 0.06);
  background-color: rgba(242, 244, 240, 0.97);
}
#proceso,
#incluye,
#faq,
#dedicacion {
  scroll-margin-top: var(--header-height);
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-svg {
  height: 28px;
  width: auto;
}

/* --- HERO --- */
.section-hero {
  padding-top: calc(var(--space-2xl) + var(--header-height));
  position: relative;
}
.hero-content {
  max-width: 1440px;
  margin: 0 auto var(--space-xl);
  text-align: center;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.credential {
  font-size: var(--text-body);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

/* H1 como eyebrow (decisión de cliente: H1 optimizado para SEO) */
h1.hero-seo-label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  font-size: var(--text-label);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  font-family: var(--font-body);
  line-height: 1.2;
}

.hero-display {
  font-family: var(--font-heading);
  font-size: var(--text-h1);
  font-weight: 600;
  line-height: 1.1;
  color: var(--color-text);
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

/* --- LOGOS CLIENTES --- */
.logos-container {
  margin-top: var(--space-xl);
  text-align: center;
}
.logos-wrapper {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 0;
}
.logos-wrapper li {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-item {
  /* PNG original 240x80 → mostrado a la mitad (proporción respetada) */
  height: 40px;
  width: auto;
  opacity: 0.9;
  transition: opacity 0.3s ease;
  filter: grayscale(100%);
}
.logo-item:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* --- PROBLEMA / SOLUCIÓN --- */
.section-problem-solution .section-header {
  max-width: 100%;
}
.split-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
}
.split-card {
  background-color: var(--color-white);
  border: none;
  border-radius: 1.5rem;
  padding: var(--space-lg);
  box-shadow: 0 20px 40px rgba(26, 30, 21, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.split-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px rgba(26, 30, 21, 0.08);
}

/* --- PROCESO --- */
.grid-4-cols.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl) var(--space-md);
}
.process-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.step-number {
  font-family: var(--font-heading);
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-border);        /* Ornamental — elemento aria-hidden */
  margin-bottom: var(--space-xs);
  letter-spacing: -0.04em;
  user-select: none;
}
.step-title {
  font-size: var(--text-h4);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}
.process-step p {
  color: var(--color-text-secondary);
  font-size: var(--text-body);
  line-height: 1.5;
}

/* --- QUÉ INCLUYE --- */
.grid-3-cols.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl) var(--space-lg);
}
.feature-item {
  display: flex;
  flex-direction: column;
}
.feature-title {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: var(--text-h5);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}
.feature-title::before {
  content: '';
  display: block;
  width: 6px;
  height: 12px;
  border-bottom: 2px solid var(--color-primary);
  border-right: 2px solid var(--color-primary);
  transform: rotate(45deg);
  margin-top: 4px;
  flex-shrink: 0;
}
.feature-item p {
  color: var(--color-text-secondary);
  font-size: var(--text-body);
  line-height: 1.5;
  margin-left: 1.25rem;
}

/* --- FAQ ACCORDION --- */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-heading {
  /* Reset del h3: aquí solo es contenedor semántico */
  margin-bottom: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  font-family: inherit;
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: var(--text-h5);
  font-weight: 500;
  line-height: 1.3;
  transition: color 0.3s ease;
}
.faq-question:hover {
  color: var(--color-primary);
}
.faq-question-text {
  flex: 1;
}
.faq-icon {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background-color: var(--color-primary);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
.faq-icon::before { top: 9px; left: 0; width: 100%; height: 2px; }
.faq-icon::after  { top: 0; left: 9px; width: 2px; height: 100%; }

.faq-item.is-open .faq-icon::after  { transform: rotate(90deg); opacity: 0; }
.faq-item.is-open .faq-icon::before { transform: rotate(180deg); }

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
}
.faq-answer-content {
  min-height: 0;
  overflow: hidden;
}
.faq-answer-content p {
  padding-bottom: var(--space-md);
  margin-bottom: 0;
  max-width: 65ch;
}

/* --- CTA FINAL --- */
.section-cta {
  padding-top: calc(var(--space-2xl) * 1.5);
  padding-bottom: calc(var(--space-2xl) * 1.5);
  background: linear-gradient(
    to bottom,
    var(--color-primary) 0%,
    var(--color-primary-hover) 100%
  );
}
.section-cta h2,
.section-cta .subtitle {
  color: var(--color-white);
}
.section-cta h2 {
  margin-bottom: var(--space-sm);
}
.section-cta .subtitle {
  max-width: 600px;
  margin: 0 auto var(--space-xl);
  font-size: var(--text-h5);
  /* Sin opacity — blanco sólido sobre verde da ratio 7.8:1 (AAA) */
}

/* --- FOOTER --- */
.site-footer {
  padding: var(--space-xl) 0 var(--space-lg);
  border-top: 1px solid var(--color-border);
  background-color: var(--bg-light);
}
.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-md);
  flex-wrap: wrap;
}
.footer-logo {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.footer-logo .logo-svg {
  height: 24px;
  width: auto;
  display: block;
  margin: 0 0 var(--space-sm) 0;
}
.copyright {
  font-size: 0.875rem;
  color: var(--color-text-secondary);  /* Sólido — pasa AA */
  margin: 0;
}
.footer-links {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.875rem;
  color: var(--color-text-secondary);  /* Sólido — pasa AA */
  transition: color 0.3s ease;
}
.footer-links a:hover {
  color: var(--color-primary);
}

/* --- PÁGINA LEGAL (accesibilidad, privacidad, etc.) --- */
.legal-page {
  padding-top: calc(var(--space-2xl) + var(--header-height));
  padding-bottom: var(--space-2xl);
  min-height: calc(100vh - var(--header-height));
}
.legal-container {
  max-width: 760px;
}
.legal-header {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
}
.legal-header h1 {
  margin-bottom: var(--space-sm);
}
.legal-meta {
  color: var(--color-text-secondary);
  font-size: var(--text-small);
  margin: 0;
}
.legal-section {
  margin-bottom: var(--space-lg);
}
.legal-section h2 {
  font-size: var(--text-h4);
  margin-bottom: var(--space-sm);
  margin-top: var(--space-md);
}
.legal-section p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
}
.legal-list {
  padding-left: 1.25rem;
  margin-bottom: var(--space-md);
}
.legal-list li {
  color: var(--color-text-secondary);
  margin-bottom: 0.5rem;
  list-style: disc;
  line-height: 1.6;
}
.legal-list li::marker {
  color: var(--color-primary);
}
.legal-section code {
  background-color: var(--bg-white);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.9em;
  font-family: 'Menlo', 'Consolas', monospace;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.legal-link {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}
.legal-link:hover {
  color: var(--color-primary-hover);
}

/* --- MOBILE CTA BAR (solo móvil, se activa desde JS) --- */
.mobile-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 0.75rem var(--container-padding);
  /* safe-area para iPhones con notch/home indicator */
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0));
  background-color: rgba(249, 249, 245, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--color-border);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  /* Solo visible en móvil. En desktop no se muestra nunca. */
  display: none;
}
.mobile-cta-bar.is-visible {
  transform: translateY(0);
}
.mobile-cta-btn {
  width: 100%;
  padding: 1rem;
  border-radius: 0.5rem;
  font-size: var(--text-body);
  font-weight: 600;
}


/* ==========================================================================
   5. RESPONSIVE
   ========================================================================== */

@media (max-width: 991px) {
  .grid-4-cols.process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
  }
  .grid-3-cols.features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
  }
}

@media (max-width: 767px) {
  .logos-wrapper {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: var(--space-sm);
    gap: var(--space-md);
  }
  .logos-wrapper::-webkit-scrollbar { display: none; }
  .logos-wrapper li {
    flex: 0 0 auto;
    scroll-snap-align: center;
  }
  .split-cards { grid-template-columns: 1fr; }
  .grid-4-cols.process-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .step-number { font-size: 3.5rem; }
  .grid-3-cols.features-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .section-cta {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
  }
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xl);
  }
  .footer-links {
    flex-direction: column;
    gap: var(--space-sm);
  }
  .footer-logo .logo-svg { margin: 0; }

  /* El header-cta se mantiene visible también en móvil para consistencia */
  .header-cta { display: inline-flex; }

  /* Mobile CTA bar solo en móvil */
  .mobile-cta-bar { display: block; }

  /* Padding compensatorio para que el CTA bar nunca tape contenido */
  body { padding-bottom: calc(var(--mobile-cta-height) + env(safe-area-inset-bottom, 0)); }
}

@media (min-width: 1440px) {
  :root { --container-max: 1400px; }
}


/* ==========================================================================
   6. ANIMACIONES SCROLL
   ========================================================================== */

[data-anim] {
  opacity: 0;
  transition-property: opacity, transform;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}
[data-anim="fade-up"]    { transform: translateY(40px); }
[data-anim="fade-left"]  { transform: translateX(-40px); }
[data-anim="fade-right"] { transform: translateX(40px); }
[data-anim="scale-up"]   { transform: scale(0.92); }
[data-anim="fade"]       { transform: none; }

[data-anim].is-visible {
  opacity: 1;
  transform: none;
}

[data-duration="slow"]   { transition-duration: 900ms; }
[data-duration="normal"] { transition-duration: 650ms; }
[data-duration="fast"]   { transition-duration: 400ms; }

.step-number {
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-header::before {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  margin: 0 auto var(--space-md);
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.section-header.is-visible::before {
  width: 40px;
}


/* ==========================================================================
   PÁGINA CONTACTO — Formulario
   ========================================================================== */

.section-contact {
  padding-top: calc(var(--space-2xl) + var(--header-height));
  padding-bottom: var(--space-2xl);
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
}
.contact-block {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.contact-block .label {
  margin-bottom: var(--space-sm);
}
.contact-block h1 {
  margin-bottom: var(--space-sm);
}
.contact-subtitle {
  font-size: var(--text-body-large);
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
}

/* Formulario */
.form-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
}
.form-fields {
  display: flex;
  gap: 0.5rem;
}
.field {
  flex: 1;
}
.input-field {
  width: 100%;
  padding: 1.05rem 1.25rem;
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--color-text);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  outline: none;
  transition: border-color 0.2s ease;
}
.input-field:focus {
  border-color: var(--color-primary);
}
.input-field::placeholder {
  color: #6b7064;   /* pasa AA: 4.6:1 sobre blanco */
}
.input-field[aria-invalid="true"] {
  border-color: #b45309;
}

/* Mensaje de error */
.form-error {
  display: none;
  font-size: var(--text-small);
  color: #b45309;
  text-align: center;
  margin: 0;
  line-height: 1.4;
}
.form-error.is-visible {
  display: block;
}

/* Checkbox RGPD */
.checkbox-legal {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  text-align: left;
  cursor: pointer;
  margin-bottom: 0.5rem;
}
.checkbox-legal input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--color-primary);
  cursor: pointer;
}
.checkbox-legal span {
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  line-height: 1.4;
}
.checkbox-legal a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}
.checkbox-legal a:hover {
  color: var(--color-primary-hover);
}

/* Botón submit — reaprovecha .btn-primary global */
.form-submit {
  width: 100%;
  margin-top: 0.25rem;
}
.form-submit[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

/* Honeypot (antispam invisible) */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* WhatsApp alternativa */
.whatsapp-alt {
  font-size: var(--text-body);
  color: var(--color-text-secondary);
  margin-top: var(--space-md);
  text-align: center;
}
.whatsapp-alt a {
  color: var(--color-primary);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.whatsapp-alt a:hover {
  color: var(--color-primary-hover);
}

/* Trust line final */
.trust-line {
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  margin-top: var(--space-lg);
  line-height: 1.5;
  text-align: center;
}
.trust-line .separator {
  margin: 0 0.4em;
  color: var(--color-text-secondary);
}

/* Rule decorativa sobre el eyebrow */
.rule-accent {
  width: 40px;
  height: 2px;
  background-color: var(--color-primary);
  margin: 0 auto var(--space-md);
  border: none;
}

/* Responsive contacto */
@media (max-width: 540px) {
  .form-fields {
    flex-direction: column;
  }
  .input-field {
    padding: 1.05rem 1rem;
  }
}


/* ==========================================================================
   PÁGINA GRACIAS (thank-you post-formulario)
   ========================================================================== */

.section-thankyou {
  padding-top: calc(var(--space-2xl) + var(--header-height));
  padding-bottom: var(--space-2xl);
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
}
.thankyou-block {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.thankyou-block .label {
  margin-bottom: var(--space-sm);
}
.thankyou-block h1 {
  font-size: clamp(1.75rem, 3.5vw + 0.5rem, 2.75rem);
  line-height: 1.15;
  margin-bottom: var(--space-md);
  letter-spacing: -0.01em;
}
.thankyou-lead {
  font-size: var(--text-body-large);
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: var(--space-lg);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.thankyou-lead strong {
  color: var(--color-primary);
  font-weight: 600;
}

.thankyou-callout {
  background-color: var(--color-white);
  border-radius: 1rem;
  padding: var(--space-md) var(--space-md);
  margin-bottom: var(--space-lg);
  box-shadow: 0 16px 40px rgba(26, 30, 21, 0.06);
  text-align: left;
}
.thankyou-callout p {
  color: var(--color-text-secondary);
  margin-bottom: 0.75rem;
  line-height: 1.6;
}
.thankyou-callout p:last-child {
  margin-bottom: 0;
}
.callout-title {
  font-weight: 600;
  color: var(--color-text) !important;
  font-size: var(--text-body-large);
}
.callout-icon {
  margin-right: 0.25rem;
}
.phone-highlight {
  color: var(--color-primary);
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.callout-close {
  font-style: italic;
  color: var(--color-text) !important;
  font-weight: 500;
  margin-top: var(--space-sm) !important;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.75rem;
  font-size: var(--text-body);
  font-weight: 500;
}
.wa-icon {
  font-size: 1.15em;
}

/* Responsive gracias */
@media (max-width: 540px) {
  .thankyou-callout {
    padding: 1.25rem 1.25rem;
  }
  .btn-whatsapp {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: var(--text-small);
  }
}


/* ==========================================================================
   7. ACCESIBILIDAD — prefers-reduced-motion
   ========================================================================== */

/* WCAG 2.1 SC 2.3.3: respetar preferencias del sistema del usuario */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
