:root {
    --verde-bosque: #0D5218;
    --dorado-tierra: #A68349;
    --verde-lima: #b4ea5c;
    --blanco: #ffffff;
    --gris-fondo: #f8f9fa;
    --texto-oscuro: #2c3e50;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--texto-oscuro);
    background-color: var(--gris-fondo);
    line-height: 1.6;
}

/* Barra Superior & Navegación */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: var(--blanco);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-img {
    height: 48px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    margin-left: 1.5rem;
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--verde-bosque);
    font-weight: 600;
}

.btn-nav {
    background: var(--verde-bosque);
    color: var(--blanco) !important;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
}

.btn-nav:hover {
    background: var(--dorado-tierra);
}

/* Selector de Idiomas con Banderas Modernas */
.flag-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 1.5rem;
}

.flag-selector a {
    display: inline-block;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.85;
}

.flag-selector a:hover {
    transform: scale(1.15);
    opacity: 1;
}

.flag-selector img {
    width: 24px;
    height: 16px;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    object-fit: cover;
    display: block;
}

/* Hero con Video de Fondo */
.hero-video-section {
    position: relative;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--blanco);
    overflow: hidden;
}

.bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 82, 24, 0.75);
    z-index: 2;
}

.hero-container {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 0 5%;
}

.hero-badge {
    display: inline-block;
    background: var(--dorado-tierra);
    color: var(--blanco);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-container h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.hero-container p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.6;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    margin: 0.5rem;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--dorado-tierra);
    color: var(--blanco);
}

.btn-primary:hover {
    background: #8e6f3b;
}

.btn-secondary {
    border: 2px solid var(--blanco);
    color: var(--blanco);
}

.btn-secondary:hover {
    background: var(--blanco);
    color: var(--verde-bosque);
}

/* Barra de Estadísticas / Credibilidad */
.stats-bar {
    background: var(--verde-bosque);
    color: var(--blanco);
    padding: 2.5rem 5%;
    border-top: 4px solid var(--dorado-tierra);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.stat-item h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--dorado-tierra);
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
}

.stat-item p {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Pilares Operativos */
.overview-section {
    padding: 5rem 5%;
    background: var(--gris-fondo);
    text-align: center;
}

.overview-section h2 {
    font-family: 'Montserrat', sans-serif;
    color: var(--verde-bosque);
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: #4a5568;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    text-align: left;
}

.overview-card {
    background: var(--blanco);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-top: 4px solid var(--verde-bosque);
    transition: transform 0.3s;
}

.overview-card:hover {
    transform: translateY(-5px);
}

.card-tag {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--dorado-tierra);
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.overview-card h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--verde-bosque);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.overview-card p {
    color: #4a5568;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.card-link {
    color: var(--verde-bosque);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.card-link:hover {
    color: var(--dorado-tierra);
}

/* Footer Institucional y Redes */
footer {
    background: #062b0c;
    color: var(--blanco);
    padding: 4rem 5% 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto 3rem;
}

.footer-logo {
    height: 45px;
    margin-bottom: 1rem;
}

.footer-col h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--dorado-tierra);
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.6rem;
}

.footer-col ul li a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--blanco);
}

.footer-col p {
    color: #cbd5e1;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.social-icons {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.2rem;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--blanco);
    border-radius: 50%;
    text-decoration: none;
    transition: background 0.3s, transform 0.3s;
}

.social-icons a:hover {
    background: var(--dorado-tierra);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    font-size: 0.9rem;
    color: #94a3b8;
}

/* Ocultar barra superior y elementos de Google Translate de forma absoluta */
body > .skiptranslate, 
.goog-te-banner-frame, 
.goog-te-gadget, 
#goog-gt-tt, 
.goog-tooltip {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    pointer-events: none !important;
}

body {
    top: 0px !important;
    position: relative !important;
}

html {
    top: 0px !important;
}

/* --- DISEÑO RESPONSIVO PARA MÓVILES --- */
@media screen and (max-width: 900px) {
    .navbar {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .nav-links a {
        margin: 0.3rem 0.6rem;
        font-size: 0.9rem;
    }

    .flag-selector {
        margin-left: 0;
        margin-top: 0.5rem;
        justify-content: center;
    }

    .hero-container h1 {
        font-size: 2rem;
    }

    .hero-container p {
        font-size: 1rem;
    }

    .hero-video-section {
        height: auto;
        min-height: 60vh;
        padding: 4rem 1rem;
    }

    .stats-grid, .overview-grid, .footer-content {
        grid-template-columns: 1fr;
    }
}
