/* ==========================================================================
   Von Wobeser M&A Moot — landing
   Paleta: rojo corporativo, negro, blanco. Serif para titulares, sans para UI.
   ========================================================================== */

:root {
  --red: #b8132b;
  --red-dark: #8f0f21;
  --ink: #15181c;
  --ink-soft: #2a2f36;
  --paper: #ffffff;
  --paper-soft: #f4f4f2;
  --line: #e3e3df;
  --muted: #6b7280;
  --muted-dark: #9aa0a6;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1160px;
  --radius: 4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* ----------------------- Animaciones de scroll ------------------------ */
.js-anim .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
.js-anim .reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js-anim .reveal { opacity: 1 !important; transform: none !important; transition: none; }
}

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

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

a { color: inherit; }

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

.text-red { color: var(--red); }

/* ------------------------------- Buttons -------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  padding: 16px 28px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 11px 18px; font-size: 0.72rem; }

.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }

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

.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline-light:hover { background: #fff; color: var(--ink); border-color: #fff; }

.ico-dl { font-size: 1.05em; line-height: 1; }

/* ------------------------------- Header --------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-decoration: none;
  line-height: 1;
}
.brand-img { height: 48px; width: auto; display: block; }
.brand-edition {
  font-size: 0.48rem;
  letter-spacing: 0.16em;
  color: var(--red);
  font-weight: 600;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink);
  transition: color .2s;
}
.main-nav a:not(.btn):hover { color: var(--red); }
.main-nav a.btn-primary { color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--ink);
  transition: transform .25s, opacity .2s;
}

/* -------------------------------- Hero ---------------------------------- */
.hero { background: var(--paper); }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
.hero-copy {
  align-self: center;
  padding: 72px 56px 72px max(24px, calc(50vw - 580px));
}
.hero-logo {
  height: 200px;
  width: auto;
  display: block;
  margin: 0 0 30px;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(3rem, 7vw, 5.4rem);
  line-height: 0.98;
  margin: 0 0 22px;
  letter-spacing: -0.01em;
}
.hero-lead {
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0 0 18px;
}
.hero-text {
  color: var(--ink);
  font-size: 1rem;
  margin: 0 0 32px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-media { display: flex; align-self: stretch; }
.hero-image {
  position: relative;
  width: 100%;
  min-height: 580px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(10,12,15,.12) 0%, rgba(10,12,15,.28) 45%, rgba(10,12,15,.85) 100%),
    url('../img/hero/moot-image-ok.png') center/cover no-repeat;
  display: flex;
  align-items: flex-end;
  /* Corte diagonal en el borde izquierdo */
  clip-path: polygon(11% 0, 100% 0, 100% 100%, 0 100%);
}
.hero-image-overlay {
  position: relative;
  padding: 26px 34px 30px 26px;
  border-left: 3px solid var(--red);
  margin: 0 0 0 64px;   /* libre de la diagonal del borde izquierdo */
}
.hero-overlay-list {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1.18;
  color: #fff;
  margin: 0 0 18px;
}
.hero-overlay-cap {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,.75);
  margin: 0;
  line-height: 1.5;
}

/* Countdown */
.countdown-bar { background: var(--ink); }
.countdown-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 24px;
  flex-wrap: wrap;
}
.countdown-label {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}
.countdown { display: flex; gap: 48px; }
.cd-unit { text-align: center; min-width: 74px; }
.cd-num {
  display: block;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 2.7rem;
  color: #fff;
  line-height: 1;
}
.cd-lbl {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: var(--muted-dark);
  margin-top: 9px;
}

/* ------------------------------ Sections -------------------------------- */
.section { padding: 84px 0; }
.section-soft { background: var(--paper-soft); }
.section-dark { background: var(--ink); color: #fff; }

.section-head { margin-bottom: 56px; }
.section-head.center { text-align: center; }

.section-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.1;
  margin: 0;
  color: var(--ink);
}
.section-title.light { color: #fff; }
.section-title.sm { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-bottom: 28px; }
.section-sub {
  margin: 12px 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

/* Two column ¿qué es? */
.two-col {
  display: grid;
  grid-template-columns: 0.8fr 1.4fr;
  gap: 56px;
}
.lead-statement {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 22px;
}
.two-col-main p { color: var(--ink-soft); margin: 0; }
.two-col-main p.lead-statement { margin-bottom: 26px; }

/* Grids */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
}
.grid-4.divided > * { border-left: 1px solid var(--line); padding-left: 28px; }
.grid-4.divided > *:first-child { border-left: 0; padding-left: 0; }

.feature { text-align: center; }
.feature-ico {
  width: 58px; height: 58px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--red);
}
.feature-ico i { font-size: 1.9rem; color: #fff; }
.feature p { margin: 0; color: rgba(255,255,255,.82); font-size: 0.92rem; }

.reason { text-align: center; }
.reason-ico { margin: 0 auto 18px; height: 50px; display: grid; place-items: center; }
.reason-ico i { font-size: 2.8rem; color: var(--red); }
.reason h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.12rem;
  margin: 0 0 10px;
}
.reason p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* Steps */
.steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  position: relative;
}
.step { position: relative; z-index: 1; padding-top: 0; }
/* Conector de un ícono al siguiente — siempre alineado al centro del ícono */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 31px;            /* centro vertical del ícono (62px / 2) */
  left: 70px;           /* borde derecho del ícono + aire del aro */
  right: -20px;         /* cruza el gap hasta el ícono siguiente */
  height: 2px;
  background: var(--line);
  z-index: 0;
}
.step-ico {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: var(--red);
  display: grid; place-items: center;
  margin-bottom: 22px;
  box-shadow: 0 0 0 8px var(--paper-soft);
}
.step-ico i { font-size: 1.9rem; color: #fff; }
.step-num { display: block; font-size: 0.72rem; color: var(--muted); font-weight: 700; letter-spacing: 0.1em; margin-bottom: 4px; }
.step h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  margin: 0 0 8px;
}
.step p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* Split layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.who-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.who-list li { display: flex; gap: 16px; align-items: flex-start; }
.who-list > li > i {
  font-size: 1.7rem; color: var(--ink);
  flex: none; width: 32px; text-align: center; margin-top: 1px;
}
.who-list strong { display: block; font-size: 1rem; }
.who-list span { color: var(--muted); font-size: 0.9rem; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0 0 0 8px; }
.timeline li {
  position: relative;
  padding: 0 0 26px 30px;
  border-left: 2px solid var(--line);
}
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.tl-dot {
  position: absolute;
  left: -8px; top: 3px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--muted);
}
.tl-dot-final { border-color: var(--red); background: var(--red); }
.tl-body strong { display: block; font-size: 0.98rem; }
.tl-body span { color: var(--muted); font-size: 0.9rem; }

/* Evaluadores / universidades */
.badge-soon {
  display: inline-block;
  margin-top: 16px;
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 0.82rem;
  border-bottom: 2px solid var(--red);
  padding-bottom: 3px;
}
/* Slider de universidades: 2 visibles, resto oculto */
.uni-slider {
  display: flex;
  align-items: center;
  gap: 20px;
}
.uni-viewport { overflow: hidden; flex: 1; min-width: 0; }
.uni-track {
  list-style: none; margin: 0; padding: 0;
  display: flex;
  transition: transform .5s ease;
}
.uni-track li {
  flex: 0 0 50%;          /* 2 logos visibles */
  box-sizing: border-box;
  min-width: 0;           /* evita que la imagen ensanche el item (overflow en mobile) */
  margin: 0; padding: 0 28px;
  height: 130px;
  display: flex; align-items: center; justify-content: center;
}
.uni-track img {
  max-width: 100%; max-height: 96px;
  object-fit: contain;
  opacity: 0.75;
}
.uni-arrow {
  flex: 0 0 auto;
  align-self: center;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 50%;
  color: var(--ink);
  font-size: 1.5rem; line-height: 1;
  padding: 0;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s, border-color .2s;
}
.uni-arrow:active { transform: scale(.94); }
.uni-arrow:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 0.98rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--red);
  font-weight: 400;
  line-height: 1;
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 22px 20px; }
.faq-body p { margin: 0; color: var(--muted); font-size: 0.94rem; }

/* CTA final */
.cta-final {
  position: relative;
  background:
    linear-gradient(90deg, rgba(15,18,22,.97) 0%, rgba(15,18,22,.82) 55%, rgba(15,18,22,.55) 100%),
    url('../img/hero/moot-image-ok.png') center/cover no-repeat;
  color: #fff;
}
.cta-inner { padding: 64px 24px; }
.cta-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  margin: 0 0 12px;
}
.cta-text { color: rgba(255,255,255,.8); margin: 0 0 28px; max-width: 540px; }

/* Footer */
.site-footer { background: #0e1116; color: rgba(255,255,255,.7); padding: 30px 0; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-logo-img {
  height: 26px;
  width: auto;
  display: block;
  margin-bottom: 10px;
}
.footer-tag { font-size: 0.62rem; letter-spacing: 0.12em; color: var(--muted-dark); }
.footer-social { display: flex; gap: 16px; }
.footer-social a { display: grid; place-items: center; color: rgba(255,255,255,.7); text-decoration: none; transition: color .2s; }
.footer-social a i { font-size: 1.2rem; }
.footer-social a:hover { color: #fff; }
.footer-url a { color: rgba(255,255,255,.7); text-decoration: none; font-size: 0.82rem; }
.footer-url a:hover { color: #fff; }

/* ============================== Responsive ============================== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 56px 24px 36px; }
  .hero-logo { height: 150px; }
  .hero-image { min-height: 340px; clip-path: none; }
  .two-col { grid-template-columns: 1fr; gap: 24px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .grid-4.divided > * { border-left: 0; padding-left: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
  .step::after { display: none; }
  .split { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 88px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
    box-shadow: 0 16px 24px rgba(0,0,0,.06);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .main-nav .btn { margin-top: 14px; }
  .countdown-inner { justify-content: center; }
  .countdown { gap: 22px; }
}

@media (max-width: 560px) {
  .section { padding: 60px 0; }
  .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero-overlay-list { font-size: 1.4rem; }

  /* Countdown más grande en mobile */
  .countdown-inner { gap: 16px; }
  .countdown-label { font-size: 0.84rem; width: 100%; text-align: center; }
  .countdown { gap: 18px; width: 100%; justify-content: space-between; }
  .cd-num { font-size: 2.3rem; }
  .cd-lbl { font-size: 0.6rem; }
  .cd-unit { min-width: 0; flex: 1; }

  /* Slider: menos padding y flechas más chicas para que quepan */
  .uni-slider { gap: 8px; }
  .uni-track li { padding: 0 10px; height: 110px; }
  .uni-track img { max-height: 80px; }
  .uni-arrow { width: 36px; height: 36px; font-size: 1.3rem; }
}
