/* ============================================================
   CLEA Academia de Idiomas · styles.css
   Design System: Mobile-first · Playfair Display + Montserrat
   ============================================================ */

/* ============================================================
   1. TOKENS & VARIABLES
   ============================================================ */
:root {
  /* ============================================================
     1. PALETA CORPORATIVA CLEA (AZULES + AMARILLOS)
     ============================================================ */
  /* Azules corporativos */
  --clr-blue-main: #356186;
  /* Azul principal – héroe / método / acentos fuertes */
  --clr-blue-dark: #1a2e44;
  --clr-blue-mid: #48789E;
  --clr-blue-light: #5586AE;
  --clr-blue-soft: #678CAC;

  /* Amarillos CTA */
  --clr-cta: #E8A617;
  --clr-cta-hover: #F2B632;
  --clr-cta-active: #D4950F;

  /* Neutros claros (fondos y cajas) */
  --clr-ivory: #F9FAFA;
  /* Fondo principal */
  --clr-neutral-soft: #F7F7F8;
  --clr-neutral-border: #E0E2E1;
  --clr-neutral-muted: #B6C6D4;

  /* Oscuros (texto) */
  --clr-white: #FFFFFF;
  --clr-dark: #211D23;
  /* Texto fuerte */
  --clr-mid: #2E2E2E;
  /* Gris oscuro alternativo */
  --clr-taupe: #4A4A4A;
  /* Texto secundario */

  /* Alias para compatibilidad con la maqueta anterior */
  --clr-rose: var(--clr-blue-mid);
  --clr-rose-dark: var(--clr-blue-dark);
  --clr-rose-bg: var(--clr-neutral-soft);
  --clr-sage: var(--clr-blue-main);
  --clr-sage-dark: var(--clr-blue-dark);
  --clr-sage-bg: var(--clr-neutral-border);
  --clr-champagne: var(--clr-cta);
  --clr-violet: var(--clr-blue-light);
  --clr-violet-light: var(--clr-neutral-muted);
  --clr-violet-dark: var(--clr-blue-dark);

  /* Typography scale · Poppins */
  --font-serif: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-sans: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --text-xs: 0.75rem;
  /* 12px */
  --text-sm: 0.875rem;
  /* 14px */
  --text-base: 1rem;
  /* 16px */
  --text-md: 1.125rem;
  /* 18px */
  --text-lg: 1.25rem;
  /* 20px */
  --text-xl: 1.5rem;
  /* 24px */
  --text-2xl: 1.875rem;
  /* 30px */
  --text-3xl: 2.25rem;
  /* 36px */
  --text-4xl: 3rem;
  /* 48px */
  --text-5xl: 3.75rem;
  /* 60px */

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-subtle: 0 2px 12px rgba(45, 41, 38, 0.06);
  --shadow-card: 0 4px 24px rgba(45, 41, 38, 0.08);
  --shadow-hover: 0 8px 32px rgba(45, 41, 38, 0.12);

  /* Transitions */
  --t-fast: 0.15s ease;
  --t-base: 0.25s ease;
  --t-slow: 0.4s ease;
}


/* ============================================================
   2. RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  /* scroll-behavior manejado por JS con inercia easeOutCubic */
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--clr-ivory);
  color: var(--clr-dark);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-base);
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* Focus styles – accesibilidad */
:focus-visible {
  outline: 2px solid var(--clr-violet);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}


/* ============================================================
   3. LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-6);
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--space-8);
  }
}

@media (min-width: 1200px) {
  .container {
    padding-inline: var(--space-4);
  }
}


/* ============================================================
   4. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.03em;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  transition: all var(--t-base);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn--lg {
  font-size: var(--text-base);
  padding: 0.875rem 1.875rem;
}

.btn--full {
  width: 100%;
  justify-content: center;
}

/* Primary – verde salvia */
.btn--primary {
  background-color: var(--clr-cta);
  color: var(--clr-white);
  border-color: var(--clr-cta);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background-color: var(--clr-cta-hover);
  border-color: var(--clr-cta-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(232, 166, 23, 0.35);
}

/* Outline rosa polvo — usa rose-dark para contraste legible sobre fondo claro */
.btn--outline-rose {
  background-color: transparent;
  color: var(--clr-white);
  border-color: var(--clr-white);
}

.btn--outline-rose:hover,
.btn--outline-rose:focus-visible {
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--clr-white);
  transform: translateY(-1px);
}

/* Secondary – borde topo */
.btn--secondary {
  background-color: transparent;
  color: var(--clr-taupe);
  border-color: var(--clr-taupe);
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
  background-color: var(--clr-taupe);
  color: var(--clr-white);
}

/* Light – para fondo oscuro */
.btn--light {
  background-color: var(--clr-white);
  color: var(--clr-sage-dark);
  border-color: var(--clr-white);
}

.btn--light:hover,
.btn--light:focus-visible {
  background-color: var(--clr-ivory);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

/* Outline sage */
.btn--outline-sage {
  background-color: transparent;
  color: var(--clr-sage-dark);
  border-color: var(--clr-sage);
}

.btn--outline-sage:hover,
.btn--outline-sage:focus-visible {
  background-color: var(--clr-sage);
  color: var(--clr-white);
}


/* ============================================================
   5. SECTION HELPERS
   ============================================================ */
.section-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-blue-light);
  margin-bottom: var(--space-4);
}

.section-title {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--clr-dark);
  line-height: 1.25;
  margin-bottom: var(--space-4);
}

.section-desc {
  font-size: var(--text-md);
  color: var(--clr-taupe);
  line-height: 1.7;
  max-width: 560px;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-header .section-desc {
  margin-inline: auto;
}

@media (min-width: 1024px) {
  .section-title {
    font-size: var(--text-3xl);
  }
}


/* ============================================================
   6. SCROLL-REVEAL ANIMATIONS
   Premium multi-directional entrance system with stagger
   ============================================================ */

/* --- Base states (invisible before reveal) --- */
.fade-in {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.scale-in {
  opacity: 0;
  transform: scale(0.88);
  transition:
    opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Visible states — MUST match the same function as the hidden state --- */
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* --- Stagger delays for grid children --- */
.stagger-1 {
  transition-delay: 0.05s !important;
}

.stagger-2 {
  transition-delay: 0.12s !important;
}

.stagger-3 {
  transition-delay: 0.20s !important;
}

.stagger-4 {
  transition-delay: 0.28s !important;
}

.stagger-5 {
  transition-delay: 0.36s !important;
}

.stagger-6 {
  transition-delay: 0.44s !important;
}

/* Section header load keyframe (generic) */
@keyframes headerSlide {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   HERO PAGE-LOAD ANIMATIONS
   Elements animate immediately on page open, sequentially
   ============================================================ */
@keyframes heroFadeDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes heroSlideRight {
  from {
    opacity: 0;
    transform: translateX(32px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes heroSpring {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Base: all hero anim elements start invisible */
.hero-anim-1,
.hero-anim-2,
.hero-anim-3,
.hero-anim-4,
.hero-anim-5,
.hero-anim-img {
  opacity: 0;
  animation-fill-mode: both;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Eyebrow — fades down from above */
.hero-anim-1 {
  animation-name: heroFadeDown;
  animation-duration: 0.65s;
  animation-delay: 0.1s;
}

/* Title — fades up */
.hero-anim-2 {
  animation-name: heroFadeUp;
  animation-duration: 0.75s;
  animation-delay: 0.3s;
}

/* Subtitle — soft fade */
.hero-anim-3 {
  animation-name: heroFadeIn;
  animation-duration: 0.75s;
  animation-delay: 0.55s;
}

/* CTA buttons — spring up */
.hero-anim-4 {
  animation-name: heroSpring;
  animation-duration: 0.65s;
  animation-delay: 0.75s;
  animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Trust line / Logos — soft fade */
.hero-anim-5 {
  animation-name: heroFadeIn;
  animation-duration: 0.6s;
  animation-delay: 1s;
}

/* Hero image — slides from right */
.hero-anim-img {
  animation-name: heroSlideRight;
  animation-duration: 0.9s;
  animation-delay: 0.2s;
}

/* --- Continuous micro-animations --- */
@keyframes floatY {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

@keyframes pulseGlow {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(155, 139, 180, 0);
  }

  50% {
    box-shadow: 0 0 16px 4px rgba(155, 139, 180, 0.18);
  }
}


/* ============================================================
   7. NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--t-base);
}

.navbar.scrolled,
.navbar--solid {
  background: linear-gradient(135deg, var(--clr-blue-dark), var(--clr-blue-main));
  box-shadow: var(--shadow-subtle);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  height: 80px;
}

.navbar__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.navbar__logo-img {
  height: 80px;
  width: auto;
}

.navbar__links {
  display: none;
  gap: var(--space-8);
  align-items: center;
}

.navbar__links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  padding-bottom: 2px;
}

.navbar__links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--clr-cta);
  transition: width var(--t-base);
}

.navbar__links a:hover::after {
  width: 100%;
}

.navbar__links a:hover {
  color: var(--clr-white);
}

.navbar__cta {
  display: none;
}

/* Hamburger */
.navbar__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  cursor: pointer;
  border: none;
  background: none;
}

.navbar__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--clr-white);
  border-radius: 2px;
  transition: all var(--t-base);
}

.navbar__toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar__toggle.open span:nth-child(2) {
  opacity: 0;
}

.navbar__toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.navbar__mobile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1), padding var(--t-base);
  background: linear-gradient(135deg, var(--clr-blue-dark), var(--clr-blue-main));
  border-top: 1px solid transparent;
  width: 100%;
  position: absolute;
  top: 100%;
  left: 0;
}

.navbar__mobile.open {
  max-height: 450px;
  border-color: rgba(255, 255, 255, 0.1);
  padding: var(--space-4) 0 var(--space-8);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.navbar__mobile .mobile-link {
  width: 100%;
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-lg);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: background-color var(--t-fast), padding-left var(--t-base), color var(--t-fast);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar__mobile .mobile-link:hover {
  color: var(--clr-white);
  background-color: rgba(255, 255, 255, 0.05);
  padding-left: calc(var(--space-6) + 8px);
}

.navbar__mobile .mobile-cta {
  margin: var(--space-6) var(--space-6) 0;
  align-self: stretch;
}

@media (min-width: 768px) {

  .navbar__links,
  .navbar__cta {
    display: flex;
  }

  .navbar__toggle,
  .navbar__mobile {
    display: none !important;
  }
}


/* ============================================================
   8. HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--clr-blue-dark), var(--clr-blue-light));
  padding-top: calc(68px + var(--space-12));
  padding-bottom: var(--space-16);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  align-items: center;
}

.hero__content {
  text-align: center;
  max-width: 600px;
}

.hero__eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-4);
}

.hero__title {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--clr-white);
  line-height: 1.0;
  margin-bottom: var(--space-4);
}

.hero__title-main {
  font-size: 0.9em;
  font-weight: 700;
}

.hero__title-highlight {
  position: relative;
  display: inline-block;
  z-index: 0;
}

.hero__title-highlight::before {
  content: '';
  position: absolute;
  left: -3px;
  right: -3px;
  bottom: -0.15em;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-cta) 0%, var(--clr-cta-hover) 60%, var(--clr-cta) 100%);
  border-radius: 999px;
  opacity: 1;
  z-index: -1;
}

.hero__title-sub {
  font-size: 0.8em;
  font-weight: 400;
  line-height: 1.0;
}

.hero__title em {
  font-style: italic;
  color: var(--clr-cta-hover);
}

.hero__title-sub em {
  font-style: normal;
  color: var(--clr-white);
  font-weight: 400;
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.75;
  margin-bottom: var(--space-8);
}

.hero__ctas {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: center;
  margin-bottom: var(--space-6);
}

.hero__trust {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.01em;
}

.hero__logos {
  margin-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  align-items: center;
  justify-content: center;
}

.hero__logos--desktop {
  display: none;
}

.hero__logo-item {
  height: 46px;
  width: auto;
  opacity: 0.9;
}

.hero__logo-item--big {
  height: 56px;
}

/* Hero image */
.hero__image-wrap {
  position: relative;
  width: 100%;
  max-width: 620px;
}

.hero__image-blob {
  position: relative;
  border-radius: 55% 45% 60% 40% / 55% 55% 45% 45%;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.hero__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.hero__badge {
  position: absolute;
  bottom: 32px;
  left: -16px;
  background: var(--clr-white);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 140px;
}

.hero__google-card {
  position: absolute;
  bottom: 30px;
  right: 100px;
  transform: translate(50%, 50%);
  background-color: var(--clr-cta);
  border-radius: 999px;
  padding: 0.2rem 1rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero__google-badge {
  height: 48px;
  width: auto;
}

.hero__clea-deco {
  position: absolute;
  bottom: -90px;
  right: -90px;
  width: 320px;
  max-width: none;
  opacity: 0.9;
}

@media (min-width: 768px) {
  .hero__clea-deco {
    bottom: -160px;
    right: -150px;
    width: 520px;
  }
}

.hero__badge-number {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--clr-sage-dark);
  line-height: 1;
}

.hero__badge-label {
  font-size: var(--text-xs);
  color: var(--clr-taupe);
  font-weight: 500;
}

/* (Scroll indicator eliminado a petición; se deja sin estilos activos) */

@media (min-width: 768px) {
  .hero__title {
    font-size: var(--text-4xl);
  }

  .hero__ctas {
    flex-direction: row;
    justify-content: center;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding-top: calc(80px + var(--space-8));
    padding-bottom: var(--space-12);
    min-height: auto;
  }

  .hero__inner {
    flex-direction: row;
    gap: var(--space-10);
    align-items: center;
  }

  .hero__content {
    text-align: left;
    flex: 1;
  }

  .hero__title {
    font-size: 3.25rem;
  }

  .hero__ctas {
    justify-content: flex-start;
  }

  .hero__logos--mobile {
    display: none;
  }

  .hero__logos--desktop {
    display: flex;
    justify-content: flex-start;
    margin-top: var(--space-12);
    gap: var(--space-6);
  }

  .hero__logo-item {
    height: 60px;
  }

  .hero__logo-item--big {
    height: 72px;
  }

  .hero__trust {
    text-align: left;
  }

  .hero__image-wrap {
    flex: 0 0 420px;
    max-width: 420px;
  }

  .hero__clea-deco {
    width: 320px;
    bottom: -80px;
    right: -80px;
  }

  .hero__google-card {
    bottom: 20px;
    right: 90px;
    transform: translate(50%, 50%);
    padding: 0.2rem 1.2rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  }

  .hero__google-badge {
    height: 52px;
  }
}

@media (min-width: 1440px) {
  .hero {
    padding-top: calc(80px + var(--space-16));
    padding-bottom: var(--space-20);
    min-height: 100svh;
  }

  .hero__inner {
    gap: var(--space-16);
  }

  .hero__title {
    font-size: var(--text-5xl);
  }

  .hero__logos--desktop {
    margin-top: calc(var(--space-20) + 2.5rem);
    gap: var(--space-8);
  }

  .hero__logo-item {
    height: 90px;
  }

  .hero__logo-item--big {
    height: 110px;
  }

  .hero__image-wrap {
    flex: 0 0 540px;
    max-width: 540px;
  }

  .hero__clea-deco {
    width: 600px;
    bottom: -180px;
    right: -170px;
  }

  .hero__google-card {
    bottom: 45px;
    right: 180px;
    transform: translate(50%, 50%);
    padding: 0.3rem 1.4rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  }

  .hero__google-badge {
    height: 70px;
  }
}


/* ============================================================
   9. PROBLEMA
   ============================================================ */
.problema {
  background-color: var(--clr-neutral-soft);
  padding: var(--space-20) 0;
  position: relative;
  overflow: hidden;
}

.problema::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(216, 183, 179, 0.4), transparent);
}

.problema__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.problema__item {
  background: var(--clr-white);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  transition:
    box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease;
}

/* Gradient sweep on hover */
.problema__item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  border-radius: inherit;
}

.problema__item:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
  transform: translateY(-4px);
  border-color: var(--clr-neutral-border);
}

.problema__item:hover::before {
  opacity: 1;
}

.problema__icon {
  margin-bottom: var(--space-4);
  width: 44px;
  height: 44px;
  background-color: rgba(53, 97, 134, 0.06);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
  transition:
    background-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

/* Hover suave del icono dentro de la card */
.problema__item:hover .problema__icon {
  background-color: rgba(53, 97, 134, 0.14);
  box-shadow: 0 8px 18px rgba(53, 97, 134, 0.15);
  transform: translateY(-2px);
}

.problema__item h3 {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--clr-blue-dark);
  margin-bottom: var(--space-2);
}

.problema__item p {
  font-size: var(--text-base);
  color: var(--clr-taupe);
  line-height: 1.7;
}



@media (min-width: 600px) {
  .problema__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .problema__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.problema__title {
  font-family: var(--font-sans);
  font-weight: 700;
  background: linear-gradient(90deg, var(--clr-blue-dark), var(--clr-blue-mid));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: var(--text-3xl);
}

.problema__title strong {
  font-weight: 800;
}

.problema__subtitle {
  color: var(--clr-blue-mid);
  max-width: none;
}


/* ============================================================
   10. MÉTODO
   ============================================================ */
.metodo {
  background: linear-gradient(135deg, var(--clr-blue-dark), var(--clr-blue-main));
  padding: var(--space-20) 0;
}

.metodo .section-header {
  text-align: center;
  color: var(--clr-white);
}

.metodo .section-tag {
  color: rgba(255, 255, 255, 0.85);
}

.metodo .section-title {
  color: var(--clr-white);
}

.metodo__title {
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--clr-white);
}

.metodo__subtitle {
  color: rgba(255, 255, 255, 0.85);
}

.metodo__layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
  align-items: stretch;
  margin-top: var(--space-12);
}

/* ── Carrusel ── */
.metodo__carousel {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  overflow: hidden; /* recorta el track al deslizarse */
}

/* El track contiene los slides en fila horizontal */
.metodo__track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  will-change: transform;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Cada slide ocupa el 100 % del carrusel y apila sus 2 cards en columna */
.metodo__slide {
  flex: 0 0 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: clamp(380px, 52vh, 500px); /* altura relativa a la pantalla */
}

/* Cada card ocupa la mitad del slide (menos el gap) */
.metodo__card {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  display: flex;
  flex-direction: row;   /* imagen a un lado, texto al otro */
  align-items: stretch;
  flex: 1;               /* reparten el alto del slide a partes iguales */
  min-height: 0;
  transition:
    box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease;
}

.metodo__card::after {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  bottom: 15%;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(to bottom, var(--clr-cta), var(--clr-blue-light));
  opacity: 0;
  transform: scaleY(0);
  transition:
    opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: center;
}

.metodo__card:hover {
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
  border-color: rgba(255, 255, 255, 0.25);
}

.metodo__card:hover::after {
  opacity: 1;
  transform: scaleY(1);
}

.metodo__card-body {
  flex: 1;
  padding: var(--space-6) var(--space-6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-2);
  min-width: 0;
}

.metodo__step {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--clr-blue-light);
  margin-bottom: 0;
  text-transform: uppercase;
}

.metodo__card-title {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--clr-blue-dark);
  margin-bottom: 0;
  line-height: 1.3;
}

.metodo__card-desc {
  font-size: var(--text-sm);
  color: var(--clr-taupe);
  line-height: 1.7;
}

/* Imagen ocupa un % del ancho de la card (relativo) */
.metodo__card-img-wrap {
  flex: 0 0 38%;
  overflow: hidden;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.metodo__card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.metodo__card:hover .metodo__card-img {
  transform: scale(1.05);
}

/* ── Controles del carrusel ── */
.metodo__carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
}

.metodo__nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
  color: var(--clr-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.metodo__nav-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.75);
  transform: scale(1.1);
}

.metodo__nav-btn:disabled {
  opacity: 0.35;
  cursor: default;
  transform: none;
}

.metodo__dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.metodo__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease, transform 0.25s ease, width 0.25s ease;
}

.metodo__dot.active {
  background: var(--clr-white);
  width: 22px;
  border-radius: 999px;
  transform: none;
}

@media (min-width: 1024px) {
  .metodo__layout {
    flex-direction: row;
    align-items: center;
    gap: var(--space-16);
    justify-content: space-between;
  }
}

.metodo__side {
  flex: 0 0 420px;
  max-width: 420px;
  margin-inline: auto;
}

@media (min-width: 1024px) {
  .metodo__side {
    padding-top: var(--space-4);
  }
}

.metodo__image-blob {
  background-color: var(--clr-neutral-soft);
  border-radius: 55% 45% 60% 40% / 55% 55% 45% 45%;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  position: relative;
  margin-bottom: var(--space-4);
}

.metodo__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 5%;
  transform: scale(1);
  transform-origin: center 5%;
}

.metodo__bio {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
}

.metodo__cta-wrap {
  margin-top: var(--space-6);
}

.metodo__cta-wrap .btn--primary {
  box-shadow: 0 4px 15px rgba(232, 166, 23, 0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.metodo__cta-wrap .btn--primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 25px rgba(232, 166, 23, 0.45);
  background-color: var(--clr-cta-hover);
  border-color: var(--clr-cta-hover);
}


/* ============================================================
   11. SERVICIOS
   ============================================================ */
.servicios {
  background-color: var(--clr-neutral-soft);
  padding: var(--space-20) 0;
}

.servicios .section-title {
  color: var(--clr-blue-dark);
}

.servicios .section-desc {
  color: var(--clr-blue-mid);
}

.servicios__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

.servicios__card {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(103, 140, 172, 0.28);
  transition:
    box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.4s ease;
}

/* Shimmer sweep on hover */
.servicios__card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg,
      transparent 30%,
      rgba(85, 134, 174, 0.12) 50%,
      transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
  border-radius: inherit;
}

.servicios__card:hover {
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.26), 0 4px 12px rgba(0, 0, 0, 0.12);
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(85, 134, 174, 0.6);
}

.servicios__card:hover::before {
  transform: translateX(100%);
}

.servicios__card:hover .servicios__card-icon {
  background-color: rgba(53, 97, 134, 0.14);
  transform: scale(1.1) rotate(-4deg);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.35s ease;
}

.servicios__card--featured {
  border-color: var(--clr-cta);
  background: linear-gradient(160deg, rgba(248, 187, 70, 0.12), rgba(249, 222, 142, 0.04));
}

.servicios__badge-featured {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--clr-cta);
  color: var(--clr-white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(200, 169, 106, 0.25);
  z-index: 10;
}

.servicios__card-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.servicios__card-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(85, 134, 174, 0.14);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-2);
}

.servicios__card-title {
  font-family: var(--font-sans);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--clr-blue-dark);
}

.servicios__card-sub {
  font-size: var(--text-sm);
  color: var(--clr-blue-mid);
  font-weight: 500;
}

.servicios__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}

.servicios__list li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  font-size: var(--text-sm);
  color: var(--clr-taupe);
  line-height: 1.5;
}

.servicios__list li span {
  color: var(--clr-blue-light);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.servicios__list-highlight {
  background-color: rgba(232, 166, 23, 0.12);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
}

.servicios__list-highlight span {
  color: var(--clr-cta) !important;
}

@media (min-width: 768px) {
  .servicios__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ============================================================
   12. TESTIMONIOS
   ============================================================ */
.testimonios {
  background-color: var(--clr-rose-bg);
  /* Patrón de puntos sutil como fondo */
  background-image:
    radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.06) 1px, transparent 0);
  background-size: 18px 18px;
  padding: var(--space-20) 0;
}

.testimonios .section-title {
  color: var(--clr-blue-dark);
}

.testimonios .section-desc {
  color: var(--clr-blue-mid);
}

.testimonios__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.testimonios__card {
  background: var(--clr-white);
  border-radius: var(--radius-md);
  padding: var(--space-8) var(--space-6);
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  transition:
    box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease;
}

.testimonios-slider {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.testimonios-slider__viewport {
  overflow: hidden;
  flex: 1;
}

.testimonios-slider__track {
  display: flex;
  gap: var(--space-4);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.testimonios__card {
  min-width: 100%;
}

@media (min-width: 768px) {
  .testimonios__card {
    min-width: calc((100% - var(--space-4)) / 2);
  }
}

@media (min-width: 1024px) {
  .testimonios__card {
    min-width: calc((100% - 2 * var(--space-4)) / 3);
  }
}

.testimonios-slider__arrow {
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--clr-blue-dark);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.testimonios-slider__arrow:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
  background: var(--clr-white);
}

.testimonios__google-logo {
  margin-top: var(--space-10);
  display: flex;
  justify-content: center;
}

.testimonios__google-pill {
  background-color: var(--clr-white);
  border-radius: 999px;
  padding: 0.7rem 1.8rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.testimonios__google-pill img {
  height: 72px;
  width: auto;
  display: block;
  /* Recolorear el logo a azul corporativo */
  filter: brightness(0) saturate(100%) invert(22%) sepia(23%) saturate(1086%) hue-rotate(173deg) brightness(90%) contrast(90%);
}

/* Rose gradient background on hover */
.testimonios__card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg,
      rgba(216, 183, 179, 0.08) 0%,
      rgba(246, 241, 235, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.testimonios__card:hover {
  box-shadow: 0 14px 44px rgba(216, 183, 179, 0.22), 0 2px 8px rgba(45, 41, 38, 0.06);
  transform: translateY(-6px);
  border-color: rgba(216, 183, 179, 0.3);
}

.testimonios__card:hover::before {
  opacity: 1;
}

/* Avatar ring on hover */
.testimonios__card:hover .testimonios__avatar {
  box-shadow: 0 0 0 3px var(--clr-rose), 0 0 0 5px rgba(216, 183, 179, 0.2);
  transition: box-shadow 0.35s ease;
}

.testimonios__stars {
  color: var(--clr-champagne);
  font-size: var(--text-lg);
  letter-spacing: 2px;
}

.testimonios__text {
  font-size: var(--text-sm);
  color: var(--clr-mid);
  line-height: 1.8;
  font-style: italic;
  flex: 1;
}

.testimonios__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.testimonios__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(216, 183, 179, 0.3);
}

.testimonios__name {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--clr-dark);
}

.testimonios__role {
  display: block;
  font-size: var(--text-xs);
  color: var(--clr-taupe);
  margin-top: 2px;
}

@media (min-width: 768px) {
  .testimonios__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* ============================================================
   13. QUIÉNES SOMOS
   ============================================================ */
.nosotras {
  background: linear-gradient(135deg, var(--clr-blue-dark), var(--clr-blue-main));
  padding: var(--space-20) 0;
  position: relative;
  overflow: hidden;
}

.nosotras::before {
  content: '';
  position: absolute;
  right: -18%;
  top: -10%;
  width: 60%;
  max-width: 720px;
  aspect-ratio: 4 / 3;
  background: radial-gradient(circle at 20% 10%,
      rgba(255, 255, 255, 0.16) 0,
      rgba(255, 255, 255, 0.04) 40%,
      transparent 70%);
  opacity: 0.9;
  pointer-events: none;
}

.nosotras__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  align-items: center;
  position: relative;
  z-index: 10;
}

.nosotras .section-tag {
  color: var(--clr-white);
}

.nosotras__image-wrap {
  position: relative;
  width: 100%;
  max-width: 480px;
  flex-shrink: 0;
}

.nosotras__img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  aspect-ratio: 4/5;
}

.nosotras__image-deco {
  position: absolute;
  inset: -12px 12px 12px -12px;
  border: 2px solid rgba(216, 183, 179, 0.4);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.nosotras__stat {
  position: absolute;
  bottom: -20px;
  right: -16px;
  background: var(--clr-white);
  color: var(--clr-blue-dark);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-5);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.nosotras__stat-num {
  display: block;
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1;
}

.nosotras__stat-label {
  display: block;
  font-size: var(--text-xs);
  opacity: 0.9;
  margin-top: 2px;
}

.nosotras__clea-deco {
  position: absolute;
  bottom: -90px;
  left: -90px;
  width: 320px;
  max-width: none;
  opacity: 0.08;
  z-index: 0;
  pointer-events: none;
}

@media (min-width: 768px) {
  .nosotras__clea-deco {
    bottom: -160px;
    left: -150px;
    width: 520px;
  }
}

.nosotras__content {
  flex: 1;
  position: relative;
  z-index: 2;
}

.nosotras__title {
  font-size: var(--text-2xl);
  color: var(--clr-white);
  margin-bottom: var(--space-6);
}

.nosotras__text {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  margin-bottom: var(--space-4);
}

.nosotras__valores {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.nosotras__valor {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.nosotras__logos {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  margin-top: var(--space-6);
  flex-wrap: wrap;
}

.nosotras__logo {
  height: 100px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

@media (min-width: 1024px) {
  .nosotras__inner {
    flex-direction: row-reverse;
    align-items: flex-start;
  }

  .nosotras__image-wrap {
    max-width: 440px;
    margin-top: var(--space-4);
  }

  .nosotras__title {
    font-size: var(--text-3xl);
  }
}


/* ============================================================
   14. OBJECIONES (ACORDEÓN)
   ============================================================ */
.objeciones {
  background-color: var(--clr-rose-bg);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.06) 1px, transparent 0);
  background-size: 18px 18px;
  padding: var(--space-20) 0;
}

.objeciones__inner .section-header {
  margin-bottom: var(--space-10);
}

.accordion {
  max-width: 720px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  counter-reset: faq-counter;
}

.accordion__item {
  background: var(--clr-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  border: 1px solid rgba(155, 139, 180, 0.15);
  border-left: 3px solid transparent;
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
  counter-increment: faq-counter;
}

.accordion__item:has([aria-expanded="true"]) {
  border-left-color: var(--clr-violet);
  box-shadow: var(--shadow-card);
  transform: translateX(2px);
}

.accordion__trigger {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  width: 100%;
  padding: var(--space-6) var(--space-6);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--clr-dark);
  text-align: left;
  cursor: pointer;
  transition: background-color var(--t-fast);
  background: none;
  border: none;
}

/* Number badge before the question text */
.accordion__trigger::before {
  content: counter(faq-counter, decimal-leading-zero);
  flex-shrink: 0;
  font-family: var(--font-serif);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--clr-violet);
  opacity: 0.6;
  min-width: 28px;
  transition: opacity var(--t-base);
}

.accordion__trigger:hover {
  background-color: rgba(237, 232, 244, 0.4);
}

.accordion__trigger[aria-expanded="true"] {
  color: var(--clr-violet-dark);
  background-color: rgba(237, 232, 244, 0.5);
}

.accordion__trigger[aria-expanded="true"]::before {
  opacity: 1;
}

/* Push the icon to the right */
.accordion__trigger>span:first-of-type {
  flex: 1;
}

.accordion__icon {
  flex-shrink: 0;
  color: var(--clr-taupe);
  transition: transform var(--t-base), color var(--t-base);
}

.accordion__trigger[aria-expanded="true"] .accordion__icon {
  transform: rotate(180deg);
  color: var(--clr-violet);
}

.accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s ease, padding var(--t-base);
}

.accordion__content.open {
  max-height: 300px;
}

.accordion__content p {
  padding: var(--space-2) var(--space-6) var(--space-6) calc(var(--space-6) + 44px);
  font-size: var(--text-sm);
  color: var(--clr-mid);
  line-height: 1.8;
  border-top: 1px solid rgba(155, 139, 180, 0.12);
  margin: 0 var(--space-4);
  padding-left: var(--space-4);
}


/* ============================================================
   15. CTA FINAL
   ============================================================ */
.cta-final {
  background: linear-gradient(135deg, var(--clr-sage), #8a9c84);
  padding: var(--space-20) 0;
  position: relative;
  overflow: hidden;
}

.cta-final::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-final::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-final__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  position: relative;
  z-index: 2;
}

.cta-final__tag {
  color: rgba(255, 255, 255, 0.85) !important;
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.cta-final__title {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--clr-white);
  line-height: 1.15;
  margin-bottom: var(--space-4);
  letter-spacing: -0.01em;
}

.cta-final__sub {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-8);
  line-height: 1.6;
}

.cta-final__trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.cta-final__trust-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--clr-white);
  font-weight: 500;
  background: rgba(255, 255, 255, 0.15);
  padding: 8px 16px;
  border-radius: 100px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-final__trust-item svg {
  opacity: 1;
}

/* Form */
.cta-final__form {
  background: var(--clr-white);
  border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-8);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.cta-final__form-title {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--clr-dark);
  margin-bottom: var(--space-2);
  text-align: center;
}

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

.form-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--clr-dark);
}

.form-input {
  width: 100%;
  padding: 0.85rem 1.2rem;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--clr-dark);
  background: var(--clr-ivory);
  transition: all var(--t-fast);
  appearance: none;
  -webkit-appearance: none;
}

.form-input::placeholder {
  color: rgba(164, 156, 150, 0.8);
}

.form-input:hover {
  background: #F4F1ED;
}

.form-input:focus {
  outline: none;
  background: var(--clr-white);
  border-color: var(--clr-sage);
  box-shadow: 0 0 0 4px rgba(168, 181, 162, 0.2);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%233D3540' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.cta-final__submit {
  margin-top: var(--space-3);
  padding-block: 1rem;
  font-size: 1.05rem;
}

.cta-final__legal {
  font-size: var(--text-xs);
  color: var(--clr-taupe);
  text-align: center;
  line-height: 1.6;
  margin-top: var(--space-1);
}

.cta-final__legal a {
  color: var(--clr-violet);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

@media (min-width: 1024px) {
  .cta-final {
    padding: calc(var(--space-20) + 2rem) 0;
  }

  .cta-final__inner {
    flex-direction: row;
    align-items: center;
    gap: var(--space-16);
  }

  .cta-final__content {
    flex: 1;
  }

  .cta-final__form {
    flex: 0 0 460px;
    padding: var(--space-10);
  }

  .cta-final__title {
    font-size: 3.5rem;
  }
}


/* ============================================================
   16. BLOG
   ============================================================ */
.blog {
  background-color: var(--clr-ivory);
  padding: var(--space-20) 0;
}

.blog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  justify-content: center;
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}

.blog__card {
  background: var(--clr-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  border: 1px solid rgba(155, 139, 180, 0.12);
  transition:
    box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.4s ease;
}

.blog__card:hover {
  box-shadow: 0 16px 52px rgba(155, 139, 180, 0.18), 0 2px 8px rgba(45, 41, 38, 0.06);
  transform: translateY(-8px);
  border-color: rgba(155, 139, 180, 0.28);
}

/* Image overlay on hover */
.blog__card-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.blog__card-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(122, 106, 150, 0.25) 0%,
      transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.blog__card:hover .blog__card-image-wrap::after {
  opacity: 1;
}

.blog__card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.blog__card:hover .blog__card-img {
  transform: scale(1.1);
}

.blog__card-cat {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  background: var(--clr-violet);
  color: var(--clr-white);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.blog__card-body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.blog__card-title {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.35;
}

.blog__card-title a {
  color: var(--clr-dark);
  transition: color var(--t-base);
}

.blog__card-title a:hover {
  color: var(--clr-violet-dark);
}

.blog__card-excerpt {
  font-size: var(--text-sm);
  color: var(--clr-taupe);
  line-height: 1.75;
  flex: 1;
}

.blog__card-link {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--clr-sage-dark);
  transition: color var(--t-base), letter-spacing var(--t-base);
}

.blog__card-link:hover {
  letter-spacing: 0.04em;
}

.blog__cta-wrap {
  text-align: center;
}

@media (min-width: 1024px) {
  .blog__grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 340px));
  }
}


/* ============================================================
   17. FOOTER
   ============================================================ */
.footer {
  background-color: var(--clr-dark);
  color: rgba(246, 241, 235, 0.7);
  padding-top: var(--space-16);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-12);
}

.footer__brand .navbar__logo {
  margin-bottom: var(--space-3);
}

.footer__brand .logo-text {
  color: rgba(246, 241, 235, 0.95);
}

.footer__brand .logo-sub {
  color: rgba(246, 241, 235, 0.4);
}

.footer__tagline {
  font-size: var(--text-sm);
  color: rgba(246, 241, 235, 0.55);
  line-height: 1.7;
  margin-bottom: var(--space-4);
  max-width: 260px;
}

.footer__social {
  display: flex;
  gap: var(--space-3);
}

.footer__social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(246, 241, 235, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(246, 241, 235, 0.6);
  transition: all var(--t-base);
}

.footer__social-link:hover {
  border-color: var(--clr-rose);
  color: var(--clr-rose);
  transform: translateY(-2px);
}

.footer__nav-title {
  font-family: var(--font-serif);
  font-size: var(--text-base);
  font-weight: 600;
  color: rgba(246, 241, 235, 0.9);
  margin-bottom: var(--space-4);
}

.footer__nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer__nav a {
  font-size: var(--text-sm);
  color: rgba(246, 241, 235, 0.55);
  transition: color var(--t-base);
}

.footer__nav a:hover {
  color: var(--clr-rose);
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer__contact p,
.footer__contact a {
  font-size: var(--text-sm);
  color: rgba(246, 241, 235, 0.55);
  line-height: 1.6;
}

.footer__contact a:hover {
  color: var(--clr-rose);
}

.footer__schedule-title {
  font-size: var(--text-sm);
  color: rgba(246, 241, 235, 0.55);
  margin-bottom: var(--space-2);
}

.footer__schedule-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer__schedule-list li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  font-size: 0.72rem;
  color: rgba(246, 241, 235, 0.55);
}

.footer__schedule-list li span:first-child {
  color: rgba(246, 241, 235, 0.75);
  font-weight: 500;
  min-width: 80px;
}

.footer__schedule-closed span {
  opacity: 0.4;
}

.footer__bottom {
  border-top: 1px solid rgba(246, 241, 235, 0.08);
  padding: var(--space-5) 0;
  text-align: center;
}

.footer__bottom p {
  font-size: var(--text-xs);
  color: rgba(246, 241, 235, 0.35);
}

.footer__bottom a {
  color: rgba(246, 241, 235, 0.45);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer__bottom a:hover {
  color: var(--clr-rose);
}

@media (min-width: 640px) {
  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .footer__inner {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }
}


/* ============================================================
   18. WHATSAPP FLOTANTE
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 999;
  width: 56px;
  height: 56px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all var(--t-base);
  overflow: visible;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.5);
}

.whatsapp-float__tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--clr-dark);
  color: var(--clr-white);
  font-size: var(--text-xs);
  font-weight: 600;
  white-space: nowrap;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base);
}

.whatsapp-float__tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -5px;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: var(--clr-dark);
}

.whatsapp-float:hover .whatsapp-float__tooltip {
  opacity: 1;
}

/* Pulso animado */
.whatsapp-float::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.3);
  animation: waPulse 2.5s ease-in-out infinite;
}

@keyframes waPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.5);
    opacity: 0;
  }
}


/* ============================================================
   19. PRINT & MISC
   ============================================================ */
@media (prefers-reduced-motion: reduce) {

  /* En lugar de desactivar casi todas las animaciones,
     solo reducimos su duración para que resulten menos
     intensas pero sigan siendo fluidas. */
  *,
  *::before,
  *::after {
    animation-duration: 0.3s !important;
    transition-duration: 0.2s !important;
  }
}