/* ============================================================
   Josep Sirera Psicólogos — Landing curso técnicas psicológico-forenses
   Identidad: crema #F4EBD8 · antracita #3D3D3D · mostaza #9C7B1F
   lima #B8E833 (solo pill B2B) · naranja #F5A623 (solo sello 30)
   ============================================================ */
/* Tipografía autoalojada (sin Google Fonts: mejor RGPD y disponibilidad) */
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('assets/fonts/Inter-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('assets/fonts/Inter-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('assets/fonts/Inter-SemiBold.woff2') format('woff2');
}

:root {
  --crema: #F4EBD8;
  --crema-suave: #FAF5EA;
  --antracita: #3D3D3D;
  --antracita-90: #2E2E2E;
  --mostaza: #9C7B1F;
  --lima: #B8E833;
  --naranja: #F5A623;
  --gris-borde: #D8D2C2;
  --texto-suave: #6B6558;
  --font: 'Inter', 'Open Sans', Arial, sans-serif;
  --maxw: 1180px;
  --radius: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--antracita);
  background: var(--crema);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

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

/* Defensa: el texto nunca queda invisible aunque falle el JS */
.reveal { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1 !important; transform: none !important; }
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.22,.61,.36,1), transform .8s cubic-bezier(.22,.61,.36,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Barra de progreso ---------- */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--mostaza); z-index: 1000;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  background: rgba(244, 235, 216, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 0.5px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--gris-borde); background: rgba(244,235,216,.97); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand-logo { height: 46px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a:not(.cta-btn) {
  text-decoration: none; font-size: 14.5px; font-weight: 500;
  position: relative; padding: 4px 0;
}
.main-nav a:not(.cta-btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0;
  background: var(--mostaza); transition: width .3s;
}
.main-nav a:not(.cta-btn):hover::after { width: 100%; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--antracita); margin: 5px 0; transition: .3s; }

/* ---------- CTA principal (marca) ---------- */
.cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--antracita); color: #fff;
  padding: 14px 26px; border-radius: 6px;
  text-decoration: none; font-size: 15px; font-weight: 400;
  transition: background .25s, transform .25s, box-shadow .25s;
}
.cta-btn:hover { background: var(--antracita-90); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(61,61,61,.22); }
.cta-btn .cta-arrow { color: var(--mostaza); font-weight: 500; }
.cta-nav { padding: 10px 18px; font-size: 14px; }
.cta-light { background: var(--crema); color: var(--antracita); }
.cta-light:hover { background: #fff; }
.link-ghost {
  font-size: 14.5px; font-weight: 500; text-decoration: none;
  color: var(--antracita); border-bottom: 1px solid var(--mostaza);
  padding-bottom: 2px; transition: color .25s;
}
.link-ghost:hover { color: var(--mostaza); }
.link-ghost.light { color: var(--crema); border-bottom-color: var(--lima); }
.link-ghost.light:hover { color: #fff; }

/* Pill B2B (lima — sólo promocional) */
.pill-cta {
  display: inline-block; background: var(--lima); color: var(--antracita);
  padding: 14px 30px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; letter-spacing: 1px;
  text-decoration: none; transition: transform .25s, box-shadow .25s;
}
.pill-cta:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 12px 30px rgba(184,232,51,.4); }

.eyebrow {
  font-size: 12px; letter-spacing: 2.4px; text-transform: uppercase;
  color: var(--mostaza); font-weight: 500; margin-bottom: 18px;
}
h1, h2, h3 { font-weight: 600; line-height: 1.18; }
h2 { font-size: clamp(26px, 3.6vw, 40px); margin-bottom: 22px; max-width: 21ch; }
section { padding: 110px 0; }

/* ---------- Hero ---------- */
.hero { padding: 190px 0 120px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.hero-title {
  font-size: clamp(30px, 4.4vw, 52px);
  margin-bottom: 26px; letter-spacing: -0.5px; max-width: 24ch;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-sub { font-size: 17px; color: var(--texto-suave); max-width: 56ch; margin-bottom: 34px; }
.hero-ctas { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-note { font-size: 13px; color: var(--mostaza); font-weight: 500; letter-spacing: .3px; }
.hero-media { position: relative; }
.hero-img-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px rgba(61,61,61,.18); }
.hero-img-wrap img { width: 100%; height: 520px; object-fit: cover; transform: scale(1.06); }
.hero-badge {
  position: absolute; bottom: -26px; left: -26px;
  background: var(--antracita); color: var(--crema);
  border-radius: var(--radius); padding: 18px 22px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 18px 40px rgba(61,61,61,.28);
}
.badge-num { font-size: 34px; font-weight: 600; color: var(--lima); line-height: 1; }
.badge-txt { font-size: 12px; line-height: 1.35; letter-spacing: .6px; text-transform: uppercase; }

/* ---------- Stats ---------- */
.stats { background: var(--antracita); color: var(--crema); }
.stats-intro { font-size: clamp(19px, 2.4vw, 26px); font-weight: 400; max-width: 34ch; margin-bottom: 70px; line-height: 1.45; }
.stats-intro em { font-style: italic; color: var(--lima); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.stat { border-top: 1px solid rgba(244,235,216,.25); padding-top: 26px; }
.stat-num { font-size: clamp(40px, 4.5vw, 58px); font-weight: 600; color: var(--mostaza); display: block; margin-bottom: 12px; line-height: 1; filter: brightness(1.35); }
.stat-label { font-size: 13.5px; color: rgba(244,235,216,.82); line-height: 1.55; }
.stats-foot { margin-top: 60px; font-size: 12.5px; color: rgba(244,235,216,.55); }

/* ---------- Why ---------- */
.why { background: #fff; }
.why-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; }
.why-media img { border-radius: var(--radius); height: 560px; object-fit: cover; width: 100%; }
.why-copy p { margin-bottom: 18px; color: var(--texto-suave); }
.why-copy h2 { color: var(--antracita); }
.why-list { list-style: none; margin-top: 28px; }
.why-list li {
  padding: 14px 0 14px 34px; position: relative;
  border-top: 0.5px solid var(--gris-borde); font-size: 15px; font-weight: 500;
}
.why-list li::before {
  content: ">"; position: absolute; left: 4px; color: var(--mostaza); font-weight: 600;
}

/* ---------- Programa ---------- */
.program { background: var(--crema); }
.program-list { margin-top: 30px; }
.program-item {
  display: grid; grid-template-columns: 110px 1fr 130px; gap: 34px;
  padding: 44px 0; border-top: 0.5px solid var(--gris-borde);
  align-items: start;
}
.program-item:last-child { border-bottom: 0.5px solid var(--gris-borde); }
.program-num {
  font-size: 52px; font-weight: 600; color: transparent;
  -webkit-text-stroke: 1.4px var(--mostaza); line-height: 1;
}
.program-body h3 { font-size: 21px; margin-bottom: 12px; }
.program-body p { color: var(--texto-suave); max-width: 68ch; font-size: 15px; }
.program-time { font-size: 13px; font-weight: 500; color: var(--mostaza); text-align: right; letter-spacing: .8px; padding-top: 8px; }

/* ---------- Takeaways ---------- */
.takeaways { background: #fff; }
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 40px; }
.card {
  background: var(--crema-suave); border: 0.5px solid var(--gris-borde);
  border-radius: var(--radius); padding: 34px 28px;
  transition: transform .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(61,61,61,.12); }
.card-icon { width: 42px; height: 42px; color: var(--mostaza); margin-bottom: 20px; }
.card-icon svg { width: 100%; height: 100%; }
.card h3 { font-size: 17px; margin-bottom: 10px; }
.card p { font-size: 14px; color: var(--texto-suave); }

/* ---------- Audiencia ---------- */
.audience { background: var(--crema); }
.audience-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: center; }
.audience-copy p { color: var(--texto-suave); margin-bottom: 18px; max-width: 58ch; }
.audience-copy .pill-cta { margin-top: 14px; }
.audience-facts {
  background: #fff; border: 0.5px solid var(--gris-borde); border-radius: var(--radius);
  padding: 14px 34px; box-shadow: 0 24px 50px rgba(61,61,61,.08);
}
.fact { display: flex; justify-content: space-between; gap: 20px; padding: 15px 0; border-bottom: 0.5px solid var(--gris-borde); font-size: 14px; }
.fact:last-child { border-bottom: none; }
.fact-k { font-weight: 500; color: var(--mostaza); }
.fact-v { text-align: right; }

/* ---------- Docente ---------- */
.teacher { background: #fff; }
.teacher-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; align-items: center; }
.teacher-media { position: relative; max-width: 420px; }
.teacher-media img { border-radius: var(--radius); }
.seal-30 {
  position: absolute; top: -28px; right: -28px;
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--naranja); color: var(--antracita);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 500; letter-spacing: .5px;
  box-shadow: 0 14px 30px rgba(245,166,35,.35);
  transform: rotate(8deg);
}
.seal-30 span { font-size: 30px; font-weight: 600; line-height: 1; }
.teacher-role { font-size: 14px; font-weight: 500; color: var(--mostaza); margin-bottom: 20px; }
.teacher-copy p:not(.teacher-role):not(.eyebrow) { color: var(--texto-suave); margin-bottom: 16px; }

/* ---------- Colaboración ---------- */
.collab { background: var(--crema); }
.collab-intro { color: var(--texto-suave); max-width: 62ch; margin-bottom: 46px; }
.collab-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 0.5px solid var(--gris-borde); border-left: 0.5px solid var(--gris-borde); }
.collab-item {
  border-right: 0.5px solid var(--gris-borde); border-bottom: 0.5px solid var(--gris-borde);
  padding: 36px 30px; background: transparent; transition: background .3s;
}
.collab-item:hover { background: var(--crema-suave); }
.collab-item h3 { font-size: 16.5px; margin-bottom: 10px; position: relative; padding-left: 20px; }
.collab-item h3::before { content: ">"; position: absolute; left: 0; color: var(--mostaza); }
.collab-item p { font-size: 14px; color: var(--texto-suave); }

/* ---------- CTA final ---------- */
.final-cta { background: var(--antracita); color: var(--crema); }
.final-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: center; }
.final-copy h2 { color: var(--crema); }
.final-copy p { color: rgba(244,235,216,.8); max-width: 50ch; margin-bottom: 34px; }
.final-btns { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.final-media img { border-radius: var(--radius); height: 380px; width: 100%; object-fit: cover; }

/* ---------- Footer ---------- */
.site-footer { background: var(--crema); border-top: 0.5px solid var(--gris-borde); padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 50px; margin-bottom: 50px; }
.footer-logo { height: 54px; width: auto; margin-bottom: 22px; }
.site-footer h4 { font-size: 13px; letter-spacing: 1.6px; text-transform: uppercase; font-weight: 500; color: var(--mostaza); margin-bottom: 14px; }
.site-footer h4.mt { margin-top: 30px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; font-size: 14px; transition: color .25s; }
.site-footer a:hover { color: var(--mostaza); }
.site-footer p { font-size: 14px; }
.site-footer .small { font-size: 12px; color: var(--texto-suave); line-height: 1.6; margin-bottom: 12px; }
.social-row { display: flex; gap: 14px; margin-bottom: 10px; }
.social-row a { width: 38px; height: 38px; border: 0.5px solid var(--gris-borde); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: border-color .25s, color .25s, transform .25s; }
.social-row a:hover { border-color: var(--mostaza); color: var(--mostaza); transform: translateY(-3px); }
.social-row svg { width: 18px; height: 18px; }
.footer-legal { border-top: 0.5px solid var(--gris-borde); padding-top: 30px; }
.footer-legal .copyright { margin-top: 18px; font-weight: 500; color: var(--antracita); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid, .why-grid, .audience-inner, .teacher-grid, .final-inner { grid-template-columns: 1fr; gap: 50px; }
  .stats-grid, .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .collab-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding-top: 150px; }
  .hero-img-wrap img { height: 400px; }
  .teacher-media { max-width: 360px; }
  h2 { max-width: none; }
}
@media (max-width: 640px) {
  section { padding: 70px 0; }
  .stats-grid, .cards-grid, .collab-grid { grid-template-columns: 1fr; }
  .program-item { grid-template-columns: 1fr; gap: 12px; padding: 34px 0; }
  .program-num { font-size: 40px; }
  .program-time { text-align: left; }
  .main-nav {
    position: fixed; inset: 76px 0 auto 0;
    background: var(--crema); flex-direction: column; align-items: flex-start;
    padding: 26px 24px 34px; gap: 20px;
    border-bottom: 0.5px solid var(--gris-borde);
    transform: translateY(-130%); transition: transform .35s ease;
  }
  .main-nav.open { transform: translateY(0); }
  .nav-toggle { display: block; }
  .hero-badge { left: 12px; bottom: -18px; }
  .seal-30 { right: -8px; }
  .hero-ctas { gap: 18px; }
}
