/* =========================================================
   JACOBO PENAS — styles.css
   ========================================================= */

/* --- Custom Properties --- */
:root {
  --color-primary:   #1A3A5C;
  --color-accent:    #2563EB;
  --color-secondary: #6B7280;
  --color-bg:        #FFFFFF;
  --color-bg-alt:    #F8FAFC;
  --color-text:      #1E293B;
  --color-border:    #E2E8F0;
  --color-success:   #16A34A;

  /* Paleta extendida */
  --color-dark:          #0C1B2E;
  --color-dark-mid:      #0F2744;
  --color-accent-bright: #3B82F6;
  --color-accent-glow:   rgba(37,99,235,0.32);

  /* Gradientes */
  --gradient-hero:   linear-gradient(135deg, #0C1B2E 0%, #1A3A5C 55%, #0F2744 100%);
  --gradient-accent: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  --gradient-dark:   linear-gradient(160deg, #0C1B2E 0%, #1A3A5C 100%);

  --font-heading: 'Montserrat', sans-serif;
  --font-body:    'Open Sans', sans-serif;

  --section-padding: 5rem 1.5rem;
  --container-max:   1140px;
  --radius:          8px;
  --radius-lg:       16px;

  --shadow-sm:   0 1px 3px rgba(0,0,0,.08);
  --shadow-md:   0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:   0 8px 32px rgba(0,0,0,.12);
  --shadow-glow: 0 4px 20px rgba(37,99,235,.38);
  --shadow-card: 0 2px 6px rgba(15,27,45,.05), 0 12px 32px rgba(15,27,45,.08);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: clip;
  max-width: 100vw;
  min-width: 0;
}

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

a { color: var(--color-accent); text-decoration: none; }

ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--color-primary);
}

/* --- Container --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .875rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .15s ease, box-shadow .2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(37,99,235,.30);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #1D4ED8 0%, #1e40af 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(37,99,235,.48);
}

.btn-secondary {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: transparent;
}
.btn-secondary:hover {
  background: var(--color-accent);
  color: #fff;
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  font-size: 1rem;
  padding: 1rem 2.5rem;
}
.btn-whatsapp:hover {
  background: #1DA851;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-white {
  background: #fff;
  color: var(--color-primary);
}
.btn-white:hover {
  background: var(--color-bg-alt);
  color: var(--color-primary);
  transform: translateY(-1px);
}

.btn-outline-white {
  border-color: #fff;
  color: #fff;
  background: transparent;
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.15);
  color: #fff;
}

/* --- Nav --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: background .3s ease, box-shadow .3s ease;
  padding: 1.25rem 0;
}
.nav.sticky {
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding: .75rem 0;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/* Logo dual: blanco sobre fondo oscuro (hero), color sobre fondo claro (sticky) */
.nav__logo--blanco { height: 40px; width: auto; display: block; }
.nav__logo--color  { height: 40px; width: auto; display: none; }
.nav.sticky .nav__logo--blanco { display: none; }
.nav.sticky .nav__logo--color  { display: block; }

.nav__links {
  display: none;
  gap: 1.75rem;
  align-items: center;
}
.nav__links a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .9rem;
  color: rgba(255,255,255,0.9);
  transition: color .2s;
}
.nav__links a:hover { color: #fff; }
.nav.sticky .nav__links a { color: var(--color-primary); }
.nav.sticky .nav__links a:hover { color: var(--color-accent); }
/* CTA en nav: outline blanco por defecto, sólido en sticky */
.nav__links .nav__cta-btn {
  padding: .55rem 1.2rem;
  font-size: .85rem;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.7);
  color: #fff !important;
}
.nav__links .nav__cta-btn:hover { background: rgba(255,255,255,0.15); border-color: #fff; }
.nav.sticky .nav__links .nav__cta-btn { background: var(--color-accent); border-color: var(--color-accent); color: #fff !important; }
.nav.sticky .nav__links .nav__cta-btn:hover { background: #1d4ed8; }
.nav__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: rgba(255,255,255,0.9);
  transition: transform .3s ease, opacity .3s ease;
}
.nav.sticky .nav__hamburger span { background: var(--color-primary); }
.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav__mobile {
  display: none;
  flex-direction: column;
  background: #fff;
  padding: 1.5rem;
  gap: 1.25rem;
  border-top: 1px solid var(--color-border);
  width: 100%;
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-primary);
  font-size: 1.05rem;
  padding: .5rem 0;
  border-bottom: 1px solid var(--color-border);
}
.nav__mobile a:last-child { border-bottom: none; }

@media (min-width: 1024px) {
  .nav__links { display: flex; }
  .nav__hamburger { display: none; }
  .nav__mobile { display: none !important; }
}

/* --- Hero --- */
.hero {
  padding: 8rem 1.5rem 5rem;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}
/* Luz radial atmosférica */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 90% at 75% 40%, rgba(37,99,235,0.18) 0%, transparent 65%),
    radial-gradient(ellipse 50% 60% at 15% 85%, rgba(37,99,235,0.10) 0%, transparent 55%);
  pointer-events: none;
}
/* Grid sutil de fondo */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
}
.hero__text { max-width: 620px; }
.hero__text h1 {
  font-size: 2.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.25rem;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.hero__text p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  margin-bottom: 2rem;
  line-height: 1.75;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}
.hero__microcopy {
  font-size: .82rem;
  color: rgba(255,255,255,0.52);
  letter-spacing: .01em;
}
.hero__image {
  width: 100%;
  max-width: 420px;
  position: relative;
}
/* Glow bajo la imagen */
.hero__image::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 10%;
  right: 10%;
  height: 60px;
  background: radial-gradient(ellipse at center, rgba(37,99,235,.35) 0%, transparent 70%);
  filter: blur(12px);
  pointer-events: none;
}
.hero__image .img-placeholder {
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
}

@media (min-width: 1024px) {
  .hero { padding: 10rem 1.5rem 6rem; }
  .hero__inner {
    flex-direction: row;
    gap: 5rem;
    align-items: center;
  }
  .hero__text { flex: 1; }
  .hero__text h1 { font-size: 4rem; letter-spacing: -0.03em; }
  .hero__image { flex: 1; max-width: none; }
}

/* --- Stats bar --- */
.stats {
  background: var(--color-dark);
  padding: 3.5rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 200% at 50% 110%, rgba(37,99,235,.14) 0%, transparent 65%);
  pointer-events: none;
}
.stats__grid {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  text-align: center;
}
.stats__item {
  padding: 0;
  background: transparent;
  border-radius: 0;
}
.stats__item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: .6rem;
}
.stats__item span {
  font-size: .72rem;
  color: rgba(255,255,255,0.48);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .12em;
}

@media (min-width: 768px) {
  .stats__grid {
    flex-direction: row;
    justify-content: center;
    gap: 0;
  }
  .stats__item {
    flex: 1;
    padding: 1rem 2.5rem;
    border-right: 1px solid rgba(255,255,255,.08);
  }
  .stats__item:last-child { border-right: none; }
  .stats__item strong { font-size: 3.6rem; }
}

/* --- Secciones genéricas --- */
section { padding: var(--section-padding); }

.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  text-align: center;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

@media (min-width: 768px) {
  .section-title { font-size: 2.6rem; }
}

/* --- Sección Dolor --- */
.dolor { background: var(--color-bg); }
.dolor__grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}
.dolor__card {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-left: 3px solid #CBD5E1;
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem 1.3rem 2rem;
  font-size: .97rem;
  color: #374151;
  font-weight: 500;
  position: relative;
  box-shadow: var(--shadow-card);
  font-style: italic;
  transition: border-left-color .25s ease, transform .25s cubic-bezier(0.22,1,0.36,1), box-shadow .25s ease;
}
.dolor__card:hover {
  border-left-color: var(--color-accent);
  transform: translateX(4px);
  box-shadow: 0 4px 24px rgba(0,0,0,.09);
}
.dolor__card::before {
  content: '"';
  position: absolute;
  top: -8px;
  left: 12px;
  font-size: 3rem;
  font-family: Georgia, serif;
  color: #94A3B8;
  opacity: .5;
  line-height: 1;
}
.dolor__cierre {
  text-align: center;
  font-style: italic;
  color: var(--color-secondary);
  font-size: 1.05rem;
  font-weight: 600;
}

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

/* --- Sección Solución --- */
.solucion { background: var(--color-bg-alt); }
.solucion__text {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text);
}

/* --- Sección Para quién --- */
.para-quien { background: var(--color-bg); }
.para-quien__grid {
  display: grid;
  gap: 2rem;
}
.para-quien__col {
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.para-quien__col--si {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
}
.para-quien__col--no {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
}
.para-quien__col h3 {
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
  color: var(--color-primary);
}
.para-quien__col ul li {
  padding: .5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--color-text);
  font-size: .95rem;
}
.para-quien__col--si ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #2563EB;
  font-weight: 700;
}
.para-quien__col--no ul li::before {
  content: '✗';
  position: absolute;
  left: 0;
  color: #64748B;
  font-weight: 700;
}
.para-quien__cierre {
  text-align: center;
  font-style: italic;
  color: var(--color-secondary);
  margin-top: 2rem;
  font-size: 1.05rem;
}

@media (min-width: 768px) {
  .para-quien__grid { grid-template-columns: 1fr 1fr; }
}

/* --- Sección Servicios --- */
.services { background: var(--color-bg-alt); overflow: clip; }

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--color-accent);
  margin-bottom: .5rem;
}
.subtitle {
  max-width: 700px;
  margin: 0 auto;
  color: var(--color-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* === PRICING CARDS === */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-top: 1rem;
}
@media (min-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: start; }
  .pricing-card--featured { transform: translateY(-8px) scale(1.03); }
  .pricing-card--featured:hover { transform: translateY(-12px) scale(1.04); }
}

.pricing-card {
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: transform 0.28s cubic-bezier(0.22,1,0.36,1), box-shadow 0.28s ease;
  position: relative;
  box-shadow: var(--shadow-card);
  min-width: 0;
  width: 100%;
}
.pricing-card:hover { transform: translateY(-5px); box-shadow: 0 12px 40px rgba(15,27,45,.12); }

.pricing-card--featured {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(to bottom, #f0f7ff, #fff);
}
.pricing-card--featured:hover { transform: translateY(-8px); }

.pricing-card__badge { position: absolute; top: -0.9rem; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.badge { display: inline-block; padding: 0.25rem 0.75rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; font-family: var(--font-heading); }
.badge--gold { background: #FEF3C7; color: #92400E; }
.badge--navy { background: var(--color-primary); color: #fff; }

.pricing-card__header { display: flex; flex-direction: column; gap: 0.25rem; }
.pricing-card__icon { font-size: 2rem; }
.pricing-card__name { font-family: var(--font-heading); font-weight: 700; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-accent); }
.pricing-card__title { font-family: var(--font-heading); font-size: 1.5rem; color: var(--color-primary); margin: 0; }
.pricing-card__subtitle { color: var(--color-secondary); font-size: 0.9rem; }
.pricing-card__price { display: flex; align-items: baseline; gap: 0.25rem; margin-top: 0.5rem; }
.pricing-card__original-price { font-size: 1rem; color: var(--color-secondary); text-decoration: line-through; }
.pricing-card__amount { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 800; color: var(--color-primary); }
.pricing-card__period { color: var(--color-secondary); font-size: 0.9rem; }
.pricing-card__alt-price { font-size: 0.85rem; color: var(--color-secondary); }
.pricing-card__urgency { font-size: 0.82rem; font-weight: 600; color: #1E40AF; background: #EFF6FF; padding: 0.3rem 0.75rem; border-radius: 999px; display: inline-block; margin-top: 0.25rem; }

.pricing-card__desc { color: var(--color-secondary); font-size: 0.9rem; line-height: 1.6; }

.pricing-card__features { display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.pricing-feature { display: flex; align-items: center; gap: 0.625rem; font-size: 0.9rem; color: var(--color-text); }
.pricing-feature__check { width: 18px; height: 18px; background: var(--color-accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pricing-feature__check svg { width: 10px; height: 8px; }

.pricing-card__ideal { background: var(--color-bg-alt); border-radius: var(--radius); padding: 0.875rem; font-size: 0.875rem; }
.pricing-card__ideal-label { font-weight: 700; color: var(--color-primary); margin-bottom: 0.25rem; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }

.pricing-card__cta { display: block; text-align: center; padding: 0.875rem 1.5rem; background: var(--color-accent); color: #fff; border-radius: var(--radius); font-weight: 700; font-family: var(--font-heading); font-size: 0.95rem; transition: background 0.2s, transform 0.15s; margin-top: auto; white-space: normal; }
.pricing-card__cta:hover { background: #1D4ED8; transform: translateY(-1px); color: #fff; }
.pricing-card--featured .pricing-card__cta { background: var(--color-accent); box-shadow: 0 4px 14px rgba(37,99,235,.35); }

.pricing-note { text-align: center; color: var(--color-secondary); font-size: 0.85rem; margin-bottom: 2.5rem; }

/* === COMPARISON TABLE === */
.tabla-section .comparison-table-wrap { display: none; }
.tabla-section:not(.collapsed) .comparison-table-wrap { display: block; }
.tabla-toggle { display: flex; align-items: center; gap: 0.5rem; margin: 0 auto 1rem; background: none; border: 1px solid var(--color-border); border-radius: 999px; padding: 0.5rem 1.25rem; font-size: 0.875rem; font-weight: 600; color: var(--color-primary); cursor: pointer; transition: background 0.2s; }
.tabla-toggle:hover { background: var(--color-bg-alt); }
.comparison-table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--color-border); }
.comparison-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.comparison-table thead th { background: var(--color-bg-alt); padding: 1rem; text-align: center; font-family: var(--font-heading); font-weight: 700; color: var(--color-primary); border-bottom: 2px solid var(--color-border); }
.comparison-table thead th:first-child { text-align: left; }
.comparison-table tbody td { padding: 0.875rem 1rem; border-bottom: 1px solid var(--color-border); text-align: center; color: var(--color-text); }
.comparison-table tbody td:first-child { text-align: left; font-weight: 500; }
.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table .col-featured { background: #f0f7ff; font-weight: 600; }
.check-yes { color: var(--color-accent); font-weight: 700; font-size: 1.1rem; }
.check-no { color: #D1D5DB; font-size: 1.1rem; }

/* --- Sección Mi Método (pilares) --- */
.metodo-pilares { background: var(--color-bg-alt); }
.metodo-pilares__intro {
  text-align: center;
  max-width: 620px;
  margin: -.75rem auto 2.5rem;
  color: var(--color-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}
.metodo-pilares__grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.metodo-pilar {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-top: 3px solid transparent;
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-card);
  transition: transform .28s cubic-bezier(0.22,1,0.36,1), box-shadow .28s ease, border-top-color .28s ease;
}
.metodo-pilar:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(15,27,45,.12);
  border-top-color: var(--color-accent);
}
.metodo-pilar__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  box-shadow: 0 2px 10px rgba(37,99,235,.18);
}
.metodo-pilar__icon svg { width: 24px; height: 24px; }
.metodo-pilar h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-primary);
}
.metodo-pilar p {
  color: var(--color-secondary);
  font-size: .93rem;
  line-height: 1.65;
}
.metodo-pilares__cta { text-align: center; }

@media (min-width: 768px) {
  .metodo-pilares__grid { grid-template-columns: 1fr 1fr; }
}

/* --- Sección Proceso (cómo empezar) --- */
.proceso { background: var(--color-bg); }
.proceso__steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 3rem;
  position: relative;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
/* Línea vertical conectora */
.proceso__steps::before {
  content: '';
  position: absolute;
  left: 26px;
  top: 26px;
  bottom: 26px;
  width: 1px;
  background: linear-gradient(to bottom, var(--color-accent), rgba(37,99,235,.15));
  z-index: 0;
}
.proceso__step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem 0;
  position: relative;
  z-index: 1;
}
.proceso__num {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
}
.proceso__content h3 {
  font-size: 1.1rem;
  margin-bottom: .4rem;
  letter-spacing: -0.01em;
}
.proceso__content p {
  color: var(--color-secondary);
  font-size: .95rem;
}
.proceso__cta { text-align: center; }

/* --- Testimonio destacado --- */
.testimonio-destacado {
  background: var(--color-bg-alt);
  text-align: center;
}
.testimonio-destacado blockquote {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  padding: 2.5rem;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.testimonio-destacado blockquote::before {
  content: '\201C';
  font-size: 6rem;
  line-height: 0;
  position: absolute;
  top: 2.5rem;
  left: 1.5rem;
  color: var(--color-accent);
  opacity: .2;
  font-family: Georgia, serif;
}
.testimonio-destacado blockquote p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--color-text);
  font-style: italic;
  margin-bottom: 1.25rem;
}
.testimonio-autor {
  font-family: var(--font-heading);
  font-size: .9rem;
  font-weight: 700;
  color: var(--color-primary);
}
.testimonio-autor span {
  display: block;
  font-weight: 400;
  color: var(--color-secondary);
  font-family: var(--font-body);
  margin-top: .25rem;
}

/* --- Resultados reales --- */
.resultados { background: var(--color-bg); }
.resultados__intro {
  text-align: center;
  color: var(--color-secondary);
  max-width: 560px;
  margin: -.5rem auto 2.5rem;
  font-size: 1rem;
}
.resultados__grid {
  display: grid;
  gap: 1.25rem;
}
.resultado-item {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.resultado-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform .4s ease;
}
.resultado-item:hover img { transform: scale(1.03); }

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

/* --- Colaboraciones --- */
.colaboraciones { background: var(--color-bg-alt); }
.colaboraciones__intro {
  text-align: center;
  color: var(--color-secondary);
  max-width: 520px;
  margin: -.5rem auto 2.5rem;
  font-size: 1rem;
}
.colaboraciones__grid {
  display: grid;
  gap: 1.25rem;
}
.colaboracion-item {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  cursor: pointer;
  position: relative;
  transition: transform .3s ease, box-shadow .3s ease;
}
.colaboracion-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.colaboracion-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.colaboracion-item:hover img {
  transform: scale(1.05);
}
.colaboracion-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 52px;
  background: rgba(0, 0, 0, 0);
  transition: background .3s ease;
  pointer-events: none;
}
.colaboracion-item:hover::after {
  background: rgba(0, 0, 0, 0.15);
}
.colaboracion-item figcaption {
  padding: .75rem 1rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .9rem;
  color: var(--color-primary);
  text-align: center;
}

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

/* --- Sobre Jacobo --- */
.sobre-jacobo { background: var(--color-bg); }
.sobre-jacobo__inner {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: center;
}
.sobre-jacobo__img { width: 100%; max-width: 400px; }
.sobre-jacobo__img .img-placeholder { aspect-ratio: 3/4; border-radius: var(--radius-lg); }
.sobre-jacobo__text h2 {
  text-align: left;
  margin-bottom: 1.25rem;
}
.sobre-jacobo__text p {
  color: var(--color-secondary);
  line-height: 1.8;
  margin-bottom: 1.75rem;
}

@media (min-width: 1024px) {
  .sobre-jacobo__inner { flex-direction: row; gap: 4rem; }
  .sobre-jacobo__img { flex: 1; max-width: none; }
  .sobre-jacobo__text { flex: 1.5; }
}

/* --- CTA Final --- */
.cta-final {
  background: var(--gradient-dark);
  text-align: center;
  padding: 6rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 50% 110%, rgba(37,99,235,.22) 0%, transparent 65%),
    radial-gradient(ellipse 40% 50% at 10% 0%, rgba(37,99,235,.08) 0%, transparent 55%);
  pointer-events: none;
}
.cta-final > .container {
  position: relative;
  z-index: 1;
}
.cta-final h2 {
  color: #fff;
  font-size: 2.2rem;
  margin-bottom: 2rem;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.cta-final__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.cta-final__microcopy {
  color: rgba(255,255,255,.52);
  font-size: .85rem;
  letter-spacing: .01em;
}

@media (min-width: 768px) {
  .cta-final h2 { font-size: 2.8rem; }
}

/* --- Contacto --- */
.contacto { background: var(--color-bg); }
.contacto__subtitle {
  text-align: center;
  color: var(--color-secondary);
  max-width: 560px;
  margin: -.5rem auto 2.5rem;
  font-size: 1.05rem;
}
.contacto__whatsapp {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}
.contacto__whatsapp p {
  font-size: .9rem;
  color: var(--color-secondary);
  margin-top: .75rem;
}

/* Formulario */
.form-contacto {
  max-width: 640px;
  margin: 0 auto 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-row {
  display: grid;
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.form-group label {
  font-family: var(--font-heading);
  font-size: .85rem;
  font-weight: 700;
  color: var(--color-primary);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: .75rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color .2s;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}
.form-group textarea { resize: vertical; min-height: 120px; }

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

.contacto__email {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--color-secondary);
  font-size: .95rem;
}
.contacto__email a { color: var(--color-accent); font-weight: 600; }

.contacto__info {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin: 0 auto 3rem;
  max-width: 480px;
}
.contacto__info-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .95rem;
  color: var(--color-text);
}
.contacto__pagos {
  text-align: center;
  margin-bottom: 3rem;
  font-size: .9rem;
  color: var(--color-secondary);
}

/* FAQ */
.faq { max-width: 720px; margin: 0 auto; }
.faq h3 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
.faq__item {
  border-bottom: 1px solid var(--color-border);
}
.faq__question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.1rem 0;
  text-align: left;
  font-family: var(--font-heading);
  font-size: .95rem;
  font-weight: 700;
  color: var(--color-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  transition: transform .25s ease, background .2s;
}
.faq__item.open .faq__icon {
  transform: rotate(45deg);
  background: var(--color-accent);
  color: #fff;
}
.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .3s ease;
  padding: 0 0;
}
.faq__answer p {
  color: var(--color-secondary);
  font-size: .93rem;
  line-height: 1.7;
  padding-bottom: 1rem;
}
.faq__item.open .faq__answer { max-height: 300px; }

/* --- Footer --- */
.footer {
  background: var(--color-primary);
  color: rgba(255,255,255,.8);
  padding: 3rem 1.5rem 1.5rem;
}
.footer__cta {
  text-align: center;
  padding: 3rem 2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(37,99,235,0.1) 0%, rgba(37,99,235,0.05) 100%);
  border: 2px solid rgba(37,99,235,0.3);
  margin-bottom: 3.5rem;
}
.footer__cta h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: .75rem;
}
.footer__cta p {
  font-size: 1rem;
  color: rgba(255,255,255,.85);
  margin-bottom: 1.75rem;
}
.footer__cta .btn {
  font-size: 1rem;
  padding: 1rem 2.5rem;
}
.footer__top {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}
.footer__logo img { height: 44px; width: auto; }
.footer__address {
  font-style: normal;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  margin-top: 0.75rem;
}
.footer__address a { color: rgba(255,255,255,0.7); text-decoration: none; }
.footer__address a:hover { color: #fff; }
.footer__logo-placeholder {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  color: #fff;
}
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
}
.footer__nav a {
  color: rgba(255,255,255,.75);
  font-size: .9rem;
  transition: color .2s;
}
.footer__nav a:hover { color: #fff; }
.footer__social {
  display: flex;
  gap: 1rem;
}
.footer__social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background .2s;
}
.footer__social a:hover { background: var(--color-accent); }
.footer__social svg { width: 18px; height: 18px; fill: currentColor; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
}
.footer__legal a {
  color: rgba(255,255,255,.6);
  font-size: .82rem;
  transition: color .2s;
}
.footer__legal a:hover { color: #fff; }
.footer__copy {
  font-size: .82rem;
  color: rgba(255,255,255,.5);
}

@media (min-width: 768px) {
  .footer__top { flex-direction: row; justify-content: space-between; align-items: center; }
  .footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* --- Animaciones de entrada --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .65s cubic-bezier(0.22, 1, 0.36, 1), transform .65s cubic-bezier(0.22, 1, 0.36, 1);
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger para elementos en grid */
.dolor__grid .animate-on-scroll:nth-child(2) { transition-delay: .08s; }
.dolor__grid .animate-on-scroll:nth-child(3) { transition-delay: .16s; }
.dolor__grid .animate-on-scroll:nth-child(4) { transition-delay: .24s; }

.pricing-grid .animate-on-scroll:nth-child(2) { transition-delay: .1s; }
.pricing-grid .animate-on-scroll:nth-child(3) { transition-delay: .2s; }

.metodo-pilares__grid .animate-on-scroll:nth-child(2) { transition-delay: .09s; }
.metodo-pilares__grid .animate-on-scroll:nth-child(3) { transition-delay: .18s; }
.metodo-pilares__grid .animate-on-scroll:nth-child(4) { transition-delay: .27s; }

.proceso__steps .animate-on-scroll:nth-child(2) { transition-delay: .1s; }
.proceso__steps .animate-on-scroll:nth-child(3) { transition-delay: .2s; }
.proceso__steps .animate-on-scroll:nth-child(4) { transition-delay: .3s; }

.resultados__grid .animate-on-scroll:nth-child(2) { transition-delay: .1s; }
.resultados__grid .animate-on-scroll:nth-child(3) { transition-delay: .2s; }

/* --- Placeholder imágenes --- */
.img-placeholder {
  background: var(--color-bg-alt);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secondary);
  font-size: .85rem;
  text-align: center;
  padding: 1rem;
  width: 100%;
}

/* =========================================================
   FORMULARIO MULTI-BLOQUE (formulario.html)
   ========================================================= */
.form-page { padding-top: 70px; }

/* Barra de progreso */
.progress-bar-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  padding: .75rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.progress-bar-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.progress-bar-text {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-size: .8rem;
  font-weight: 700;
  color: var(--color-primary);
}
.progress-bar-track {
  height: 6px;
  background: var(--color-border);
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: var(--color-accent);
  border-radius: 999px;
  transition: width .4s ease;
}

/* Bloques del formulario */
.form-blocks-wrapper {
  padding: 2rem 1.5rem 4rem;
  max-width: 760px;
  margin: 0 auto;
}
.form-block { display: none; }
.form-block.active { display: block; }
.form-block__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 1.75rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--color-accent);
}

.form-multi-group {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.25rem; }
}

/* Radio y checkbox personalizados */
.radio-group, .checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.radio-option, .checkbox-option {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .9rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: .9rem;
  transition: border-color .2s, background .2s;
}
.radio-option:has(input:checked),
.checkbox-option:has(input:checked) {
  border-color: var(--color-accent);
  background: #EFF6FF;
  color: var(--color-accent);
  font-weight: 600;
}
.radio-option input, .checkbox-option input { display: none; }

/* Campo condicional */
.conditional-field { display: none; margin-top: .75rem; }
.conditional-field.visible { display: block; }

/* Navegación del formulario */
.form-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  gap: 1rem;
}
.btn-prev {
  border: 1.5px solid var(--color-border);
  color: var(--color-secondary);
  background: transparent;
  border-radius: var(--radius);
  padding: .75rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.btn-prev:hover { background: var(--color-bg-alt); color: var(--color-primary); }
.btn-prev:disabled { opacity: .35; cursor: not-allowed; }
.btn-next {
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: .875rem 2rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.btn-next:hover { background: #1D4ED8; transform: translateY(-1px); }

.consent-group {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin: 1.5rem 0;
}
.consent-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .9rem;
  color: var(--color-text);
}
.consent-item input[type="checkbox"] { margin-top: .15rem; flex-shrink: 0; }
.consent-item a { color: var(--color-accent); }

/* --- Página gracias --- */
.gracias-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  background: var(--color-bg-alt);
}
.gracias-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  max-width: 520px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.gracias-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}
.gracias-card h1 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
.gracias-card p {
  color: var(--color-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
}
.gracias-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.gracias-social a {
  padding: .6rem 1.2rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  font-size: .88rem;
  font-weight: 600;
  color: var(--color-primary);
  transition: background .2s, border-color .2s;
}
.gracias-social a:hover {
  background: var(--color-bg-alt);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* --- Páginas legales --- */
.legal-page {
  padding-top: 5rem;
  padding-bottom: 4rem;
}
.legal-nav .nav__logo img {
  height: 32px;
  width: auto;
  display: block;
}
.legal-page h1 {
  font-size: 2rem;
  margin-bottom: .5rem;
}
.legal-page .legal-date {
  color: var(--color-secondary);
  font-size: .9rem;
  margin-bottom: 2.5rem;
}
.legal-page h2 {
  font-size: 1.2rem;
  margin: 2rem 0 .75rem;
  color: var(--color-primary);
}
.legal-page p,
.legal-page li {
  color: var(--color-secondary);
  line-height: 1.7;
  margin-bottom: .75rem;
}
.legal-page ul { padding-left: 1.5rem; list-style: disc; }

/* --- Titulaciones (Sobre Jacobo) --- */
.titulaciones {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0 2rem;
  padding: 1.5rem;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.titulacion-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}

.titulacion-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: .15rem;
}

.titulacion-content {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  flex: 1;
}

.titulacion-content strong {
  font-family: var(--font-heading);
  font-size: .9rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.4;
}

.titulacion-institucion {
  font-size: .82rem;
  color: var(--color-secondary);
  line-height: 1.4;
}

@media (min-width: 768px) {
  .titulaciones {
    padding: 2rem;
    gap: 1.25rem;
  }

  .titulacion-content strong {
    font-size: .95rem;
  }

  .titulacion-institucion {
    font-size: .88rem;
  }
}

/* --- Sección Testimonios Grid --- */
.testimonios-section {
  background: var(--color-bg-alt);
  padding: var(--section-padding);
}

/* --- Carrusel de testimonios --- */
.testimonios-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  overflow: hidden;
}

.carousel-track-wrap {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.45s ease;
  will-change: transform;
}

.testimonios-carousel .testimonio-card {
  flex-shrink: 0;
  width: calc(33.333% - 1rem);
  opacity: 0.45;
  transform: scale(0.93);
  transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonios-carousel .testimonio-card.is-active {
  opacity: 1;
  transform: scale(1);
  box-shadow: var(--shadow-lg);
}

.testimonio-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Botones de flecha */
.carousel-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: var(--color-primary);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  z-index: 2;
}

.carousel-btn:hover {
  background: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.carousel-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.testimonio-stars {
  font-size: 1rem;
  color: #F59E0B;
  letter-spacing: 1px;
  line-height: 1;
}

.testimonio-header {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: .75rem;
}

.testimonio-avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: .8rem;
  color: #fff;
  letter-spacing: .02em;
}

.testimonio-header__info {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}

.testimonio-nombre {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-primary);
}

.testimonio-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: .75rem;
  font-weight: 700;
  padding: .35rem .85rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--color-accent);
  border: 1px solid rgba(37, 99, 235, 0.15);
  width: fit-content;
}

.testimonio-texto {
  margin: 0;
}

.testimonio-texto p {
  font-size: .95rem;
  line-height: 1.7;
  color: var(--color-text);
  font-style: italic;
  position: relative;
  padding-left: 1.25rem;
}

.testimonio-texto p::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -.15rem;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--color-accent);
  opacity: .25;
  font-family: Georgia, serif;
  font-style: normal;
}

.testimonio-texto p::after {
  content: '"';
  font-size: 1.8rem;
  line-height: 0;
  color: var(--color-accent);
  opacity: .25;
  font-family: Georgia, serif;
  font-style: normal;
  margin-left: .15rem;
}

/* Carrusel responsive */
@media (max-width: 767px) {
  .testimonios-carousel .testimonio-card {
    width: 100%;
  }
  .carousel-btn {
    width: 2.25rem;
    height: 2.25rem;
  }
  /* CTAs de sección: full-width en móvil para evitar overflow horizontal */
  .hero__ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__ctas .btn,
  .proceso__cta .btn,
  .resultados__cta .btn,
  .metodo-pilares__cta .btn,
  .footer__cta .btn {
    width: 100%;
    justify-content: center;
  }
  .footer__cta { padding-left: 1.25rem; padding-right: 1.25rem; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .testimonios-carousel .testimonio-card {
    width: calc(50% - 0.75rem);
  }
}

/* --- Badge de verificación Google --- */
.google-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 520px;
  margin: 0 auto 2.5rem;
  padding: 1rem 1.5rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.google-badge svg {
  flex-shrink: 0;
}

.google-badge__content {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.google-badge__stars {
  font-size: 1rem;
  color: #F59E0B;
  letter-spacing: 1px;
  line-height: 1;
  flex-shrink: 0;
}

.google-badge__text {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  text-align: left;
}

.google-badge__text strong {
  font-family: var(--font-heading);
  font-size: .85rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.3;
}

.google-badge__text span {
  font-size: .75rem;
  color: var(--color-secondary);
  line-height: 1.3;
}

@media (min-width: 768px) {
  .google-badge {
    padding: 1.25rem 2rem;
  }

  .google-badge__stars {
    font-size: 1.1rem;
  }

  .google-badge__text strong {
    font-size: .9rem;
  }

  .google-badge__text span {
    font-size: .8rem;
  }
}

/* --- Nota de verificación (debajo de testimonios) --- */
.testimonios-nota {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-top: 2rem;
  font-size: .88rem;
  color: var(--color-secondary);
  text-align: center;
}

.testimonios-nota__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #16A34A;
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* --- Lightbox Modal --- */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  transition: background .3s ease;
}

.lightbox.open {
  display: flex;
  background: rgba(0, 0, 0, 0.9);
}

.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
  z-index: 10001;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.lightbox__close:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.lightbox__content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity .3s ease, transform .3s ease;
}

.lightbox.open .lightbox__content {
  opacity: 1;
  transform: scale(1);
}

.lightbox__image {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
  z-index: 10001;
}

.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.05);
}

.lightbox__nav:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.lightbox__nav--prev {
  left: 1.5rem;
}

.lightbox__nav--next {
  right: 1.5rem;
}

@media (max-width: 767px) {
  .lightbox {
    padding: 1rem;
  }

  .lightbox__close {
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .lightbox__nav {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .lightbox__nav--prev {
    left: 1rem;
  }

  .lightbox__nav--next {
    right: 1rem;
  }

  .lightbox__image {
    max-height: 85vh;
  }
}

/* Prevenir scroll del body cuando el lightbox está abierto */
body.lightbox-open {
  overflow: hidden;
}
