/* ============================================================
   StudLink · Sitio corporativo
   Marca: Navy #0E223A · Emerald #1E7F72 · Copper #C78A3B
   sobre papel cálido, para conectar con la app y alejarse del
   "SaaS frío" que no encaja con el mundo del Jockey Club.
   ============================================================ */

:root {
  --navy: #0e223a;
  --navy-700: #1c3450;
  --emerald: #1e7f72;
  --emerald-600: #19685d;
  --emerald-100: #ddecea;
  --copper: #c78a3b;
  --copper-100: #f7ede2;
  --paper: #faf8f4;
  --paper-2: #f3efe7;
  --line: #e6ded0;
  --ink-soft: #5a6675;
  --ink-faint: #8b95a0;
  --white: #ffffff;

  --font-display: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --wrap: 1140px;
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }

a { color: inherit; text-decoration: none; }

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

/* ---------- Eyebrow (etiqueta superior de sección) ---------- */
.eyebrow {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--emerald);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ''; width: 24px; height: 2px; background: var(--emerald);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  padding: 13px 26px; border-radius: 12px; border: 1.5px solid transparent;
  cursor: pointer; transition: all .18s ease; white-space: nowrap;
}
.btn-primary { background: var(--emerald); color: var(--white); }
.btn-primary:hover { background: var(--emerald-600); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-on-navy { background: var(--white); color: var(--navy); }
.btn-on-navy:hover { background: var(--emerald); color: var(--white); transform: translateY(-1px); }
.btn-ghost-navy { background: transparent; color: var(--white); border-color: rgba(255,255,255,.25); }
.btn-ghost-navy:hover { border-color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,248,244,.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { width: 30px; height: 30px; }
.brand span { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-size: 15px; font-weight: 500; color: var(--ink-soft); transition: color .15s; }
.nav a:hover, .nav a.active { color: var(--navy); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-actions .login { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.header-actions .login:hover { color: var(--emerald); }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 72px; position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(38px, 6vw, 64px); max-width: 15ch; margin: 22px 0; }
.hero h1 em { font-style: normal; color: var(--emerald); }
.hero .lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--ink-soft); max-width: 52ch; margin-bottom: 32px; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-symbol {
  position: absolute; right: -80px; top: 50%; transform: translateY(-50%);
  width: 520px; height: 520px; opacity: .06; z-index: 1; pointer-events: none;
}

/* ---------- Track line (firma: hilo continuo tipo pista) ---------- */
.track-sep { display: block; width: 100%; height: 2px; border: none; background:
  repeating-linear-gradient(90deg, var(--line) 0 16px, transparent 16px 24px); margin: 0; }

/* ---------- Secciones ---------- */
.section { padding: 76px 0; }
.section-head { max-width: 60ch; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin: 16px 0 14px; }
.section-head p { font-size: 18px; color: var(--ink-soft); }
.section.navy { background: var(--navy); color: var(--white); }
.section.navy .section-head p { color: #b3bcc7; }
.section.navy .eyebrow { color: var(--copper); }
.section.navy .eyebrow::before { background: var(--copper); }
.section.paper2 { background: var(--paper-2); }

/* ---------- Barra de confianza ---------- */
.trust { padding: 30px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.trust .wrap { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; justify-content: center; }
.trust p { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-faint); }
.trust .marks { display: flex; gap: 36px; flex-wrap: wrap; align-items: center; }
.trust .marks span { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--ink-soft); opacity: .7; }

/* ---------- Grid de pilares / módulos ---------- */
.grid { display: grid; gap: 22px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px;
}
.section.navy .card { background: var(--navy-700); border-color: rgba(255,255,255,.08); }
.card .icon {
  width: 46px; height: 46px; border-radius: 11px; background: var(--emerald-100);
  display: grid; place-items: center; margin-bottom: 18px; color: var(--emerald);
}
.section.navy .card .icon { background: rgba(30,127,114,.2); }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 15.5px; }
.section.navy .card p { color: #aeb8c4; }

/* ---------- Cómo funciona (firma: flujo de roles) ---------- */
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; }
.flow-step { padding: 0 26px; position: relative; }
.flow-step:not(:last-child)::after {
  content: ''; position: absolute; right: -1px; top: 34px; width: 2px; bottom: 20px;
  background: var(--line);
}
.flow-num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--white);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 18px;
  margin-bottom: 20px;
}
.flow-step:nth-child(2) .flow-num { background: var(--emerald); }
.flow-step:nth-child(3) .flow-num { background: var(--copper); }
.flow-step h3 { font-size: 19px; margin-bottom: 10px; }
.flow-step p { color: var(--ink-soft); font-size: 15.5px; }
.flow-role { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); margin-bottom: 6px; display: block; }

/* ---------- Beneficio por rol ---------- */
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.role-card { border-left: 3px solid var(--emerald); padding: 6px 0 6px 22px; }
.role-card:nth-child(2) { border-color: var(--copper); }
.role-card:nth-child(3) { border-color: var(--navy); }
.role-card h4 { font-size: 18px; margin-bottom: 8px; }
.role-card p { color: var(--ink-soft); font-size: 15px; }

/* ---------- Testimonio ---------- */
.quote { max-width: 40ch; }
.quote blockquote { font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 3vw, 30px); line-height: 1.3; letter-spacing: -0.01em; }
.quote .attr { margin-top: 22px; font-size: 15px; color: var(--ink-soft); }
.quote .attr strong { color: var(--navy); font-weight: 700; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 22px 0; display: flex; justify-content: space-between;
  align-items: center; gap: 16px; font-family: var(--font-display); font-weight: 700; font-size: 18px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { color: var(--emerald); font-size: 24px; transition: transform .2s; flex-shrink: 0; }
.faq-item[open] summary .plus { transform: rotate(45deg); }
.faq-item .answer { padding: 0 0 22px; color: var(--ink-soft); font-size: 16px; max-width: 68ch; }

/* ---------- CTA final ---------- */
.cta-band { background: var(--navy); color: var(--white); border-radius: 24px; padding: 56px; text-align: center; }
.cta-band h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 16px; max-width: 20ch; margin-left: auto; margin-right: auto; }
.cta-band p { color: #b3bcc7; font-size: 18px; margin-bottom: 30px; max-width: 46ch; margin-left: auto; margin-right: auto; }

/* ---------- Formulario contacto ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--navy); }
.field input, .field textarea, .field select {
  font-family: var(--font-body); font-size: 15px; padding: 13px 15px;
  border: 1.5px solid var(--line); border-radius: 11px; background: var(--white); color: var(--navy);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--emerald); }
.field textarea { resize: vertical; min-height: 130px; }

.contact-side .channel { display: flex; gap: 14px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-side .channel .ic { width: 42px; height: 42px; border-radius: 11px; background: var(--emerald-100); color: var(--emerald); display: grid; place-items: center; flex-shrink: 0; }
.contact-side .channel h4 { font-size: 16px; margin-bottom: 3px; }
.contact-side .channel p, .contact-side .channel a { font-size: 15px; color: var(--ink-soft); }
.contact-side .channel a:hover { color: var(--emerald); }

/* ---------- Valores ---------- */
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px 44px; }
.value-item { display: flex; gap: 16px; }
.value-item .vnum { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--emerald); flex-shrink: 0; }
.value-item h4 { font-size: 18px; margin-bottom: 7px; }
.value-item p { color: var(--ink-soft); font-size: 15.5px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #aeb8c4; padding: 56px 0 30px; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer .brand span { color: var(--white); }
.site-footer .fdesc { margin-top: 16px; font-size: 15px; max-width: 34ch; }
.site-footer h5 { color: var(--white); font-family: var(--font-display); font-size: 14px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 11px; }
.site-footer a { font-size: 15px; }
.site-footer a:hover { color: var(--white); }
.site-footer .legal { padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
  .grid.cols-3, .grid.cols-2, .flow, .roles, .values, .form-grid { grid-template-columns: 1fr; }
  .flow-step { padding: 0 0 30px; }
  .flow-step:not(:last-child)::after { display: none; }
  .contact-cols { grid-template-columns: 1fr !important; }
  .hero-symbol { width: 320px; right: -120px; opacity: .04; }
  .cta-band { padding: 40px 24px; }
  .site-footer .cols { grid-template-columns: 1fr; gap: 30px; }
  .header-actions .btn { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; transition: none !important; }
}
