/* ============================================
   VARIABLES Y RESET
   ============================================ */
:root {
    --verde-pastel: #A8E6CF;
    --azul-pastel: #A8D8EA;
    --rosa-pastel: #FFB6C1;
    --amarillo-pastel: #FFF4A3;
    --morado-pastel: #D4A5D4;
    --blanco: #FFFFFF;
    --negro: #1a1a1a;
    --gris-claro: #f5f5f5;
    --gris-medio: #999999;
    --gris-oscuro: #333333;
    --font-principal: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-principal);
    color: var(--negro);
    background-color: var(--blanco);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--blanco);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 1rem 0;
}

.header-container {
    max-width: 100%;
    margin: 0;
    padding: 0 2rem 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
}

.hamburger-btn span {
    width: 25px;
    height: 3px;
    background: var(--negro);
    transition: var(--transition-normal);
}

.hamburger-btn:hover span {
    background: var(--verde-pastel);
}

.logo {
    margin-right: auto;
}

.logo img {
    height: 50px;
    width: auto;
}

.main-nav ul {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.main-nav a {
    color: var(--negro);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-nav a:hover {
    color: var(--verde-pastel);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--gris-oscuro);
    padding: 1rem;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-normal);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    color: var(--blanco);
    display: block;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.dropdown-menu a:hover {
    background: rgba(255,255,255,0.1);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.language-selector a {
    color: var(--negro);
    font-weight: 500;
}

.language-selector a.active {
    color: var(--verde-pastel);
}

.mygreen-dropdown button {
    background: none;
    border: none;
    color: var(--negro);
    cursor: pointer;
    font-weight: 500;
}

/* ============================================
   MENU FULLSCREEN
   ============================================ */
.fullscreen-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(26, 26, 26, 0.98);
    z-index: 2000;
    transition: var(--transition-slow);
    overflow-y: auto;
}

.fullscreen-menu.active {
    left: 0;
}

.fullscreen-menu-header {
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    background: none;
    border: none;
    color: var(--blanco);
    font-size: 2rem;
    cursor: pointer;
}

.fullscreen-menu-content {
    padding: 2rem 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    color: var(--blanco);
}

.menu-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.menu-section a {
    color: var(--gris-medio);
    transition: var(--transition-fast);
}

.menu-section a:hover {
    color: var(--verde-pastel);
}

.simple-links li {
    margin-bottom: 1rem;
}

.simple-links a {
    color: var(--blanco);
    font-size: 1.2rem;
}

/* ============================================
   HERO BANNER DE NOTICIAS
   ============================================ */
.noticias-hero {
    margin-top: 80px;
    height: 350px;
    background: linear-gradient(135deg, rgba(168, 230, 207, 0.9), rgba(168, 216, 234, 0.9)),
                url('8.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.noticias-hero-overlay {
    z-index: 1;
}

.noticias-hero h1 {
    font-size: 3.5rem;
    color: var(--negro);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.noticias-hero p {
    font-size: 1.2rem;
    color: var(--gris-oscuro);
    max-width: 600px;
}

/* ============================================
   MODAL DE NOTICIA
   ============================================ */
.modal-noticia {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-noticia.active {
    display: flex;
}

.modal-noticia-content {
    background: var(--blanco);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    border-radius: 12px;
    overflow-y: auto;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-noticia-content > img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.modal-noticia-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: var(--blanco);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.modal-noticia-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.modal-noticia-body {
    padding: 2rem;
}

.modal-noticia-body h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--negro);
    line-height: 1.3;
}

.modal-noticia-body p {
    font-size: 1rem;
    color: var(--gris-oscuro);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.modal-noticia-body .noticia-fecha {
    margin-bottom: 1rem;
}

/* ============================================
   NOTICIAS GRID
   ============================================ */
.noticias-section {
    padding: 3rem 0 4rem;
    background: var(--gris-claro);
    min-height: 60vh;
}

.noticias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.noticia-card {
    background: var(--blanco);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.noticia-card:nth-child(1) { animation-delay: 0.05s; }
.noticia-card:nth-child(2) { animation-delay: 0.1s; }
.noticia-card:nth-child(3) { animation-delay: 0.15s; }
.noticia-card:nth-child(4) { animation-delay: 0.2s; }
.noticia-card:nth-child(5) { animation-delay: 0.25s; }
.noticia-card:nth-child(6) { animation-delay: 0.3s; }
.noticia-card:nth-child(7) { animation-delay: 0.35s; }
.noticia-card:nth-child(8) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.noticia-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.noticia-card.oculta {
    display: none;
}

.noticia-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.noticia-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.noticia-card:hover .noticia-img img {
    transform: scale(1.05);
}

.noticia-body {
    padding: 1.5rem;
}

.noticia-fecha {
    font-size: 0.8rem;
    color: var(--gris-medio);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
}

.noticia-body h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
    color: var(--negro);
}

.noticia-body p {
    font-size: 0.95rem;
    color: var(--gris-oscuro);
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.noticia-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--verde-pastel);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.noticia-link:hover {
    gap: 0.8rem;
    color: var(--azul-pastel);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--negro);
    color: var(--blanco);
    padding: 4rem 0 2rem;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    margin-bottom: 3rem;
}

.footer-column h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: var(--gris-medio);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-column a i {
    font-size: 0.9rem;
    color: var(--verde-pastel);
}

.footer-column a:hover {
    color: var(--verde-pastel);
}

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

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gris-oscuro);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.footer-social a:hover {
    background: var(--verde-pastel);
    color: var(--negro);
}

.footer-map-link {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.address {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--gris-medio);
    font-size: 0.9rem;
    line-height: 1.6;
}

.address i {
    color: var(--verde-pastel);
    margin-top: 0.2rem;
}

.footer-lang a.active {
    color: var(--verde-pastel);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--gris-medio);
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

.footer-legal {
    margin-top: 1rem;
}

.footer-legal a {
    color: var(--gris-medio);
    margin: 0 0.5rem;
    display: inline;
}

.footer-legal a:hover {
    color: var(--verde-pastel);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .main-nav {
        display: none;
    }

    .noticias-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .noticias-hero h1 {
        font-size: 2.5rem;
    }

    .noticias-hero {
        height: 250px;
    }

    .noticias-grid {
        grid-template-columns: 1fr;
    }

    .modal-noticia {
        padding: 1rem;
    }

    .modal-noticia-content > img {
        height: 220px;
    }

    .modal-noticia-body h2 {
        font-size: 1.4rem;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }
}
