/* ============================================================================
 * SPES JUR — vidriera institucional.
 * Tokens y sistema visual alineados al MANUAL DE IDENTIDAD VISUAL v1.0
 * (Alvarez Cordeyro). Paleta, tipografía y degradés oficiales.
 * Colores oficiales:
 *   Bordó profundo #3C131A  ·  Celeste claro #36A9E1
 *   Gris lino     #F5F2F0  ·  Negro        #000000
 * Tipografías: Cormorant (títulos/logo) + Inter (cuerpo/UI).
 * Para re-marcar, se tocan SOLO estas variables.
 * ========================================================================== */
:root {
  --bordo: #3c131a;         /* Bordó profundo — primario dominante */
  --bordo-80: #5a2731;      /* Bordó 80% — degradé monocolor (manual pág. 16) */
  --celeste: #36a9e1;       /* Celeste claro — primario / acento */
  --celeste-soft: #d9eefb;  /* aclarado de celeste (píldoras, fondos suaves) */
  --celeste-lightest: #ebf6fc; /* aclarado 90% del celeste oficial */  /* aclarado de celeste (píldoras, fondos suaves) */
  --lino: #f5f2f0;          /* Gris lino — neutro de apoyo */
  --lino-card: #fbf9f8;
  --negro: #000000;
  --ink: #1c1013;           /* texto sobre fondo claro (casi negro cálido) */
  --muted: #6f6266;
  --border: #e6dedb;
  --maxw: 1080px;
  --radius: 10px;
  /* Degradé institucional bordó -> celeste (manual pág. 16 y 33) */
  --bordo-celeste-mid: #387298; /* mezcla calculada celeste->bordo, no elegida a ojo */
  --grad-hero: radial-gradient(95% 85% at 72% 118%, var(--celeste) 0%, var(--bordo-celeste-mid) 22%, var(--bordo) 60%);
  --grad-bordo: linear-gradient(135deg, var(--bordo) 0%, var(--bordo-80) 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: var(--lino);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
h1, h2, h3, .title { font-family: "Cormorant", Georgia, serif; }

.btn {
  display: inline-block; background: var(--bordo); color: var(--lino);
  font-weight: 600; font-size: 0.95rem; padding: 11px 22px;
  border-radius: var(--radius); text-decoration: none; transition: opacity 0.15s;
}
.btn:hover { opacity: 0.9; }
.btn-ghost { background: transparent; color: var(--bordo); border: 1px solid var(--bordo); }

/* Logotipo */
.wordmark {
  font-family: "Cormorant", Georgia, serif; font-weight: 600;
  font-size: 1.6rem; letter-spacing: 0.14em; color: var(--bordo);
  text-decoration: none;
}

/* ============================================================================
 * HERO — sección oscura, fondo bordó con degradé al celeste (manual pág. 33).
 * ========================================================================== */
.hero {
  background: var(--grad-hero);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero-top {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px;
}
.hero .wordmark { color: var(--celeste); }
.hero-top .btn { background: var(--celeste); color: #fff; }
.hero-body { padding: 60px 24px 104px; position: relative; z-index: 1; }
.hero h1 {
  margin-top: 18px;
  font-size: clamp(2.8rem, 6.5vw, 4.6rem);
  font-weight: 600; line-height: 1.04; color: #fff;
}
.hero h1 .accent { display: block; color: var(--celeste); }
.hero .lead {
  margin-top: 22px; font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.84); max-width: 620px;
}
.hero .cta-row { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero .cta-row .btn { background: var(--celeste); color: #fff; }
.hero .cta-row .btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.55); }
.beta-pill {
  display: inline-block; background: rgba(217, 238, 251, 0.16); color: var(--celeste-lightest);
  font-size: 0.8rem; font-weight: 600; padding: 5px 13px; border-radius: 999px;
  letter-spacing: 0.02em; border: 1px solid rgba(217, 238, 251, 0.28);
}
/* Lenguaje lineal — líneas de distinto espesor (manual pág. 22) */
.lines {
  position: absolute; right: 28px; bottom: 40px; z-index: 1;
  display: flex; align-items: flex-end; gap: 7px; height: 74px; opacity: 0.9;
}
.lines span { display: block; width: 2px; height: 100%; background: var(--celeste); }
.lines span:nth-child(1) { height: 46%; }
.lines span:nth-child(2) { height: 72%; width: 3px; }
.lines span:nth-child(3) { height: 58%; }
.lines span:nth-child(4) { height: 100%; width: 4px; }
.lines span:nth-child(5) { height: 66%; }
.lines span:nth-child(6) { height: 84%; width: 3px; }
.lines span:nth-child(7) { height: 52%; }
@media (max-width: 640px) { .lines { display: none; } }

/* Header simple para páginas internas (términos, privacidad) */
.site-header { background: var(--lino); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; height: 64px; }

/* ============================================================================
 * Secciones claras (gris lino) — interfaz clara, ordenada (manual pág. 34).
 * ========================================================================== */
.section { padding: 64px 0; border-top: 1px solid var(--border); }
.section h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 600; color: var(--bordo); margin-bottom: 10px; }
.section .sub { color: var(--muted); max-width: 640px; margin-bottom: 36px; font-size: 1.08rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card {
  background: var(--lino-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.card h3 { font-size: 1.35rem; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.98rem; }
/* recurso lineal (celeste) en cada tarjeta */
.card .mark { display: inline-block; width: 28px; height: 3px; background: var(--celeste); border-radius: 2px; margin-bottom: 14px; }

/* CTA final — bordó dominante, degradé monocolor + acción celeste */
.cta-band { background: var(--grad-bordo); color: var(--lino); padding: 64px 0; }
.cta-band h2 { font-family: "Cormorant", Georgia, serif; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 600; }
.cta-band p { color: rgba(245, 242, 240, 0.82); margin: 14px 0 28px; max-width: 560px; }
.cta-band .btn { background: var(--celeste); color: #fff; }

/* Footer */
.site-footer { padding: 48px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.9rem; }
.site-footer .wordmark { font-size: 1.25rem; display: inline-block; margin-bottom: 12px; }
.site-footer .tagline { color: var(--ink); margin-bottom: 18px; }
.site-footer a { color: var(--bordo); }
.site-footer .links { margin: 16px 0; display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer .fineprint { margin-top: 16px; font-size: 0.82rem; }

/* Tarjetas-enlace de la familia Spes */
a.card { text-decoration: none; color: inherit; display: block; transition: border-color 0.15s, transform 0.15s; }
a.card:hover { border-color: var(--celeste); transform: translateY(-2px); }
