/* ════════════════════════════════════════════════════════════════════════
   LAUTARO DECURNEX — DESIGN SYSTEM
   Variables de marca + componentes compartidos en todo el sitio
═══════════════════════════════════════════════════════════════════════════ */

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

:root {
  /* Marca */
  --navy: #00133A;
  --blue: #006BFA;
  --blue-mid: #0052CC;
  --white: #FFFFFF;
  --off: #F4F6FA;
  --mid: #D1D9E6;
  --dark: #1A2E50;
  --muted: #4A6080;
  --text-soft: #8AAAD0;

  /* Estados */
  --success: #00864A;
  --warn-bg: #FFF3CD;
  --warn-border: #FFC107;
  --warn-text: #5C4400;
  --error: #C0392B;

  /* Layout */
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 1100px;
  --header-height: 70px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  background: var(--white);
  color: var(--dark);
  overflow-x: hidden;
  line-height: 1.6;
}

a { color: inherit; }

/* ── HEADER / NAV ── */
header.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 5vw;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-height);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--mid);
  transition: box-shadow .3s;
}
header.site-nav.scrolled { box-shadow: 0 4px 24px rgba(0,19,58,.1); }

.nav-logo { height: 38px; width: auto; display: block; }
.nav-logo-link { display: flex; align-items: center; }

.nav-links {
  display: flex; align-items: center; gap: 28px;
}
.nav-link {
  font-size: 14px; font-weight: 500; color: var(--muted);
  text-decoration: none; transition: color .2s;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--navy); }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-actions-mobile { display: none; }

.nav-login {
  font-size: 13px; font-weight: 600; color: var(--navy);
  text-decoration: none;
  padding: 8px 16px; border-radius: 7px;
  border: 1.5px solid var(--mid);
  transition: border-color .2s, background .2s;
  white-space: nowrap;
}
.nav-login:hover { border-color: var(--blue); background: rgba(0,107,250,.04); }

.nav-cta {
  background: var(--blue); color: white;
  padding: 9px 20px; border-radius: 7px;
  font-size: 13px; font-weight: 700; letter-spacing: .02em;
  text-decoration: none;
  transition: background .2s, transform .15s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--blue-mid); transform: translateY(-1px); }

.nav-burger {
  display: none;
  width: 36px; height: 36px;
  border: none; background: none; cursor: pointer;
  align-items: center; justify-content: center;
  color: var(--navy);
}

/* Mobile nav */
@media (max-width: 860px) {
  .nav-links { 
    position: fixed; top: var(--header-height); left: 0; right: 0;
    background: white; flex-direction: column; align-items: flex-start;
    padding: 20px 5vw; gap: 4px;
    border-bottom: 1px solid var(--mid);
    transform: translateY(-110%); opacity: 0;
    transition: transform .25s ease, opacity .2s ease;
    box-shadow: 0 8px 24px rgba(0,19,58,.08);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; }
  .nav-link { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--off); }
  .nav-actions { display: none; }
  .nav-links .nav-actions-mobile { display: flex; flex-direction: column; gap: 10px; width: 100%; padding-top: 12px; }
  .nav-burger { display: flex; }
}

/* ── FOOTER ── */
footer.site-footer {
  background: #000D25;
  padding: 48px 5vw 32px;
}
.footer-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px;
  margin-bottom: 32px;
}
.footer-brand img { height: 32px; margin-bottom: 14px; }
.footer-brand p { font-size: 13px; color: #5A7090; line-height: 1.7; max-width: 280px; }
.footer-col h4 {
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #7AB8FF; margin-bottom: 14px;
}
.footer-col a {
  display: block; font-size: 13px; color: #5A7090;
  text-decoration: none; margin-bottom: 10px; transition: color .2s;
}
.footer-col a:hover { color: var(--text-soft); }
.footer-bottom {
  max-width: var(--max-width); margin: 0 auto;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,.06);
  font-size: 12px; color: #3A5270; text-align: center; line-height: 1.7;
}

@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

/* ── PAGE HERO (reutilizable en páginas internas) ── */
.page-hero {
  background: var(--navy);
  padding: calc(var(--header-height) + 56px) 5vw 64px;
  text-align: center;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(0,107,250,.12) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-label {
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px; position: relative; z-index: 1;
}
.page-hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(30px, 4.5vw, 50px); font-weight: 400;
  color: white; line-height: 1.1; margin-bottom: 16px;
  position: relative; z-index: 1;
}
.page-hero h1 em { font-style: italic; color: var(--blue); }
.page-hero p {
  font-size: 16px; color: var(--text-soft); max-width: 560px; margin: 0 auto;
  line-height: 1.7; position: relative; z-index: 1;
}

/* ── GENERIC SECTION ── */
section.content-section { padding: 80px 5vw; }
.section-inner { max-width: var(--max-width); margin: 0 auto; }
.section-label {
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px;
}
.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(26px, 3.2vw, 40px); font-weight: 400;
  color: var(--navy); line-height: 1.15; margin-bottom: 16px;
}
.section-title em { font-style: italic; color: var(--blue); }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--blue); color: white;
  padding: 14px 28px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 700;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(0,107,250,.3);
  border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--blue-mid); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,107,250,.35); }

.btn-outline {
  border: 2px solid var(--mid); color: var(--navy);
  padding: 12px 26px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  transition: border-color .2s, transform .15s, background .2s;
}
.btn-outline:hover { border-color: var(--blue); background: rgba(0,107,250,.04); transform: translateY(-2px); }

.btn-wa {
  background: #25D366; color: white;
  padding: 14px 28px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 700;
  text-decoration: none; display: inline-flex; align-items: center; gap: 10px;
  transition: background .2s, transform .15s;
  box-shadow: 0 4px 20px rgba(37,211,102,.3);
}
.btn-wa:hover { background: #1ebe5a; transform: translateY(-2px); }

/* ── CARDS ── */
.card {
  background: white; border-radius: 16px; padding: 28px;
  border: 1.5px solid var(--mid);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover { border-color: var(--blue); transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,19,58,.08); }

/* ── UTILITIES ── */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.hidden { display: none !important; }

@media (max-width: 600px) {
  section.content-section { padding: 56px 5vw; }
  .page-hero { padding: calc(var(--header-height) + 40px) 5vw 48px; }
}

/* ── ONE-PAGER SECTION ANCHORS ── */
section[id] { scroll-margin-top: var(--header-height); }

/* ── PORTAL LOGIN ── */
.login-wrap {
  min-height: 100vh; background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  padding: calc(var(--header-height) + 40px) 24px 60px;
  position: relative; overflow: hidden;
}
.login-wrap::before { content:''; position:absolute; inset:0; background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(0,107,250,.12) 0%, transparent 70%); pointer-events:none; }
.login-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 20px; padding: 44px 40px; max-width: 420px; width: 100%; position: relative; z-index: 1; backdrop-filter: blur(8px); }
.login-card img { height: 36px; margin-bottom: 28px; }
.login-card h1 { font-family: 'DM Serif Display', serif; font-size: 26px; color: white; font-weight: 400; margin-bottom: 10px; }
.login-card p { font-size: 14px; color: var(--text-soft); line-height: 1.7; margin-bottom: 28px; }
.login-badge { display:inline-flex; align-items:center; gap:8px; background: rgba(255,193,7,.1); border:1px solid rgba(255,193,7,.3); color:#FFC107; font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; padding:6px 14px; border-radius:20px; margin-bottom:24px; }
.login-form-group { margin-bottom: 16px; }
.login-form-group label { display:block; font-size:12px; font-weight:600; color: var(--text-soft); margin-bottom:6px; }
.login-form-group input { width:100%; padding:12px 14px; border-radius:8px; border:1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.05); color:white; font-family:'Barlow',sans-serif; font-size:14px; outline:none; box-sizing: border-box; }
.login-form-group input::placeholder { color: rgba(255,255,255,.3); }
.login-form-group input:focus { border-color: var(--blue); }
.login-submit { width:100%; margin-top:8px; justify-content: center; }
.login-back { display:block; text-align:center; margin-top:24px; font-size:13px; color: var(--text-soft); text-decoration:none; }
.login-back:hover { color: white; }
