/* gov.css v3.0 – WebSIC Premium Estabilizado */
:root {
  --verde: #387E32;
  --gris: #3C3C3B;
  --amarillo: #FACD3C;
  --amarillo-brillante: #FFD95E;
  --bg: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --card: #f8fafc;
  --border-color: #e2e8f0;
  --radius: 12px;
  --container: 1200px;
  --shadow: 0 4px 20px rgba(0,0,0,0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a; --text: #f1f5f9; --muted: #94a3b8; --card: #1e293b; --border-color: #334155;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--verde);
  margin-bottom: 1rem;
}

h1 { font-size: 2.25rem; letter-spacing: -0.02em; }
h2 { font-size: 1.8rem; letter-spacing: -0.01em; }
h3 { font-size: 1.4rem; }

a { color: var(--verde); text-decoration: none; transition: 0.2s; }
a:hover { color: #174F1A; }

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 1rem; }

/* Header & Banner */
.gov-banner { background: #3366CC; color: #fff; font-size: 0.85rem; }
.gov-banner__inner { max-width: var(--container); margin: 0 auto; padding: 0.6rem 1rem; display: flex; justify-content: space-between; align-items: center; min-height: 52px; }
.logo-co { height: 30px; width: auto; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2)); }
.header-tools { display: flex; align-items: center; gap: 0.75rem; }
.accesibilidad-controles { display: flex; gap: 0.5rem; }

.gov-banner .btn-ghost {
    background: transparent !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}
.gov-banner .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: #fff !important;
}

.site-header { 
  background: linear-gradient(90deg, var(--amarillo), var(--amarillo-brillante));
  border-bottom: 3px solid var(--verde);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.site-header__inner { max-width: var(--container); margin: 0 auto; padding: 0.6rem 1rem; display: flex; justify-content: space-between; align-items: center; }
.brand { display: flex; align-items: center; gap: 1.25rem; text-decoration: none; }
.brand__img { height: 60px !important; width: auto !important; transition: transform 0.3s ease; }
.brand:hover .brand__img { transform: scale(1.05); }
.brand__name { font-weight: 800; color: var(--gris); font-size: 1.5rem !important; letter-spacing: -0.02em; }

.main-nav ul { list-style: none; display: flex; gap: 0.25rem; }
.main-nav a { padding: 0.5rem 0.8rem; border-radius: 8px; color: var(--gris); font-weight: 700; font-size: 0.9rem; }
.main-nav a:hover { background: rgba(255,255,255,0.3); }

/* Hero Carousel */
.hero-banner { position: relative; margin: 1.5rem auto 3rem; border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.carousel-container { position: relative; width: 100%; height: 420px; background: #000; overflow: hidden; }
.carousel-container .slide { position: absolute; inset: 0; display: none !important; transition: opacity 1s ease-in-out; }
.carousel-container .slide.active { display: block !important; }
.carousel-container img { width: 100%; height: 100%; object-fit: cover; }

.hero-nav-btn { 
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 50;
  width: 44px; height: 44px; background: rgba(0,0,0,0.2); color: #fff;
  border: none; border-radius: 50%; cursor: pointer; font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center; transition: 0.3s;
}
.hero-nav-btn:hover { background: var(--verde); }
.hero-prev { left: 1rem; }
.hero-next { right: 1rem; }

.dots-container { position: absolute; bottom: 1.25rem; left: 0; right: 0; display: flex; justify-content: center; gap: 0.5rem; z-index: 50; }
.dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; padding: 0; }
.dot[aria-current="true"] { background: #fff; transform: scale(1.2); }

/* Objectives Section */
.objectives-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.objective-card { 
  background: var(--card); border: 1px solid var(--border-color); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow); border-top: 4px solid var(--verde);
  transition: 0.3s;
}
.objective-card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,0.1); }
.icon-circle { width: 50px; height: 50px; border-radius: 50%; background: rgba(56, 126, 50, 0.1); color: var(--verde); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; margin-bottom: 1rem; }
h3 { margin-bottom: 1rem; color: var(--verde); font-weight: 700; }

/* Enlaces de Interes (Carrusel) */
.entity-links-section { padding: 3rem 0; }
.links-carousel { position: relative; display: flex; align-items: center; }
.links-carousel-track {
  display: flex; gap: 1.25rem; overflow-x: auto; scroll-behavior: smooth;
  padding: 1rem 0.5rem; scrollbar-width: none;
  scroll-snap-type: x mandatory;
}
.links-carousel-track::-webkit-scrollbar { display: none; }

.link-card {
  display: flex !important; flex: 0 0 260px; min-height: 100px;
  background: #fff; border: 1px solid var(--border-color); border-radius: 10px;
  padding: 1.25rem; text-align: center; align-items: center; justify-content: center;
  font-weight: 700; color: var(--verde); box-shadow: var(--shadow);
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  scroll-snap-align: center;
}
.link-card:hover { transform: scale(1.03); border-color: var(--verde); box-shadow: 0 8px 25px rgba(56, 126, 50, 0.12); }

.links-nav-btn {
  width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid var(--border-color);
  color: var(--verde); font-size: 1.5rem; cursor: pointer; z-index: 10;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: 0.3s;
}
.links-nav-btn:hover { background: var(--verde); color: #fff; transform: scale(1.1); }
.links-nav-btn.prev { margin-right: -20px; }
.links-nav-btn.next { margin-left: -20px; }

/* MODOS DE ACCESIBILIDAD */
body.high-contrast {
    background-color: #000 !important;
    color: #fff !important;
}
body.high-contrast :not(.btn-ghost):not(.brand__img):not(.logo-co) {
    background-color: #000 !important;
    color: #ffff00 !important;
    border-color: #ffff00 !important;
}
body.high-contrast a { color: #00ffff !important; text-decoration: underline !important; }
body.high-contrast .site-header { background: #000 !important; border-bottom: 2px solid #ffff00 !important; }
body.high-contrast .btn.primary { background: #ffff00 !important; color: #000 !important; }
body.high-contrast .link-card { border: 2px solid #ffff00 !important; }

/* Footer Mejorado Compacto */
footer.site-footer {
  background: #1a1a1a; color: #94a3b8; padding: 2rem 1rem 1rem;
  border-top: 5px solid var(--amarillo); font-size: 0.8rem;
}
.site-footer__inner { 
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem;
}
.footer-column h4 { color: #fff; font-size: 0.85rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 1px; }
.footer-column p { margin-bottom: 0.5rem; }
.footer-column a { color: #cbd5e1; }
.footer-column a:hover { color: var(--amarillo); }

.footer-logos { 
  grid-column: 1 / -1; display: flex; justify-content: center; gap: 2rem; 
  margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-logos img { height: 28px; opacity: 0.5; filter: grayscale(1) brightness(1.5); transition: 0.3s; }
.footer-logos img:hover { opacity: 1; filter: none; }

.footer-developed-by { text-align: center; margin-top: 1rem; font-size: 0.7rem; color: #475569; }
.footer-developed-by a { color: #64748b; font-weight: 700; }

/* Formularios Premium */
input[type="text"], 
input[type="password"], 
input[type="email"], 
input[type="number"], 
input[type="search"], 
select, 
textarea {
  width: 100%;
  max-width: 450px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--verde);
  box-shadow: 0 0 0 3px rgba(56, 126, 50, 0.1);
  transform: translateY(-1px);
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--gris);
}

/* Utils */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.5rem 1rem; border-radius: 8px; font-weight: 700; cursor: pointer; transition: 0.2s; border: 1px solid var(--border-color); background: #fff; color: var(--text); font-size: 0.9rem; }
.btn.primary { background: var(--verde); color: #fff; border: none; }
.btn.primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-ghost { background: transparent !important; border-color: transparent !important; color: inherit !important; box-shadow: none !important; }
.btn-ghost:hover { background: rgba(255,255,255,0.1) !important; }

.nav-toggle { display: none !important; background: transparent; border: none; cursor: pointer; color: var(--gris); }

@media (max-width: 991px) {
  .nav-toggle { display: block !important; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; display: none; padding: 1rem; border-bottom: 2px solid var(--verde); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; }
}