
:root{
  --brand:#0B3B70;
  --text:#0f172a;
  --muted:#64748b;
  --bg:#fff;
  --bg-alt:#f8fafc;
  --border:#e2e8f0;
  --card:#ffffff;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif;color:var(--text);background:var(--bg);line-height:1.5}
img{max-width:100%;display:block}
a{color:var(--brand);text-decoration:none}
.container{max-width:1100px;margin:0 auto;padding:0 16px}
.section{padding:64px 0}
.section-sm{padding:24px 0}
h1{font-size:40px;line-height:1.15;margin:0 0 8px}
h2{font-size:28px;line-height:1.2;margin:0}
p{margin:0 0 10px}
.muted{color:var(--muted)}
.list-plain{list-style:none;padding:0;margin:0}
.list-plain li{margin:6px 0}

.header{position:sticky;top:0;background:#fff;border-bottom:1px solid var(--border);z-index:50}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:18px;height:64px}
.brand{display:flex;align-items:center;gap:10px;color:var(--text)}
.nav{display:flex;align-items:center;gap:16px}
.nav a{color:var(--text)}
.nav a:hover{text-decoration:underline;text-underline-offset:4px}

.dropdown{position:relative;display:inline-flex;align-items:center;gap:4px}
.dropdown-menu{position:absolute;left:0;top:100%;margin-top:8px;min-width:240px;background:#fff;border:1px solid var(--border);border-radius:10px;padding:8px;display:none;box-shadow:0 10px 20px rgba(0,0,0,.06)}
.dropdown:hover .dropdown-menu{display:block}
.dropdown-menu a{display:block;padding:8px 10px;color:var(--text);border-radius:8px}
.dropdown-menu a:hover{background:var(--bg-alt)}

.grid{display:grid;gap:16px}
.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:900px){
  .grid-2,.grid-3{grid-template-columns:1fr}
  .header-inner{height:auto;padding:10px 0;flex-wrap:wrap}
}

.hero{background:linear-gradient(180deg,#f6f9ff,transparent)}
.hero-badge{display:inline-flex;align-items:center;gap:8px;background:#eef4ff;border:1px solid #dbeafe;color:#1e3a8a;border-radius:999px;padding:4px 10px;font-size:12px}
.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:18px}
.stat .num{font-weight:800;font-size:28px}
.stat .label{font-size:12px;color:var(--muted)}

.card{background:var(--card);border:1px solid var(--border);border-radius:12px;padding:12px}

.badge-date{display:grid;grid-template-rows:auto auto;align-items:center;justify-items:center;width:44px;height:44px;border-radius:10px;background:#e8f0ff;color:#0b3b70;font-weight:800}
.badge-date .d{line-height:1;font-size:18px;margin-top:4px}
.badge-date .m{font-size:12px;letter-spacing:.6px}

.dark-section{background:#0b2142;color:#fff}
.dark-section .card{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.18);color:#fff}
.dark-section .tagline{color:#cfe0ff}
.dark-section h2{color:#fff}

.btn{display:inline-flex;align-items:center;justify-content:center;padding:8px 14px;border-radius:10px;border:1px solid transparent;background:#fff;color:var(--text);cursor:pointer;font-weight:600}
.btn-primary{background:var(--brand);color:#fff}
.btn-outline{background:transparent;border:1px solid var(--border)}

.form input,.form select,.form textarea{width:100%;padding:10px;border:1px solid var(--border);border-radius:10px;outline:none}
.form input:focus,.form select:focus,.form textarea:focus{box-shadow:0 0 0 3px rgba(11,59,112,.12)}

.footer .cols{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
@media (max-width:900px){.footer .cols{grid-template-columns:1fr 1fr}}
@media (max-width:600px){.footer .cols{grid-template-columns:1fr}}

/* fix7: prevent logo stretch */
.header .brand img,
.header .brand .custom-logo,
.custom-logo,
.custom-logo-link img {
  height: 36px;
  max-height: 36px;
  width: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

/* fix7: prevent logo stretch */
.header .brand img,
.header .brand .custom-logo,
.custom-logo,
.custom-logo-link img {
  height: 36px;
  max-height: 36px;
  width: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

/* fix7: prevent logo stretch */
.header .brand img,
.header .brand .custom-logo,
.custom-logo,
.custom-logo-link img {
  height: 36px;
  max-height: 36px;
  width: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

/* fix7: prevent logo stretch (custom-logo y fallback) */
.header .brand img,
.header .brand .custom-logo,
.custom-logo,
.custom-logo-link img {
  height: 36px;
  max-height: 36px;
  width: auto;
  object-fit: contain;
}

/* hotfix: logo proporcionado + límite de ancho */
.custom-logo,
.custom-logo-link img,
.header .brand img {
  height: auto !important;      /* mantener proporción */
  width:  auto !important;      /* evitar fills */
  max-height: 28px !important;  /* <-- AJUSTÁ este alto final (26–36) */
  max-width: 200px !important;  /* <-- tope horizontal para que no se “alargue” */
  object-fit: contain !important;
  display: block;
  flex: 0 0 auto;
}

/* hotfix: logo 50% más chico y sin estirado */
.custom-logo,
.custom-logo-link img,
.header .brand img {
  height: auto !important;      /* mantiene proporción */
  width:  auto !important;      /* evita fill horizontal */
  max-height: 18px !important;  /* antes 36px => mitad */
  max-width: 100px !important;  /* tope horizontal para que no se “alargue” */
  object-fit: contain !important;
  display: block;
  flex: 0 0 auto !important;    /* flex no lo expande */
}

/* si el logo es SVG, mismo tratamiento */
.custom-logo svg,
.custom-logo-link svg {
  height: 18px !important;
  width: auto !important;
  max-width: 100px !important;
}

/* hotfix: logo +50% (27px alto) y sin estirado */
.custom-logo,
.custom-logo-link img,
.header .brand img {
  height: auto !important;
  width:  auto !important;
  max-height: 27px !important;   /* <- antes 18px */
  max-width: 150px !important;   /* <- antes 100px */
  object-fit: contain !important;
  display: block;
  flex: 0 0 auto !important;
}

/* si el logo es SVG, mismo tratamiento */
.custom-logo svg,
.custom-logo-link svg {
  height: 27px !important;
  width: auto !important;
  max-width: 150px !important;
}

/* hotfix: logo 36px y sin estirado */
.custom-logo,
.custom-logo-link img,
.header .brand img {
  height: auto !important;
  width:  auto !important;
  max-height: 36px !important;   /* alto final */
  max-width: 220px !important;   /* tope horizontal */
  object-fit: contain !important;
  display: block;
  flex: 0 0 auto !important;
}

/* si el logo es SVG, mismo tratamiento */
.custom-logo svg,
.custom-logo-link svg {
  height: 36px !important;
  width: auto !important;
  max-width: 220px !important;
}

/* hotfix: logo 48px y sin estirado */
.custom-logo,
.custom-logo-link img,
.header .brand img {
  height: auto !important;
  width:  auto !important;
  max-height: 48px !important;   /* alto final */
  max-width: 300px !important;   /* tope horizontal */
  object-fit: contain !important;
  display: block;
  flex: 0 0 auto !important;
}

/* si el logo es SVG, mismo tratamiento */
.custom-logo svg,
.custom-logo-link svg {
  height: 48px !important;
  width: auto !important;
  max-width: 300px !important;
}
