/* ==========================================================================
   1. VARIABLES Y CONFIGURACIÓN BASE
   ========================================================================== */
:root {
    --color-institucional: #461634; /* Vino */
    --color-oro: #B38E5D;           /* Dorado */
    --color-fondo: #F4F4F4;         /* Gris claro de fondo */
    --color-texto: #333333;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--color-fondo);
    color: var(--color-texto);
    scroll-behavior: smooth;
}

/* Patrón de Fondo sutil */
.page-background {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; 
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23461634' fill-opacity='1'%3E%3Cpath opacity='.5' d='M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9zm-1 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 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h1zm-1 1v1h-1v-1h1zm-1 1v1h-1v-1h1zm-1 1v1h-1v-1h1zm-1 1v1h-1v-1h1zm3-3v1h-1v-1h1zm1 1v1h-1v-1h1zm1 1v1h-1v-1h1zm1 1v1h-1v-1h1zm1 1v1h-1v-1h1zm1 1v1h-1v-1h1zm1 1v1h-1v-1h1zm1 1v1h-1v-1h1zm1 1v1h-1v-1h1z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat;
    pointer-events: none;
}

/* ==========================================================================
   2. HEADER Y NAVEGACIÓN (SIN MINI-HEADER)
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    /* Franja vino decorativa superior */
    border-top: 5px solid var(--color-institucional); 
}

.main-nav {
    background-color: rgba(255, 255, 255, 0.98);
    padding: 12px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
}

/* Contenedor flexible para separar Logos de Menú */
.container-header {
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logos Izquierda */
.brand-logos {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-gob { height: 55px; width: auto; }
.logo-edo { height: 48px; width: auto; }

.divider-v {
    width: 1px;
    height: 35px;
    background-color: #ddd;
    margin: 0 10px;
}

/* Menú Derecha */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: #444;
    font-weight: 500;
    font-size: 15px;
    position: relative;
    padding: 8px 0;
    transition: var(--transition);
}

/* Línea de hover institucional */
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 0; height: 2px;
    background-color: var(--color-institucional);
    transition: var(--transition);
}

.nav-menu a:hover::after, .nav-menu a.active::after {
    width: 100%;
}

.nav-menu a.active {
    color: #5c6bc0; /* Color azul de la referencia */
}

/* ==========================================================================
   3. HERO SLIDER (CON AJUSTE DE MARGEN)
   ========================================================================== */
/* Ajuste del contenedor principal */
.hero-slider.full-width {
    position: relative;
    width: 100%;
    height: 75vh; /* Ajustamos a 75% del alto de pantalla para que sea más equilibrado */
    min-height: 500px;
    overflow: hidden;
    margin-top: 110px; /* Espacio para el header que se ve en image_d86572.png */
    background-color: #333;
}

/* AQUÍ ESTÁ EL TRUCO: El slide debe forzar el alto total */
.slide {
    display: none; 
    width: 100%;
    height: 100% !important; /* Fuerza a ocupar todo el alto del contenedor gris */
    position: absolute; /* Cambiamos a absolute para que no empujen otros elementos */
    top: 0;
    left: 0;
    background-size: cover; /* La imagen se estira para cubrir todo sin deformarse */
    background-position: center center;
    background-repeat: no-repeat;
    align-items: center;
    justify-content: center;
}

/* Cuando está activo se muestra con flex para centrar el texto */
.slide.active {
    display: flex;
    animation: fadeIn 0.8s ease-in-out;
}

/* El overlay también debe cubrir todo */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45); /* Oscurece un poco para leer el texto blanco */
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    max-width: 850px;
    padding: 0 20px;
}

.slide-content h2 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.slide-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: #f8f8f8;
}

/* ==========================================================================
   4. COMPONENTES (BOTÓN Y FLECHAS)
   ========================================================================== */
.btn-gov {
    display: inline-block;
    padding: 14px 35px;
    background-color: var(--color-institucional);
    color: white !important;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    border: 2px solid var(--color-institucional);
    transition: var(--transition);
}

.btn-gov:hover {
    background-color: transparent;
    color: white !important;
    border-color: white;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 55px; height: 55px;
    cursor: pointer;
    border-radius: 50%;
    transition: var(--transition);
    font-size: 20px;
}

.prev:hover, .next:hover { background: var(--color-institucional); }
.prev { left: 25px; }
.next { right: 25px; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ==========================================================================
   5. FOOTER (ESTILO OSCURO)
   ========================================================================== */
.site-footer {
    background-color: #2c2c2c;
    color: #ffffff;
    padding-top: 50px;
    border-top: 4px solid var(--color-oro);
}

.footer-bottom {
    background-color: #1a1a1a;
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: #888;
}

/* ==========================================================================
   6. RESPONSIVO
   ========================================================================== */
@media (max-width: 1100px) {
    .nav-menu { display: none; } /* Ocultar para menú móvil */
    .menu-toggle { display: block; font-size: 24px; color: var(--color-institucional); cursor: pointer; }
    .slide-content h2 { font-size: 2.5rem; }
    .hero-slider.full-width { margin-top: 75px; }
}