/* =========================================================
   Secciones 2-10 — sistema de componentes reutilizables
   Pensado para que cada tarjeta de persona (Sección 2) pueda
   convertirse en el hero de una landing page independiente más
   adelante (ver "Evolución futura" en el brief del proyecto).
   ========================================================= */

.section { padding: clamp(48px, 6vw, 72px) 0; }
.section.bg-white { background: var(--white); }
.section.bg-ivory { background: var(--ivory-soft); }

.section-head {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
}
.section-head .eyebrow { margin: 0 auto 16px; }
.section-head h2 {
  font-size: clamp(1.7rem, 1.1rem + 2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 14px;
}
.section-head p {
  color: rgba(10, 27, 51, 0.72);
  font-size: 1.05rem;
  line-height: 1.55;
}
.section-head.align-left { margin-left: 0; text-align: left; }

/* Placeholder honesto de imagen — usado en toda la página donde
   todavía no hay foto real (ver docs/adn — regla de no inventar
   contenido visual de personas reales). */
.img-pending {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  overflow: hidden;
}
.img-pending svg { width: 30%; height: 30%; max-width: 64px; max-height: 64px; opacity: 0.85; }
.img-pending .pending-tag {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  padding: 4px 10px;
  border-radius: 999px;
}
.tone-1 { background: linear-gradient(135deg, #0B4888, #2f6cb3); }
.tone-2 { background: linear-gradient(135deg, #082f5c, #0B4888); }
.tone-3 { background: linear-gradient(135deg, #c11f27, #E63038); }
.tone-4 { background: linear-gradient(135deg, #0A1B33, #0B4888); }

/* =========================================================
   Sección 2 — "¿Te identificas con alguna de estas situaciones?"
   Componente: .persona-card (reutilizable como base de futuras
   landing pages por buyer persona — Carlos y Madre Migrante son
   el 60% del mercado, ver Cap. 5 del ADN).
   ========================================================= */

.persona-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.persona-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.persona-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -16px rgba(10,27,51,0.22); }

.persona-card .img-pending { height: 170px; }

.persona-photo { height: 170px; overflow: hidden; }
.persona-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.persona-body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.persona-body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy-ink);
}
.persona-body p { font-size: 0.92rem; color: rgba(10,27,51,0.72); line-height: 1.5; flex: 1; }
.persona-body .btn { margin-top: 6px; align-self: flex-start; padding: 10px 20px; font-size: 0.85rem; }

/* =========================================================
   Sección 3 — "¿Cómo puedo ayudarte?"
   ========================================================= */

.help-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.help-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 30px 26px;
  text-align: left;
}
.help-icon {
  width: 52px; height: 52px;
  border-radius: 15px;
  background: rgba(11, 72, 136, 0.08);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.help-icon svg { width: 26px; height: 26px; }
.help-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.help-card p { font-size: 0.92rem; color: rgba(10,27,51,0.7); line-height: 1.5; }

/* =========================================================
   Sección 4 — "¿Por qué aprender conmigo?" (aparece Laura)
   ========================================================= */

.about-split {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 56px;
  align-items: center;
}
.about-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 4/5;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 15%; }

.about-copy h2 {
  font-size: clamp(1.6rem, 1rem + 2vw, 2.4rem);
  font-weight: 700;
  line-height: 1.28;
  margin-bottom: 20px;
}
.about-copy .lead-line { display: block; color: rgba(10,27,51,0.55); font-weight: 600; font-size: 1rem; margin-bottom: 4px; }

.about-perks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
  margin-top: 8px;
}
.about-perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--navy-ink);
}
.about-perks .check-icon { background: var(--red); }

.about-copy .btn { margin-top: 28px; }

/* =========================================================
   Sección 5 — Cómo son las clases (timeline)
   ========================================================= */

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}
.timeline-step {
  text-align: center;
  padding: 0 18px;
  position: relative;
}
.timeline-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  position: relative;
  z-index: 2;
}
.timeline-step:nth-child(2n) .timeline-num { background: var(--red); }
.timeline-step h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.timeline-step p { font-size: 0.88rem; color: rgba(10,27,51,0.68); }

.timeline-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 28px;
  left: calc(50% + 45px);
  right: calc(-50% + 45px);
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(10,27,51,0.2) 0 8px, transparent 8px 16px);
  z-index: 1;
}

/* =========================================================
   Sección 6 — "Ellos también comenzaron desde cero"
   ========================================================= */

.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.story-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.story-top { display: flex; align-items: center; gap: 12px; }
.story-top .avatar-initials { width: 46px; height: 46px; }
.avatar-photo {
  width: 46px; height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.story-name { font-weight: 800; font-size: 0.95rem; color: var(--navy-ink); }
.story-city { font-size: 0.8rem; color: rgba(10,27,51,0.55); font-weight: 700; }
.story-card blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.35;
  color: var(--navy-ink);
}
.story-card svg.quote-mark { width: 26px; height: 26px; color: rgba(230,48,56,0.35); }

/* =========================================================
   Sección 7 — "Inglés para tu realidad" (grid de escenarios)
   ========================================================= */

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.scenario-tile {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 26px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: transform 0.18s ease;
}
.scenario-tile:hover { transform: translateY(-3px); }
.scenario-tile .scenario-icon {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: rgba(11, 72, 136, 0.08);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
}
.scenario-tile .scenario-icon svg { width: 24px; height: 24px; }
.scenario-tile span { font-weight: 700; font-size: 0.88rem; color: var(--navy-ink); }

/* =========================================================
   Sección 8 — Recursos gratuitos (lead magnet)
   ========================================================= */

.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.resource-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 30px 26px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.resource-icon {
  width: 52px; height: 52px;
  border-radius: 15px;
  background: rgba(230, 48, 56, 0.1);
  color: var(--red);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.resource-icon svg { width: 26px; height: 26px; }
.resource-card h3 { font-size: 1.05rem; font-weight: 700; }
.resource-card p { font-size: 0.88rem; color: rgba(10,27,51,0.68); flex: 1; }
.resource-tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--navy);
  background: rgba(11,72,136,0.08);
  padding: 4px 10px;
  border-radius: 999px;
}

.lead-form-card {
  max-width: 760px;
  margin: 0 auto;
  background: var(--navy-ink);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  color: var(--white);
}
.lead-form-card h3 { color: var(--white); font-size: 1.3rem; margin-bottom: 8px; }
.lead-form-card p { color: rgba(255,255,255,0.75); font-size: 0.95rem; margin-bottom: 24px; }
.lead-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  text-align: left;
}
.lead-form-field { display: flex; flex-direction: column; gap: 6px; }
.lead-form-full { grid-column: 1 / -1; }
.lead-form-field label {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
}
.lead-form input,
.lead-form textarea {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  width: 100%;
}
.lead-form textarea { resize: vertical; min-height: 78px; font-family: var(--font-body); }
.lead-form input:focus, .lead-form textarea:focus { outline: 2px solid var(--red); }
.lead-form-submit { grid-column: 1 / -1; justify-self: center; margin-top: 4px; }
.lead-form-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.lead-form-checkboxes-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
}
.lead-form-checkboxes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.lead-form-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}
.lead-form-checkbox input { width: auto; accent-color: var(--red); }
.lead-form-checkbox:has(input:checked) { background: var(--red); border-color: var(--red); }
/* Honeypot anti-spam — oculto para personas, visible para bots que
   rellenan cualquier campo del formulario. */
.lead-form-honeypot {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.lead-form-note { margin-top: 18px; font-size: 0.75rem; color: rgba(255,255,255,0.55); }
.lead-form-note a { color: rgba(255,255,255,0.85); text-decoration: underline; }
.lead-form-note a:hover { color: var(--white); }
.lead-form-status { margin-top: 12px; font-size: 0.85rem; font-weight: 700; color: #8fd19e; display: none; }
.lead-form-status.is-visible { display: block; }

/* =========================================================
   Sección 9 — FAQ (acordeón, basado en objeciones reales del ADN)
   ========================================================= */

.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  color: var(--navy-ink);
}
.faq-question .faq-icon {
  flex-shrink: 0;
  width: 24px; height: 24px;
  color: var(--navy);
  transition: transform 0.25s ease;
}
.faq-item.is-open .faq-question .faq-icon { transform: rotate(45deg); color: var(--red); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer-inner { padding: 0 24px 22px; font-size: 0.95rem; line-height: 1.6; color: rgba(10,27,51,0.75); }
.faq-item.is-open .faq-answer { max-height: 240px; }

/* =========================================================
   Sección 10 — CTA final (más emocional, no repite el Hero)
   ========================================================= */

.final-cta {
  background: linear-gradient(135deg, var(--navy-ink), var(--navy));
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(230,48,56,0.25), transparent 55%),
              radial-gradient(circle at 85% 80%, rgba(255,255,255,0.08), transparent 45%);
}
.final-cta .container { position: relative; z-index: 1; max-width: 780px; }
.final-cta h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 1.1rem + 2.4vw, 2.9rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 20px;
}
.final-cta p { font-size: 1.1rem; color: rgba(255,255,255,0.85); margin-bottom: 8px; }
.final-cta p strong { color: var(--white); }
.final-cta .btn { margin-top: 28px; padding: 16px 40px; font-size: 1.02rem; }

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

@media (max-width: 1080px) {
  .persona-grid, .help-grid, .scenario-grid { grid-template-columns: repeat(2, 1fr); }
  .stories-grid, .resources-grid { grid-template-columns: repeat(2, 1fr); }
  .about-split { grid-template-columns: 1fr; }
  .about-photo { max-width: 420px; margin: 0 auto; }
  .timeline { grid-template-columns: repeat(2, 1fr); gap: 32px 0; }
  .timeline-step:nth-child(2)::after, .timeline-step:last-child::after { display: none; }
}

@media (max-width: 640px) {
  .persona-grid, .help-grid, .scenario-grid, .stories-grid, .resources-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .timeline-step::after { display: none; }
  .about-perks { grid-template-columns: 1fr; }
  .lead-form { grid-template-columns: 1fr; }
  .lead-form-card { padding: 28px 22px; }
}
