/*
 Theme Name:   Astra AgileNext
 Theme URI:    https://agilenext.mx
 Description:  Child theme de Astra para AgileNext.mx — consultoría ágil, formación certificada CertiProf y agentes de IA.
 Author:       AgileNext / Coach Gabo
 Author URI:   https://agilenext.mx
 Template:     astra
 Version:      2.0.0
 Text Domain:  astra-agilenext
*/

/* ================================================================
   1. DESIGN TOKENS — CSS Custom Properties
   Fuente de verdad: addendum-diseno-agilenext-v2.md sección 1
   ================================================================ */
:root {
  /* ══════ PALETA PRIMARIA — AZUL ══════ */
  --blue-100: #99D3F1;
  --blue-300: #34A8E2;
  --blue-500: #14658E;
  --blue-700: #0D435F;
  --blue-900: #07222F;

  /* ══════ PALETA SECUNDARIA — NARANJA ══════ */
  --orange-100: #FAE1D7;
  --orange-200: #F5C4AF;
  --orange-300: #F1A687;
  --orange-400: #EC895F;
  --orange-500: #E76B37;

  /* ══════ NEUTROS ══════ */
  --white: #FEFEFE;
  --gray: #5F5F5F;
  --black: #000000;

  /* ══════ SEMÁNTICOS (derivados) ══════ */
  --bg-dark: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 50%, var(--blue-900) 100%);
  --bg-dark-flat: var(--blue-900);
  --bg-light: var(--white);
  --bg-light-alt: #F8F9FA;
  --text-on-dark: var(--white);
  --text-on-light: var(--black);
  --text-muted-dark: rgba(254, 254, 254, 0.6);
  --text-muted-light: var(--gray);
  --cta-primary: var(--orange-500);
  --cta-primary-hover: #D55E2F;
  --cta-secondary: var(--blue-500);
  --cta-secondary-hover: #0D435F;
  --whatsapp: #25D366;
  --success: #10B981;

  /* ══════ TIPOGRAFÍA ══════ */
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* ══════ ESCALA TIPOGRÁFICA (mobile-first) ══════ */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3.25rem;
  --text-hero-mobile: 2rem;
  --text-hero-desktop: 3.25rem;

  /* ══════ ESPACIADO ══════ */
  --section-padding-mobile: 60px 20px;
  --section-padding-tablet: 80px 32px;
  --section-padding-desktop: 100px 24px;
  --container-max: 1200px;
  --card-radius: 16px;
  --btn-radius: 12px;

  /* ══════ ANIMACIONES ══════ */
  --ease-default: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 0.3s;
  --duration-normal: 0.6s;
  --stagger-delay: 0.1s;

  /* ══════ SOMBRAS ══════ */
  --shadow-card: 0 4px 24px rgba(7, 34, 47, 0.12);
  --shadow-card-hover: 0 8px 40px rgba(7, 34, 47, 0.2);
  --shadow-cta: 0 4px 20px rgba(231, 107, 55, 0.3);
  --shadow-glow-blue: 0 0 40px rgba(52, 168, 226, 0.15);
  --shadow-glow-orange: 0 0 40px rgba(231, 107, 55, 0.15);

  /* ══════ BACKWARD COMPAT — eliminar después de migrar las 25 páginas ══════ */
  --an-azul-claro: var(--blue-100);
  --an-azul-medio: var(--blue-300);
  --an-azul-base: var(--blue-500);
  --an-azul-oscuro: var(--blue-700);
  --an-azul-mas-oscuro: var(--blue-900);
  --an-naranja-claro: var(--orange-100);
  --an-naranja-medio: var(--orange-200);
  --an-naranja-base: var(--orange-300);
  --an-naranja-oscuro: var(--orange-400);
  --an-naranja-cta: var(--orange-500);
  --an-blanco: var(--white);
  --an-negro: var(--black);
  --an-gris: var(--gray);
}

/* ================================================================
   2. BASE
   ================================================================ */
body {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
}

::selection {
  background: var(--orange-500);
  color: white;
}

/* ================================================================
   3. BOTONES CTA
   ================================================================ */
.wp-block-button__link,
.ast-custom-button,
a.wp-block-button__link {
  background-color: var(--cta-primary) !important;
  color: var(--white) !important;
  border: none;
  border-radius: var(--btn-radius);
  padding: 16px 32px;
  font-weight: 600;
  font-family: var(--font-body);
  font-size: var(--text-base);
  transition: all var(--duration-fast) var(--ease-default);
  box-shadow: var(--shadow-cta);
}

.wp-block-button__link:hover,
.ast-custom-button:hover,
a.wp-block-button__link:hover {
  background-color: var(--cta-primary-hover) !important;
  transform: translateY(-2px);
}

/* Botón secundario (outline) */
.wp-block-button.is-style-outline .wp-block-button__link {
  background-color: transparent !important;
  color: var(--blue-100) !important;
  border: 1.5px solid rgba(153, 211, 241, 0.3);
  box-shadow: none;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background-color: rgba(153, 211, 241, 0.1) !important;
  border-color: var(--blue-300);
}

/* Botón WhatsApp */
.btn-whatsapp {
  background-color: var(--whatsapp) !important;
  color: var(--white) !important;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background-color: #20BD5A !important;
}

/* ================================================================
   4. HIGHLIGHTS DE TEXTO
   ================================================================ */
.highlight-naranja {
  color: var(--orange-500);
  font-weight: 600;
}

.highlight-azul {
  color: var(--blue-500);
  font-weight: 600;
}

.gradient-text-orange {
  background: linear-gradient(135deg, var(--orange-400), var(--orange-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ================================================================
   5. SECCIONES — Patrones de layout
   ================================================================ */

/* --- Hero Dark --- */
.section-hero-dark {
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
  min-height: 80vh;
  padding: 100px 20px 60px;
}

.section-hero-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(153, 211, 241, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(153, 211, 241, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.section-hero-dark .glow-orange {
  position: absolute;
  top: -15%;
  right: -15%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(231, 107, 55, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.section-hero-dark .glow-blue {
  position: absolute;
  bottom: -25%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(52, 168, 226, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* --- Stats Bar --- */
.section-stats-bar {
  background-color: var(--blue-700);
  border-top: 1px solid rgba(254, 254, 254, 0.06);
  border-bottom: 1px solid rgba(254, 254, 254, 0.06);
  padding: 48px 20px;
}

.stat-number {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 2rem;
  color: var(--orange-500);
  text-shadow: 0 0 40px rgba(231, 107, 55, 0.2);
}

.stat-label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-muted-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* --- Section light --- */
.section-light {
  background: var(--bg-light);
  color: var(--text-on-light);
  padding: var(--section-padding-mobile);
}

.section-light-alt {
  background: var(--bg-light-alt);
  color: var(--text-on-light);
  padding: var(--section-padding-mobile);
}

/* --- Section dark --- */
.section-dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: var(--section-padding-mobile);
}

.section-dark-flat {
  background: var(--bg-dark-flat);
  color: var(--text-on-dark);
  padding: var(--section-padding-mobile);
}

/* --- Bio / Coach --- */
.section-bio {
  background: var(--bg-light-alt);
  color: var(--text-on-light);
  padding: var(--section-padding-mobile);
  border-top: 1px solid #E5E7EB;
  border-bottom: 1px solid #E5E7EB;
}

/* --- CTA Final --- */
.section-cta-final {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  color: var(--text-on-dark);
  padding: 60px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.section-cta-final::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(231, 107, 55, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* --- Backward compat aliases --- */
.seccion-oscura { background-color: var(--blue-900); padding: 60px 0; color: var(--white); }
.seccion-media { background-color: var(--blue-700); padding: 60px 0; color: var(--white); }
.seccion-clara { background-color: var(--white); color: var(--black); padding: 60px 0; }

/* ================================================================
   6. CARDS
   ================================================================ */

/* Dark card (sobre fondo dark) */
.dark-card {
  background: rgba(254, 254, 254, 0.03);
  border: 1px solid rgba(254, 254, 254, 0.08);
  border-radius: var(--card-radius);
  padding: 28px;
  transition: all var(--duration-fast) var(--ease-default);
}

.dark-card:hover {
  background: rgba(254, 254, 254, 0.06);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

/* Light card (sobre fondo claro) */
.light-card {
  background: var(--white);
  border: 1px solid #E5E7EB;
  border-radius: var(--card-radius);
  padding: 28px;
  transition: all var(--duration-fast) var(--ease-default);
}

.light-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--blue-300);
}

/* Glass card */
.glass-card {
  background: rgba(254, 254, 254, 0.05);
  border: 1px solid rgba(254, 254, 254, 0.1);
  border-radius: 18px;
  padding: 28px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--duration-fast) var(--ease-default);
}

.glass-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-glow-blue);
}

/* Card acento inferior por pilar */
.card-accent-blue::after { content: ''; display: block; width: 40px; height: 3px; background: var(--blue-500); margin-top: 16px; border-radius: 2px; }
.card-accent-orange::after { content: ''; display: block; width: 40px; height: 3px; background: var(--orange-500); margin-top: 16px; border-radius: 2px; }
.card-accent-lightblue::after { content: ''; display: block; width: 40px; height: 3px; background: var(--blue-300); margin-top: 16px; border-radius: 2px; }

/* Backward compat */
.tarjeta-servicio {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--card-radius);
  padding: 30px;
  transition: transform var(--duration-fast) var(--ease-default), border-color var(--duration-fast) var(--ease-default);
}

.tarjeta-servicio:hover {
  transform: translateY(-4px);
  border-color: var(--orange-500);
}

/* ================================================================
   7. GRIDS RESPONSIVE
   ================================================================ */
.grid-cards-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.grid-cards-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.grid-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.grid-2col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

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

/* ================================================================
   8. ANIMACIONES — Fade Up (activada por JS)
   ================================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration-normal) var(--ease-default),
              transform var(--duration-normal) var(--ease-default);
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up[data-delay="1"] { transition-delay: 0.1s; }
.fade-up[data-delay="2"] { transition-delay: 0.2s; }
.fade-up[data-delay="3"] { transition-delay: 0.3s; }
.fade-up[data-delay="4"] { transition-delay: 0.4s; }
.fade-up[data-delay="5"] { transition-delay: 0.5s; }

/* ================================================================
   9. TIPOGRAFÍA UTILITARIOS
   ================================================================ */
.font-display { font-family: var(--font-display); }
.font-mono { font-family: var(--font-mono); }
.text-muted-dark { color: var(--text-muted-dark); }
.text-muted-light { color: var(--text-muted-light); }

.section-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-500), var(--orange-500));
  display: inline-block;
  flex-shrink: 0;
}

.section-label-light {
  color: rgba(254, 254, 254, 0.35);
}

/* Números de sección (backward compat) */
.numero-seccion { font-size: 3rem; font-weight: 800; line-height: 1; }
.numero-seccion.naranja { color: var(--orange-400); }
.numero-seccion.azul { color: var(--blue-300); }

/* ================================================================
   10. QUOTE BLOCK
   ================================================================ */
.quote-block {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: normal;
  line-height: 1.4;
  padding-left: 24px;
  border-left: 3px solid var(--orange-500);
  margin: 0 0 20px 0;
}

/* ================================================================
   11. BADGE
   ================================================================ */
.badge-hero {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--orange-500);
  background: rgba(231, 107, 55, 0.12);
  padding: 6px 14px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 20px;
  border: 1px solid rgba(231, 107, 55, 0.25);
}

.badge-level-foundation {
  background: rgba(153, 211, 241, 0.15);
  color: var(--blue-500);
  padding: 4px 12px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}

.badge-level-professional {
  background: rgba(231, 107, 55, 0.12);
  color: var(--orange-500);
  padding: 4px 12px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}

.badge-level-expert {
  background: var(--blue-900);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}

/* ================================================================
   12. TESTIMONIOS CAROUSEL
   ================================================================ */
.testimonios-carousel {
  position: relative;
  min-height: 220px;
}

.testimonios-carousel .carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.6s var(--ease-default);
  pointer-events: none;
}

.testimonios-carousel .carousel-slide.active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.carousel-quote-mark {
  font-size: 72px;
  color: rgba(231, 107, 55, 0.15);
  font-family: Georgia, serif;
  line-height: 1;
  margin-bottom: -20px;
}

.carousel-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--orange-500), var(--orange-400));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background: rgba(254, 254, 254, 0.2);
  border: none;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-default);
  padding: 0;
}

.carousel-dot.active {
  width: 28px;
  background: var(--orange-500);
}

/* ================================================================
   13. NAVBAR — Overrides de Astra
   ================================================================ */
.ast-primary-header-bar,
.ast-main-header-wrap {
  transition: all var(--duration-fast) var(--ease-default);
}

/* Navbar con glassmorphism al scroll (clase añadida por JS) */
body.scrolled .ast-primary-header-bar {
  background: rgba(7, 34, 47, 0.97) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(153, 211, 241, 0.08);
}

/* Links del menú */
.ast-header-break-point .ast-button-wrap .menu-toggle,
.main-header-menu > .menu-item > a {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--duration-fast) var(--ease-default);
}

.main-header-menu > .menu-item > a:hover {
  color: var(--orange-500) !important;
}

/* Menú activo */
.main-header-menu > .current-menu-item > a {
  border-bottom: 2px solid var(--orange-500);
}

/* ================================================================
   14. FOOTER — Custom AgileNext (reemplaza footer default de Astra)
   ================================================================ */
/* Ocultar footer default de Astra */
.site-footer { display: none !important; }

/* Footer personalizado */
.agilenext-footer {
  background: var(--blue-900);
  border-top: 1px solid rgba(254, 254, 254, 0.08);
  color: rgba(254, 254, 254, 0.6);
  font-size: 14px;
  line-height: 1.7;
}

.agilenext-footer .footer-main {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 60px 24px 40px;
}

.agilenext-footer .footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.agilenext-footer .footer-logo {
  margin-bottom: 16px;
  max-width: 160px;
  height: auto;
}

.agilenext-footer .footer-brand p {
  margin: 0 0 20px;
  max-width: 280px;
}

.agilenext-footer .footer-social {
  display: flex;
  gap: 10px;
}

.agilenext-footer .footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(254, 254, 254, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  transition: all var(--duration-fast) var(--ease-default);
}

.agilenext-footer .footer-social a:hover {
  background: var(--orange-500);
  border-color: var(--orange-500);
}

.agilenext-footer h4 {
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.agilenext-footer ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.agilenext-footer li { margin-bottom: 8px; }

.agilenext-footer a {
  color: rgba(254, 254, 254, 0.6);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-default);
}

.agilenext-footer a:hover { color: var(--orange-500); }

.agilenext-footer .footer-bottom {
  border-top: 1px solid rgba(254, 254, 254, 0.06);
  text-align: center;
  padding: 20px 24px;
  font-size: 13px;
  color: rgba(254, 254, 254, 0.35);
}

@media (min-width: 768px) {
  .agilenext-footer .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 767px) {
  .agilenext-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .agilenext-footer .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ================================================================
   15. FLOATING BUTTONS — ElevenLabs + WhatsApp
   ================================================================ */
.floating-buttons {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 998;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

elevenlabs-convai {
  position: fixed;
  bottom: 76px;
  right: 16px;
  z-index: 998;
}

.btn-whatsapp-float {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 998;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
  cursor: pointer;
  font-size: 20px;
  text-decoration: none;
  transition: transform var(--duration-fast) var(--ease-default);
}

.btn-whatsapp-float:hover {
  transform: scale(1.1);
}

/* ================================================================
   16. FORMULARIOS — Overrides Fluent Forms
   ================================================================ */
.ff-el-input--content input,
.ff-el-input--content textarea,
.ff-el-input--content select {
  border: 1px solid #E5E7EB !important;
  border-radius: 8px !important;
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}

.ff-el-input--content input:focus,
.ff-el-input--content textarea:focus,
.ff-el-input--content select:focus {
  border-color: var(--blue-300) !important;
  box-shadow: 0 0 0 3px rgba(52, 168, 226, 0.1) !important;
  outline: none;
}

.ff-btn-submit {
  background: var(--cta-primary) !important;
  border-radius: var(--btn-radius) !important;
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
}

/* ================================================================
   17. RESPONSIVE — Breakpoints
   ================================================================ */

/* Tablet (768px+) */
@media (min-width: 768px) {
  .section-hero-dark {
    padding: 110px 32px 80px;
  }

  .section-hero-dark::before {
    background-size: 50px 50px;
  }

  .section-light,
  .section-light-alt,
  .section-dark,
  .section-dark-flat,
  .section-bio {
    padding: var(--section-padding-tablet);
  }

  .section-cta-final {
    padding: 80px 32px;
  }

  .section-stats-bar {
    padding: 60px 32px;
  }

  .grid-cards-3 {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .grid-cards-4 {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .grid-2col {
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .carousel-quote-mark {
    font-size: 96px;
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .section-hero-dark {
    min-height: 100vh;
    padding: 120px 24px 80px;
  }

  .section-hero-dark::before {
    background-size: 60px 60px;
  }

  .section-hero-dark .glow-orange,
  .section-hero-dark .glow-blue {
    width: 500px;
    height: 500px;
  }

  .section-light,
  .section-light-alt,
  .section-dark,
  .section-dark-flat,
  .section-bio {
    padding: var(--section-padding-desktop);
  }

  .section-cta-final {
    padding: 100px 24px;
  }

  .section-cta-final::before {
    width: 600px;
    height: 600px;
  }

  .section-stats-bar {
    padding: 48px 24px;
  }

  .grid-cards-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }

  .grid-cards-4 {
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
  }

  .grid-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }

  .grid-2col {
    grid-template-columns: 380px 1fr;
    gap: 64px;
  }

  .stat-number {
    font-size: 3rem;
  }

  .carousel-quote-mark {
    font-size: 120px;
    margin-bottom: -28px;
  }

  elevenlabs-convai {
    bottom: 86px;
    right: 20px;
  }

  .btn-whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    font-size: 24px;
  }

  /* Stagger vertical en grid de cards (solo desktop) */
  .grid-cards-3.stagger-cards > *:nth-child(1) { margin-top: -16px; }
  .grid-cards-3.stagger-cards > *:nth-child(3) { margin-top: 16px; }
}

/* Wide (1280px+) */
@media (min-width: 1280px) {
  .container-narrow {
    max-width: var(--container-max);
    padding: 0;
  }
}

/* Mobile-specific: CTAs full-width */
@media (max-width: 767px) {
  .wp-block-button {
    width: 100%;
  }

  .wp-block-button__link {
    width: 100%;
    text-align: center;
  }

  .testimonios-carousel {
    min-height: 260px;
  }

  .quote-block {
    font-size: var(--text-xl);
    padding-left: 16px;
  }
}
