/* Base variables and resets */
:root {
  --color-bg: #182951;
  --color-primary: #182951;
  --color-secondary: hsl(150, 23%, 95%);
  --color-accent: #ffb703;
  --color-info: #46b2ff;
  --color-success: #1dbf1d;
  --color-danger: #e53935;
  --color-outline: #7eea7e;
  --color-text: #ffffff;
  --color-text-dim: #e0e0e0;
  --shadow-1: 0 4px 12px rgba(0, 0, 0, .25);
  --shadow-2: 0 10px 24px rgba(0, 0, 0, .35);
  --radius: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: Tahoma, Verdana, Segoe, sans-serif;
  font-size: 12px;
  line-height: 1.6;
}

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

a { color: #cde5ff; text-decoration: none; }

a:hover { text-decoration: underline; }

/* Accessibility */
.skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}

.skip-link:focus {
  left: 8px; top: 8px; width: auto; height: auto; padding: 8px 12px; background: #000; color: #fff; border-radius: 6px; z-index: 1000;
}

/* Layout utilities */
.container { width: min(1100px, 92%); margin-inline: auto; }
.flex { display: flex; gap: 16px; }
.between { justify-content: space-between; }
.center-v { align-items: center; }

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

/* Headings */
.h1, .h2, .h3 { font-weight: bold; margin: 0 0 8px; }
.h1 { font-size: 14px; letter-spacing: .3px; }
.h2 { font-size: 14px; letter-spacing: .2px; }
.h3 { font-size: 14px; }

/* Text helpers */
.lead { color: var(--color-text-dim); }
.text-accent { color: var(--color-accent); }
.text-info { color: var(--color-info); }
.text-success { color: var(--color-success); }
.text-danger { color: var(--color-danger); }
.text-dim { color: var(--color-text-dim); }
.link { color: var(--color-info); }
.link:hover { color: #8cd0ff; }
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .2);
}

/* Header and navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, .15);
  backdrop-filter: blur(6px);
  background: linear-gradient(90deg, rgba(24, 41, 81, .92), rgba(17, 29, 58, .92));
  box-shadow: var(--shadow-1);
}

.brand { display: flex; align-items: center; gap: 10px; padding: 10px 0; color: #fff; }
.brand-text { font-weight: bold; letter-spacing: .5px; }

.logo { width: 40px; height: 40px; }
.logo--sm { width: 32px; height: 32px; }

.site-nav { position: relative; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .4);
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
}

/* Focus visible */
.nav-toggle:focus, .nav-menu a:focus { outline: 3px solid var(--color-outline); outline-offset: 2px; }

.nav-menu { display: flex; list-style: none; gap: 14px; margin: 0; padding: 0; }
.nav-menu li { position: relative; }
.nav-menu a {
  display: block;
  padding: 12px 10px;
  border-radius: 8px;
  transition: transform .1s ease, background .2s ease;
}
.nav-menu a:hover, .nav-menu a:focus { background: rgba(255, 255, 255, .12); transform: translateY(-1px); }

/* Hero */
.hero {
  padding: 56px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, .08) 0, rgba(255, 255, 255, 0) 40%),
    radial-gradient(circle at 80% 0%, rgba(255, 255, 255, .06) 0, rgba(255, 255, 255, 0) 35%),
    linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0));
}

/* Sections */
.features { padding: 32px 0; }
.main-section { padding: 28px 0; }
.section { margin-bottom: 24px; }

/* Cards */
.card {
  background: rgba(0, 0, 0, .18);
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: var(--shadow-1);
  transition: transform .12s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.card .h2 { color: #fff; }
.card .link { color: var(--color-info); }

/* Buttons */
.btn {
  display: inline-block; padding: 10px 16px; border-radius: 10px;
  border: 2px solid transparent; color: #fff; cursor: pointer;
  box-shadow: var(--shadow-1); transition: transform .08s ease, filter .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
  background: #0f1a3a; /* oscuro para alto contraste con texto blanco */
}

/* Icons & misc */
.icon {
  width: 50px; height: 50px; display: inline-flex; align-items: center; justify-content: center; vertical-align: middle;
  margin-right: 8px; border-radius: 8px; background: rgba(0, 0, 0, .18); padding: 4px;
}
.icon svg, .icon > svg { width: 100%; height: 100%; display: block; fill: currentColor; }
.icon img, .icon > img { width: 100%; height: 100%; object-fit: contain; display: block; }
.icon--beneficios, .icon--transparencia, .icon--solidarismo, .icon--credito, .icon--ahorro, .icon--convenios { filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .35)); }

/* Ensure global img max-width doesn't shrink inline icon images */
.icon img { max-width: none; }

/* Front-page specific: ensure icons keep intended size on portada */
.front .icon, .hero .icon, .features .icon, .card .icon {
  width: 50px !important;
  height: 50px !important;
  min-width: 50px !important;
  min-height: 50px !important;
}
.front .icon svg, .hero .icon svg, .features .icon svg, .card .icon svg {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  max-width: none !important;
  max-height: none !important;
}
.front .icon img, .hero .icon img, .features .icon img, .card .icon img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  max-width: none !important;
}

/* Rest of CSS continues... */
