/* =========================================================
   Bootcamp TEF·AQ — hoja de estilos
   Paleta oficial de marca: azul #004AAD + rojo hoja de maple (acción)
   Nota: las variables --gold-* se mantienen por nombre pero ahora
   llevan los tonos rojo de marca (evita renombrar todo el archivo).
   ========================================================= */

:root {
  --navy-900: #012f6b;
  --navy-800: #004aad;
  --navy-700: #0d5cc9;
  --blue-500: #2f7de0;
  --blue-100: #e7f0fb;
  --gold-500: #e4212e;
  --gold-600: #c31a26;
  --ink: #172433;
  --ink-soft: #4a5a6c;
  --paper: #ffffff;
  --paper-soft: #f6f8fb;
  --border: #e2e8f0;
  --success: #2f8f5b;
  --shadow-sm: 0 2px 8px rgba(15, 42, 74, 0.08);
  --shadow-md: 0 12px 32px rgba(15, 42, 74, 0.14);
  --radius: 14px;
  --max-width: 1120px;
  --font-head: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--navy-900);
}

h1 { font-size: clamp(2rem, 4vw + 1rem, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 2.4vw + 1rem, 2.3rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--ink-soft); }

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

.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--alt { background: var(--paper-soft); }
.section--navy {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: #fff;
}
.section--navy h1, .section--navy h2, .section--navy h3, .section--navy p { color: #fff; }
.section--navy p { color: rgba(255,255,255,0.85); }

.hero h1, .hero h2, .hero h3,
.page-hero h1, .page-hero h2, .page-hero h3 { color: #fff; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-600);
  background: rgba(226, 150, 58, 0.12);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section--navy .eyebrow {
  color: #ffd9a3;
  background: rgba(255, 255, 255, 0.12);
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.lede { font-size: 1.15rem; max-width: 62ch; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy-900);
  text-decoration: none;
}

.brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy-800), var(--blue-500));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand__logo {
  height: 34px;
  width: auto;
  flex-shrink: 0;
}

.brand__text small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.68rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--navy-800);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease;
}

.nav__links a:hover,
.nav__links a[aria-current="page"] {
  border-color: var(--gold-500);
}

.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 15px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: #fff;
  box-shadow: 0 10px 24px rgba(207, 127, 31, 0.35);
}
.btn--primary:hover { box-shadow: 0 14px 28px rgba(207, 127, 31, 0.45); }

.btn--ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}
.btn--ghost:hover { border-color: #fff; }

.btn--outline {
  background: transparent;
  border-color: var(--navy-800);
  color: var(--navy-800);
}

.btn--block { width: 100%; }
.btn--sm { padding: 10px 18px; font-size: 0.9rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(1100px 480px at 85% -10%, rgba(47, 111, 214, 0.25), transparent),
    linear-gradient(165deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: #fff;
  padding: 76px 0 64px;
  position: relative;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: start;
}

/* En escritorio, la tarjeta de precio sube para quedar al nivel del
   título, y las columnas se reparten un poco más de espacio a la
   izquierda para que los dos botones del hero quepan en una sola fila. */
@media (min-width: 961px) {
  .hero__grid { grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.88fr); }
  .hero__grid .hero__card { margin-top: 48px; }
  .hero__grid .btn-row { gap: 12px; }
  .hero__grid .btn-row .btn { padding: 15px 25px; }
}

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

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 26px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 7px 13px;
  border-radius: 999px;
}

.hero__note {
  margin-top: 16px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
}

.hero__card {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 28px;
}

.price-box {
  text-align: center;
  padding: 4px 0 18px;
  border-bottom: 1px dashed var(--border);
  margin-bottom: 18px;
}

.price-box__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 4px 10px;
}

.price-box__was {
  text-decoration: line-through;
  color: var(--ink-soft);
  font-size: 1rem;
}

.price-box__now-wrap {
  white-space: nowrap;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.7rem, 6vw, 2.4rem);
  color: var(--navy-900);
}

.price-box__cur { font-size: 0.55em; font-weight: 600; color: var(--ink-soft); }

.check-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.check-list li {
  display: flex;
  gap: 10px;
  font-size: 0.94rem;
  color: var(--ink);
  align-items: flex-start;
}

.check-list li::before {
  content: "✓";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--navy-800);
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.spots-note {
  text-align: center;
  font-size: 0.84rem;
  color: var(--gold-600);
  font-weight: 700;
  margin-top: 12px;
}

/* ---------- Pain / agitation grid ---------- */

.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.pain-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.pain-card__num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.9rem;
  color: #fff;
  background: var(--navy-800);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.pain-card p { margin-bottom: 0; }

/* ---------- Feature / how it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.step {
  position: relative;
  padding: 26px 20px 20px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--border);
}

.step__num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
  background: var(--navy-800);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.step h3 { font-size: 1.02rem; }
.step p { font-size: 0.92rem; margin-bottom: 0; }

/* ---------- Cards / grid generic ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 36px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

/* Reserva el alto de 2 líneas para los títulos de tarjeta, así cuando un
   título es más largo y pasa a 2 líneas, el párrafo de abajo no queda
   desalineado respecto a las tarjetas vecinas con título de 1 línea. */
.card h3,
.pain-card h3 {
  min-height: 2.4em;
}

/* ---------- Testimonials ---------- */

.testi {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
}

.testi__quote {
  font-size: 0.98rem;
  color: var(--ink);
  font-style: italic;
  margin: 0;
}

.testi__quote::before { content: "“"; }
.testi__quote::after { content: "”"; }

.testi__author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-500), var(--navy-800));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.testi__name { font-weight: 700; font-size: 0.9rem; color: var(--navy-900); }
.testi__meta { font-size: 0.78rem; color: var(--ink-soft); }

/* ---------- Resultados reales ---------- */

.result-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
}

.result-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--navy-800);
  background: var(--blue-100);
  padding: 6px 12px;
  border-radius: 999px;
}

.result-card .testi__quote { font-size: 0.94rem; }

/* ---------- Instructor ---------- */

.instructor {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: center;
}

/* En la página "Sobre mí" el bloque de texto es mucho más largo que la
   foto, así que centrarla la deja muy abajo. Se sube para que quede
   alineada con el inicio del texto. */
@media (min-width: 961px) {
  .instructor--top { align-items: start; }
}

.instructor__photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--blue-100), var(--paper-soft));
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.instructor__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0 6px;
}

.stat {
  text-align: center;
  background: var(--blue-100);
  border-radius: 12px;
  padding: 16px 10px;
}

.stat__num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--navy-900);
  display: block;
}

.stat__label {
  font-size: 0.78rem;
  color: var(--ink-soft);
  font-weight: 600;
  overflow-wrap: break-word;
}

.instructor__credentials {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 12px;
}

.instructor__credentials li {
  display: flex;
  gap: 10px;
  font-size: 0.95rem;
}

.instructor__credentials li::before {
  content: "•";
  color: var(--gold-600);
  font-weight: 800;
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 780px;
  margin: 36px auto 0;
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--gold-600);
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item__body {
  padding: 0 22px 20px;
  color: var(--ink-soft);
}

/* ---------- CTA banner ---------- */

.cta-banner {
  text-align: center;
  padding: 60px 0;
}

.cta-banner h2 { color: #fff; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.75);
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-grid h4 {
  color: #fff;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.footer-grid p, .footer-grid a {
  color: rgba(255,255,255,0.7);
  font-size: 0.92rem;
  text-decoration: none;
}

.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }

.footer-social { display: flex; gap: 12px; margin-top: 14px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
}

.footer-bottom {
  padding-top: 20px;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Sticky mobile CTA ---------- */

.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 20px rgba(15,42,74,0.12);
  padding: 12px 16px;
  display: none;
}

.sticky-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.sticky-cta__price { font-weight: 800; color: var(--navy-900); font-family: var(--font-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-cta .btn { flex-shrink: 0; }

/* ---------- Page hero (subpages) ---------- */

.page-hero {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: #fff;
  padding: 56px 0;
  text-align: center;
}
.page-hero p { color: rgba(255,255,255,0.85); }

/* ---------- Utility ---------- */

.stack { display: grid; gap: 20px; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.small { font-size: 0.85rem; }
.muted { color: var(--ink-soft); }
.divider { height: 1px; background: var(--border); margin: 40px 0; }

.thanks-box {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 32px;
  box-shadow: var(--shadow-md);
}

.editor-inserted-image {
  max-width: 720px;
  margin: 0 auto;
}
.editor-inserted-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.thanks-icon {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 18px;
}

/* ---------- Nota firmada (calidez / credibilidad personal) ---------- */

.signature-note {
  display: flex;
  align-items: center;
  gap: 22px;
  background: var(--blue-100);
  border-radius: var(--radius);
  padding: 26px 30px;
}

.signature-note__photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.signature-note p {
  margin: 0;
  color: var(--ink);
  font-size: 1.02rem;
  font-style: italic;
}

.signature-note__name {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-weight: 700;
  color: var(--navy-900);
  font-size: 0.9rem;
}

@media (max-width: 560px) {
  .signature-note { flex-direction: column; text-align: center; padding: 24px 22px; }
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .instructor { grid-template-columns: minmax(0, 1fr); }
  .instructor { min-width: 0; }
  .instructor__photo { width: 100%; max-width: 320px; min-width: 0; margin: 0 auto; }
  .pain-grid { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (max-width: 680px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; align-items: center; justify-content: center; }
  /* Los botones con texto largo (ej. "Preguntar fecha por WhatsApp") ya no
     fuerzan overflow horizontal de toda la página: se les permite partir
     el texto en vez de desbordarse. */
  .btn { white-space: normal; text-align: center; }
  .btn-row { align-items: stretch; }
  .btn-row .btn:not(.btn--sm) { flex: 1 1 auto; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .sticky-cta { display: block; }
  body { padding-bottom: 74px; }
  .section { padding: 52px 0; }
  .stat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .stat { padding: 12px 6px; }
  .stat__num { font-size: 1.15rem; }
  .stat__label { font-size: 0.66rem; }
  .brand__text small { display: none; }
  .site-header__inner .btn-row .btn--primary { display: none; }
  .site-header__inner .btn-row { gap: 8px; }
}

@media (max-width: 380px) {
  .sticky-cta__price .small { display: none; }
  .sticky-cta__inner { gap: 8px; }
  .sticky-cta .btn--sm { padding: 9px 14px; font-size: 0.85rem; }
}

.nav.is-open .nav__links {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  flex-direction: column;
  padding: 16px 24px 22px;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  gap: 14px;
}
