/* ============================================================
   TALMA ACADEMY — Landing "Plantilla de CV"
   Tokens tomados del branding oficial (emails MailerLite):
   navy #1A1F2E · gold #C9A96E · coral #E87A5D→#D85F45 · cream #F0EBE3
   El fondo "alt" de sección es blanco puro (no un beige casi igual
   al de fondo) para que la alternancia de secciones se note de
   verdad, y los estados aprobado/rechazado usan tonos de marca
   (dorado oscuro / gris navy) en vez de un semáforo verde-rojo
   genérico que no pertenece a la identidad de Talma.
   ============================================================ */

:root {
  --navy: #1A1F2E;
  --navy-soft: #2B3349;
  --gold: #C9A96E;
  --gold-soft: #E4D4B0;
  --gold-tint: #F3E9D2;
  --coral: #E87A5D;
  --coral-dark: #D85F45;
  --cream: #F0EBE3;
  --card: #FFFFFF;
  --muted: #6B7280;
  --white: #FFFFFF;
  /* Estados "aprobado / rechazado" en tonos de marca (nada de semáforo verde/rojo genérico) */
  --approve: #A9823E;
  --reject: #6B7280;

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;

  --max-w: 1120px;

  --shadow-card: 0 10px 30px rgba(26, 31, 46, 0.08);
  --shadow-btn: 0 10px 24px rgba(216, 95, 69, 0.35);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--navy-soft);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); color: var(--navy); margin: 0; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }

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

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.divider {
  width: 64px;
  height: 2px;
  background: var(--gold);
  margin: 18px auto 0;
}
.divider.left { margin-left: 0; }

/* ---------- Skip link (accesibilidad) ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  z-index: 100;
  border-radius: var(--radius-s);
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* ---------- Focus visibility ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}

/* ============================================================
   TOP TRUST BAR (navy, como el email)
   ============================================================ */
.trust-bar {
  background: var(--navy);
  padding: 12px 0;
  text-align: center;
}
.trust-bar span {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 56px 0 72px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-copy {
  max-width: 560px;
  text-align: left;
}
.hero-copy .lead-form { text-align: left; margin-left: 0; margin-right: 0; }
.hero-copy .eyebrow { margin-bottom: 16px; }
.hero-copy h1 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.hero-copy h1 em {
  font-style: italic;
  color: var(--coral);
}
.hero-copy .subtitle {
  margin-top: 20px;
  font-size: 1.1rem;
  color: var(--navy-soft);
  max-width: 46ch;
}

/* Imagen real del CV en el hero: tarjeta flotante ligeramente inclinada */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.hero-visual-img {
  width: 100%;
  max-width: 440px;
  transform: rotate(-3deg);
  filter: drop-shadow(0 26px 38px rgba(26, 31, 46, 0.24));
}

/* Sello "Aprobado" sobre la imagen del CV en el hero */
.hero-stamp {
  position: absolute;
  top: -20px;
  right: 8%;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: rgba(251, 248, 243, 0.94);
  border: 2px solid var(--navy);
  box-shadow: inset 0 0 0 4px rgba(201, 169, 110, 0.5), 0 10px 22px rgba(26, 31, 46, 0.22);
  transform: rotate(10deg);
  z-index: 2;
}
.hero-stamp-check {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  color: var(--navy);
  letter-spacing: 0;
  word-spacing: 0;
  display: block;
  height: 22px;
  overflow: hidden;
}
.hero-stamp-text {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--navy);
}

/* ============================================================
   FRANJA DE LOGOS — "Validado por reclutadores"
   ============================================================ */
.logos-strip {
  background: var(--navy);
  padding: 26px 0;
}
.logos-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}
.logos-strip-label {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  color: var(--white);
  font-size: 1.15rem;
  flex: none;
  margin-right: 8px;
}
.logos-strip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.logo-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(201, 169, 110, 0.35);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 14px 30px;
  border-radius: 999px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-img {
  height: 40px;
  width: auto;
  max-width: 100%;
  display: block;
}

/* Tarjeta contenedora usada para enmarcar la imagen real de comparación de CVs */
.doc-card {
  background: var(--white);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
  padding: 28px 26px;
  position: relative;
  overflow: hidden;
}
.doc-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--gold), var(--coral));
}


/* ---------- Lead form ---------- */
.lead-form {
  background: var(--card);
  border-radius: var(--radius-l);
  padding: 28px;
  box-shadow: var(--shadow-card);
  margin-top: 32px;
  max-width: 460px;
}
.lead-form .form-row {
  margin-bottom: 14px;
}
.lead-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.lead-form input[type="text"],
.lead-form input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #E3DACB;
  border-radius: var(--radius-s);
  font-size: 15px;
  background: var(--white);
  color: var(--navy-soft);
  transition: border-color 0.2s ease;
}
.lead-form input:focus {
  border-color: var(--coral);
}
.lead-form input::placeholder { color: #A6A0A0; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: linear-gradient(135deg, var(--coral), var(--coral-dark));
  color: var(--white);
  border: none;
  font-size: 16px;
  font-weight: 700;
  padding: 16px 20px;
  border-radius: 10px;
  box-shadow: var(--shadow-btn);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(216,95,69,0.42); }
.btn-primary:active { transform: translateY(0); }
.btn-primary .arrow { transition: transform 0.15s ease; }
.btn-primary:hover .arrow { transform: translateX(3px); }

.form-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

.form-error {
  display: none;
  font-size: 13px;
  color: var(--coral-dark);
  margin-top: 6px;
}
.form-error.visible { display: block; }

/* honeypot */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* ============================================================
   SECTION SCAFFOLDING
   ============================================================ */
.section {
  padding: 72px 0;
}
.section.alt { background: var(--card); }
.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 44px;
}
.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-top: 14px;
  line-height: 1.25;
}
.section-head p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ============================================================
   BLOQUE 2 — ATS / Problema
   ============================================================ */
.problem-grid {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.problem-copy p { margin-bottom: 16px; color: var(--navy-soft); font-size: 1.02rem; text-align: left; }
.problem-copy p:last-child { margin-bottom: 0; }
.problem-copy strong { color: var(--navy); }

/* ============================================================
   BLOQUE 3 — Qué vas a recibir
   ============================================================ */
.receive-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 760px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 40px;
}
.receive-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 1.02rem;
  color: var(--navy-soft);
  text-align: left;
}
.receive-list .check {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  margin-top: 2px;
}
/* Imagen comparativa completa (CV aprobado + CV no aprobado), debajo de la
   lista. Se saca del .container estándar (que limita a 1120px) para que
   pueda ocupar el ~90-95% del ancho real de la página y tenga protagonismo
   visual. La imagen en sí nunca se recorta ni se deforma: siempre escala
   con su proporción original (height: auto). */
.receive-compare-wrap {
  width: 95%;
  max-width: 1600px;
  margin: 40px auto 0;
}
.receive-compare-card {
  width: 100%;
  margin: 0;
  padding: 16px;
}
.receive-compare-card img {
  width: 100%;
  height: auto;
  display: block;
}
/* En la sección ATS ("La diferencia") la imagen se muestra un poco más
   contenida (80-85% del ancho disponible) para que quede espacio alrededor
   y no toque los bordes del contenedor. */
.ats-compare-wrap {
  width: 82%;
  max-width: 1320px;
}
/* El archivo original trae, pegado al símbolo rojo de X, un artefacto de
   captura de pantalla (una miniatura de otra ventana/navegador) que ocupa
   toda la franja vacía a la derecha del segundo CV. Ese artefacto y el
   propio símbolo están entremezclados a nivel de píxel en el archivo (el
   círculo rojo se solapa con esa miniatura), así que no es posible
   recortar solo el artefacto sin arriesgar cortar parte del símbolo.
   Solución: se cubre toda esa franja (sin tocar el archivo original) y se
   reconstruye el símbolo de "rechazado" con un icono CSS nítido —mismo
   color, tamaño y posición que el original— para un resultado limpio.
   El resto de la imagen (los dos CV completos) no se toca en absoluto. */
.ats-image-frame {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}
.ats-compare-img {
  width: 100%;
  height: auto;
  display: block;
}
.ats-gray-mask {
  position: absolute;
  top: 0;
  right: 0;
  width: 7.6%;
  height: 100%;
  background: var(--white);
}
.ats-x-icon {
  position: absolute;
  left: 88.1%;
  top: 0.8%;
  width: 11.9%;
  height: 20.3%;
  border-radius: 50%;
  background: #FF0100;
  box-shadow: 0 6px 14px rgba(26, 31, 46, 0.2);
}
.ats-x-icon::before,
.ats-x-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 78%;
  height: 15%;
  background: var(--white);
  border-radius: 8px;
}
.ats-x-icon::before { transform: translate(-50%, -50%) rotate(45deg); }
.ats-x-icon::after { transform: translate(-50%, -50%) rotate(-45deg); }

/* ============================================================
   BLOQUE 4 — Comparación ATS: usa .doc-card para enmarcar la
   imagen real de comparación (ver Bloque 4 en index.html)
   ============================================================ */


/* ============================================================
   BLOQUE 5 — Testimonios
   ============================================================ */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-m);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.testimonial-card .quote-mark {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--gold);
  line-height: 1;
}
.testimonial-card p.quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.08rem;
  color: var(--navy);
  line-height: 1.45;
}
.testimonial-card .author {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}

/* ============================================================
   BLOQUE 6 — Sobre Carola
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: center;
}
.about-photo {
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 4 / 5;
  background: var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-copy .eyebrow { margin-bottom: 14px; }
.about-copy h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 18px; }
.about-copy p { color: var(--navy-soft); font-size: 1.05rem; margin-bottom: 14px; }
.about-copy .signature {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
  font-size: 1.2rem;
  margin-top: 18px;
}

/* ============================================================
   BLOQUE 7 — CTA final
   ============================================================ */
.cta-final {
  background: var(--navy);
  border-radius: var(--radius-l);
  padding: 56px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(201,169,110,0.18), transparent 55%);
}
.cta-final > * { position: relative; z-index: 1; }
.cta-final h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.1rem); }
.cta-final p { color: #C7CCDA; margin-top: 14px; max-width: 46ch; margin-left: auto; margin-right: auto; }
.cta-final .lead-form { margin: 32px auto 0; text-align: left; background: var(--card); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy);
  padding: 32px 0;
  text-align: center;
}
.site-footer img { margin: 0 auto 12px; max-width: 110px; }
.site-footer .foot-name { color: #A8B2C7; font-size: 13px; }
.site-footer .foot-copy { color: #6B7280; font-size: 12px; margin-top: 8px; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { max-width: 100%; text-align: center; margin: 0 auto; }
  .hero-copy .subtitle { margin-left: auto; margin-right: auto; }
  .hero-copy .lead-form { text-align: left; margin-left: auto; margin-right: auto; }
  .hero-visual { order: -1; }
  .hero-visual-img { max-width: 320px; }
  .hero-stamp { width: 92px; height: 92px; top: -14px; right: 6%; }
  .hero-stamp-check { font-size: 18px; }
  .hero-stamp-text { font-size: 10px; }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-photo { max-width: 320px; margin: 0 auto; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .receive-list { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 52px 0; }
  .hero { padding: 40px 0 52px; }
  .hero-copy h1 { font-size: 1.9rem; }
  .hero-visual-img { max-width: 240px; transform: rotate(-2deg); }
  .hero-stamp { width: 74px; height: 74px; top: -10px; right: 4%; }
  .hero-stamp-check { font-size: 15px; }
  .hero-stamp-text { font-size: 8.5px; }
  .lead-form { padding: 22px; max-width: 100%; }
  .cta-final { padding: 40px 22px; }
  .doc-card { padding: 22px 18px; }
  .container { padding: 0 18px; }
  .logos-strip-inner { flex-direction: column; gap: 16px; }
  .logo-pill { padding: 10px 22px; font-size: 0.85rem; }
  .logo-img { height: 30px; }
}
