/* DESIGN SYSTEM - COOPERATIVA DE LOPEZ */

:root {
    --primary: #0f5c2e;
    --primary-dark: #0a4020;
    --secondary: #f2c300;
    --accent: #1eaad1;
    --danger: #e74c3c;
    --success: #2ecc71;
    --text: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #121212;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 80px; /* Space for fixed header */
}

/* --- HEADER --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0f5c2e; /* Verde oscuro sÃ³lido por defecto */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    z-index: 1000;
    transition: all 0.4s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

header.scrolled {
    padding: 0.6rem 5%; /* Se achica un poco mÃ¡s */
    background: rgba(15, 92, 46, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.logo a {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo img {
    height: 55px; /* TamaÃ±o normal */
    transition: all 0.4s ease;
}

header.scrolled .logo img {
    height: 42px; /* Se achica al scrollear */
}

.logo-text {
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
    display: block;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

@media (max-width: 600px) {
    .logo-text {
        display: none; /* Hide text on small mobiles to save space */
    }
}

/* --- SUBMENU COLORS --- */
.submenu li {
    padding: 0 10px; /* Espacio para que el fondo redondeado se vea bien */
}

.submenu li a {
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border-radius: 12px; /* Fondo redondeado */
    margin: 2px 0;
}

/* EnergÃ­a -> Amarillo */
.submenu li a[href*="energia"]:hover {
    color: #f2c300 !important;
    background: rgba(242, 195, 0, 0.1); /* Un poco mÃ¡s de opacidad para que se note el redondeado */
}

/* Gas -> Rojo */
.submenu li a[href*="gas"]:hover {
    color: #ff4444 !important;
    background: rgba(255, 68, 68, 0.1);
}

/* Telecomunicaciones -> Azul */
.submenu li a[href*="telecomunicaciones"]:hover {
    color: #2196f3 !important;
    background: rgba(33, 150, 243, 0.1);
}

/* Sepelio -> Negro */
.submenu li a[href*="sepelio"]:hover {
    color: #000000 !important;
    background: rgba(0, 0, 0, 0.08);
}

/* Agua -> Celeste */
.submenu li a[href*="agua"]:hover {
    color: #00d4ff !important;
    background: rgba(0, 212, 255, 0.1);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

header.scrolled nav a {
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

nav a:hover {
    color: var(--secondary);
}

.btn-login {
    background: #f2c300 !important; /* Amarillo vibrante */
    color: #0a4020 !important; /* Texto verde oscuro para contraste profesional */
    padding: 0.7rem 1.5rem !important;
    border-radius: 50px !important; /* Muy redondeado (pill) */
    font-weight: 700 !important;
    text-shadow: none !important;
    transition: all 0.3s ease !important;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(242, 195, 0, 0.3);
}

.btn-login:hover {
    background: white !important;
    color: #0f5c2e !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 195, 0, 0.4);
}

/* --- FOOTER --- */
footer {
    background: var(--footer-bg, linear-gradient(135deg, #0a4020, #0a3018));
    color: var(--white);
    padding: 4rem 5% 2rem;
    position: relative;
    overflow: hidden;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 2rem;
    flex-wrap: wrap;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 1rem;
}

}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

/* --- MODALS & SPECIAL BUTTONS --- */
#aviso-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    align-items: center; justify-content: center;
    padding: 2rem;
}
#aviso-modal.active { display: flex; animation: fadeIn 0.4s ease; }

.aviso-content {
    background: white;
    max-width: 600px;
    width: 90%;
    padding: 2.5rem 1.5rem;
    border-radius: 24px;
    text-align: center;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    border-top: 8px solid #f2c300;
    animation: slideUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.aviso-icon {
    width: 80px; height: 80px;
    background: #fff9e6;
    color: #f2c300;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem auto;
}

.aviso-content h2 {
    color: #0a4020;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.aviso-content p {
    color: #444;
    font-size: 1.1rem;
    line-height: 1.5;
    font-weight: 600;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .aviso-content {
        width: 100%;
        padding: 3rem 2rem;
    }
    .aviso-content p {
        font-size: 1.25rem;
    }
}

.btn-aviso-cerrar {
    background: #0a4020;
    color: white;
    border: none;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(10, 64, 32, 0.2);
}

.btn-aviso-cerrar:hover {
    background: #0f5c2e;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(10, 64, 32, 0.3);
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.btn-login:hover {
    background: var(--white);
    transform: translateY(-2px);
    color: #0f5c2e !important;
}

/* --- SUBMENU --- */
.has-submenu {
    position: relative;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 50%; /* Centrado bajo el menÃº */
    transform: translateX(-50%) translateY(10px);
    background: var(--white);
    min-width: 240px; /* Un poco mÃ¡s ancho para evitar cortes */
    border-radius: 20px; /* Bordes bien redondeados */
    padding: 0.8rem 0;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden; /* Para que el color hover respete el redondeado */
    z-index: 1000;
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
}

.submenu li {
    width: 100%;
}

.submenu a {
    color: var(--text);
    padding: 0.5rem 1.5rem;
    display: block;
    font-size: 0.9rem;
}

.submenu a:hover {
    background: var(--bg-light);
    color: var(--primary);
}

/* --- HERO CAROUSEL --- */
.hero-carousel {
    position: relative;
    height: 85vh;
    min-height: 500px;
    width: 100%;
    overflow: hidden;
    background: #000;
    margin-top: 0;
}


.carousel-inner {
    height: 100%;
    position: relative;
    width: 100%;
}


.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.carousel-item.active {
    opacity: 1;
    z-index: 2;
}

.carousel-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.6);
    z-index: -1;
}


.hero-content {
    text-align: center;
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    z-index: 10;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


.hero-content h1 {
    font-size: clamp(1.8rem, 5vw, 4.5rem);
    color: var(--white);
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 4px 15px rgba(0,0,0,0.8);
    opacity: 0;
    transition: opacity 0.8s ease-out 0.4s;
    width: 100%;
    max-width: 100%;
    padding: 0 5%;
    box-sizing: border-box;
}



.carousel-item.active .hero-content h1 {
    opacity: 1;
    transform: translateY(0);
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), transparent, rgba(0,0,0,0.4));
    z-index: 5;
    pointer-events: none;
}

/* Indicadores (Circulitos) */
.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dot.active {
    background: var(--white);
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .hero-carousel {
        height: 65vh !important;
        min-height: 450px !important;
    }
    .hero-content h1 {
        font-size: 1.8rem !important;
        line-height: 1.2;
        padding: 0 10px;
    }
    .carousel-dots {
        bottom: 20px !important;
    }
    .dot {
        width: 10px !important;
        height: 10px !important;
    }
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- SECTIONS --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 5%;
}

.section-container {
    margin-bottom: 5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 1rem;
}

.section-title i {
    font-size: 1.5rem;
    color: #1a2b22;
    background: #f4f5f7;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    box-shadow: inset 0 0 0 1px #e2e8f0;
    transition: all 0.3s ease;
}

.section-container:hover .section-title i {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.06);
}

.section-title h2 {
    font-size: 2.3rem;
    font-weight: 800;
    color: #1a2b22;
    letter-spacing: -0.5px;
    margin: 0;
}

.section-header p {
    color: #64748b;
    font-size: 1.15rem;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- NEWS GRID --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* --- NEWS CARD --- */
.news-card {
    background: #f4f5f7;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    height: 280px;
    transition: var(--transition);
    border: 1px solid #e1e4e8;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* Header V2: Recuadro color (icono) + Barra gris oscura (título) */
.card-header-v2 {
    display: flex;
    background: #6c757d;
    flex-shrink: 0;
    min-height: 70px;
}

.card-icon-box {
    width: 65px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    /* Eliminar gradient y usar color base para asemejarse al mockup */
}

.card-title-box {
    padding: 0.8rem 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.card-title-box h3 {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0 0 0.3rem 0;
    text-transform: uppercase;
    line-height: 1.3;
}

.card-meta-v2 {
    color: #ced4da;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* Cuerpo gris claro: texto izquierda + imagen derecha */
.card-content-row {
    display: flex;
    flex: 1;
    overflow: hidden;
    background: #f4f5f7;
}

.card-body {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.card-body p {
    color: #495057;
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 1.2rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.btn-read-more {
    text-decoration: none;
    color: #212529;
    font-weight: 800;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    letter-spacing: 0.5px;
    transition: gap 0.2s ease, color 0.2s ease;
    margin-top: auto;
}

.btn-read-more:hover {
    gap: 0.7rem;
    color: var(--primary);
}

/* Imagen lateral derecha */
.card-image {
    width: 240px;
    flex-shrink: 0;
    overflow: hidden;
    background: #e9ecef;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.news-card:hover .card-image img {
    transform: scale(1.06);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #adb5bd;
    background: #e9ecef;
}

/* Card sin imagen: no mostrar el panel de imagen */
.card-image.no-img {
    display: none;
}

@media (max-width: 600px) {
    .card-image {
        width: 120px;
    }
    .card-title-box h3 {
        font-size: 0.95rem;
    }
}

/* --- LOAD MORE --- */
.load-more-container {
    text-align: center;
    margin-top: 3rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* --- SCROLL REVEAL ANIMATION --- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* FOOTER TEXTURE BLEND */
footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('img/pattern.png');
    opacity: 0.03;
    pointer-events: none;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    font-weight: 600;
}

.footer-links a:hover {
    color: var(--secondary);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.85rem;
    opacity: 0.7;
    position: relative;
    z-index: 1;
}

.dev-credit {
    margin-top: 1rem;
    font-size: 0.8rem;
    opacity: 0.6;
}

.dev-credit a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}

.dev-credit a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* --- FLOATING WHATSAPP --- */
.floating-wpp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: var(--transition);
    text-decoration: none;
}

.floating-wpp:hover {
    transform: scale(1.1) rotate(10deg);
    background-color: #128c7e;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

@media (max-width: 768px) {
    .floating-wpp {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 25px;
    }
}

/* --- MOBILE TOGGLE --- */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-nav-toggle .bar {
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Burger to X transformation */
.mobile-nav-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.mobile-nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
}
.mobile-nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


@media (max-width: 900px) {
    .mobile-nav-toggle {
        display: flex;
    }
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, var(--primary-dark), #0a3018);
        padding: 6rem 1.5rem;
        transition: all 0.5s cubic-bezier(0.77,0.2,0.05,1);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 999;
        backdrop-filter: blur(10px);
        overflow-y: auto;
        box-sizing: border-box;
    }
    nav.open {
        right: 0;
    }
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        width: 100%;
        padding: 0;
        margin: 0;
        list-style: none;
    }
    nav ul li {
        width: 100%;
        text-align: center;
    }
    nav ul li > a {
        font-size: 1.3rem;
        font-weight: 700;
        width: 100%;
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        padding: 0.5rem 0;
    }
    /* Submenu on mobile â€” slide-in panel from left */
    .submenu {
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        width: 100% !important;
        height: 100vh !important;
        background: rgba(5, 40, 18, 0.92) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 1.2rem !important;
        z-index: 1100 !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transition: left 0.4s cubic-bezier(0.77,0.2,0.05,1) !important;
        box-shadow: none !important;
        min-width: unset !important;
        padding: 2rem !important;
        box-sizing: border-box !important;
    }
    .submenu.active {
        left: 0 !important;
    }
    .submenu li {
        width: 100%;
        text-align: center;
        padding: 0;
        list-style: none;
    }
    .submenu a {
        color: white !important;
        font-size: 1.4rem !important;
        font-weight: 700 !important;
        padding: 0.8rem 1rem !important;
        display: block !important;
        text-shadow: 0 2px 8px rgba(0,0,0,0.5) !important;
        transition: color 0.3s ease !important;
        background: none !important;
        border-radius: 0 !important;
        margin: 0 !important;
        white-space: nowrap !important;
    }
    .submenu a:hover {
        color: var(--secondary) !important;
    }
    /* Back button for submenu */
    .submenu-back {
        position: absolute;
        top: 25px;
        left: 25px;
        color: white;
        background: rgba(255,255,255,0.15);
        border: none;
        border-radius: 50px;
        padding: 0.6rem 1.2rem;
        font-size: 1rem;
        font-weight: 700;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        transition: background 0.3s ease;
    }
    .submenu-back:hover {
        background: rgba(255,255,255,0.25);
    }
}

/* --- PAGE HERO --- */
.hero-page {
    height: 40vh;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-page::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.hero-page h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* --- SERVICE CARDS PREMIUM --- */
.services-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    padding: 4rem 0;
}

.service-card-premium {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    text-decoration: none;
    color: var(--text);
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card-premium:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.service-card-premium i {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 2rem;
    transition: var(--transition);
}

.service-card-premium:hover i {
    transform: scale(1.1);
    color: var(--secondary);
}

.service-card-premium h3 {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.service-card-premium p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
}

.service-card-premium .btn-outline {
    margin-top: 1.5rem;
    padding: 0.6rem 1.5rem;
    border: 2px solid var(--primary);
    border-radius: 50px;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    transition: var(--transition);
}

.service-card-premium:hover .btn-outline {
    background: var(--primary);
    color: var(--white);
}

/* --- HERO PAGE (TITULOS) --- */
.hero-page {
    height: 40vh;
    min-height: 300px;
    background: linear-gradient(135deg, var(--primary-dark), #0a3018);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: var(--white);
    padding: 0 5%;
}

.hero-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('img/pattern.png');
    opacity: 0.1;
    pointer-events: none;
}

.hero-page h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    text-shadow: 0 10px 30px rgba(0,0,0,0.4);
    position: relative;
    z-index: 1;
    letter-spacing: -1px;
    animation: fadeInUp 0.8s ease-out;
}

@media (max-width: 768px) {
    .hero-page {
        height: 35vh;
        min-height: 250px;
    }
}

/* --- PLAN CARDS --- */
.plans-section {
    padding: 4rem 0;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    margin-top: 4rem;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem;
}

@media (max-width: 1024px) {
    .plans-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .plans-grid {
        grid-template-columns: 1fr;
    }
}

.plan-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: left; /* Left align */
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px; /* Vertical accent line on the left */
    height: 100%;
    background: var(--primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.plan-card:hover::before {
    transform: scaleY(1);
}

.plan-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary);
    color: var(--primary-dark);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.plan-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: left;
}

.plan-megas {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.plan-megas span {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-light);
}

.plan-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary);
    font-weight: 700;
}

.plan-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.plan-btn {
    align-self: flex-start; /* Button left aligned */
    background: var(--primary);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
}

.plan-card:hover .plan-btn {
    background: var(--primary-dark);
}

/* --- BLUE BANNER --- */
.blue-banner {
    background: linear-gradient(135deg, #0d47a1, #1976d2);
    color: var(--white);
    padding: 6rem 5%;
    text-align: center;
    border-radius: var(--border-radius);
    margin: 4rem 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(13, 71, 161, 0.3);
}

.blue-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: pulse 10s infinite linear;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.blue-banner h4 {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 400;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.blue-banner h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
}

.blue-banner p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.8;
}

/* --- PLAN DETAILS TOGGLE --- */
.plan-details {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-light);
    border-radius: 10px;
    margin-top: 1rem;
    font-size: 0.85rem;
    text-align: left;
    padding: 0 1.5rem;
}

.plan-details.open {
    max-height: 200px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.btn-ver-mas {
    background: none;
    border: 1px solid #ddd;
    color: var(--text-light);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.btn-ver-mas:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* --- FAQ CARD --- */
.faq-section {
    padding: 4rem 0;
}

.faq-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 4rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.05);
    border-left: 10px solid var(--primary);
    transition: var(--transition);
}

.faq-card:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 80px rgba(0,0,0,0.08);
}

.faq-card h2 {
    color: var(--primary-dark);
    font-size: 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.faq-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.faq-card .note {
    background: #fff8e1;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 5px solid #ffb300;
    font-style: italic;
    color: #5d4037;
}

@media (max-width: 768px) {
    .faq-card {
        padding: 2rem;
    }
    
    .hero-carousel {
        height: 50vh; /* Altura mÃ¡s baja en mÃ³viles para que no se vea cortado */
        min-height: 350px;
    }
    
    .carousel-item img {
        object-position: center center;
    }

    .carousel-dots {
        bottom: 15px;
    }

    .hero-content h1 {
        font-size: 1.6rem; /* Un poco mÃ¡s pequeÃ±o para asegurar que quepa */
        padding: 0 1.5rem;
        text-align: center;
        width: 100%;
        line-height: 1.3;
    }

    
    .hero-content {
        width: 100%;
        left: 0;
    }
}


/* --- SECCIÓN CLIMA --- */
.weather-grid {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1rem;
    overflow-x: auto;
    padding: 1rem 1rem 1.5rem 1rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 900px) {
    .weather-grid {
        justify-content: flex-start;
    }
}

.weather-grid::-webkit-scrollbar { display: none; }

.weather-card {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 18px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
    min-width: 105px;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.weather-card:hover {
    background: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-color: #eee;
}

.weather-card.current {
    background: #ffffff;
    border: 1px solid var(--secondary);
    box-shadow: 0 8px 25px rgba(242, 195, 0, 0.15);
}

.weather-day {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.weather-icon {
    font-size: 2.4rem;
    margin: 0.3rem 0;
}

.weather-temp {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text);
}

.weather-range {
    font-size: 0.7rem;
    color: #999;
}

/* MODAL CLIMA DETALLADO */
.weather-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.weather-modal.active { display: flex; animation: fadeIn 0.4s ease; }

.weather-modal-content {
    background: white;
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    border-radius: 32px;
    padding: 0;
    position: relative;
    overflow-y: auto;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

.weather-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    padding: 1.5rem 2.5rem;
    position: sticky;
    top: 0;
    background: white;
    z-index: 100;
    border-radius: 32px 32px 0 0;
}

.weather-modal-header h3 {
    color: var(--primary-dark);
    margin: 0;
    font-size: 1.6rem;
    font-weight: 800;
}

.btn-close-weather {
    background: #f5f5f5;
    border: none;
    width: 44px; height: 44px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    color: #666;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s ease;
}

.btn-close-weather:hover { background: #eee; color: #000; transform: rotate(90deg); }

.hourly-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1.5rem 2.5rem 2.5rem 2.5rem;
}

.hourly-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.5rem;
    background: #f8f9fa;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.hourly-item:hover { background: #f1f3f5; transform: scale(1.02); }

.hourly-time-box { width: 60px; }
.hourly-time { font-weight: 700; color: #444; font-size: 0.9rem; }
.hourly-icon { font-size: 1.6rem; margin: 0 1rem; }
.hourly-details-box { flex-grow: 1; display: flex; flex-direction: column; gap: 0.2rem; }
.hourly-label { font-size: 0.9rem; font-weight: 700; color: #333; }
.hourly-extra { font-size: 0.75rem; color: #777; font-weight: 500; }
.hourly-temp { font-weight: 800; color: var(--primary); min-width: 50px; text-align: right; font-size: 1.2rem; }

/* --- ALERTA EN INICIO (BAJO EL BANNER) --- */
.home-alert-box {
    background: #ffffff;
    border-left: 6px solid #f2c300;
    border-radius: var(--border-radius);
    padding: 1.5rem 2rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.home-alert-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.home-alert-icon {
    width: 50px;
    height: 50px;
    background: #fff9e6;
    color: #f2c300;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    animation: pulseAlert 2s infinite;
}

.home-alert-content {
    flex-grow: 1;
}

.home-alert-content h3 {
    color: #0a4020;
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    letter-spacing: -0.3px;
}

.home-alert-content p {
    color: #444;
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 600;
}

@keyframes pulseAlert {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); box-shadow: 0 0 10px rgba(242, 195, 0, 0.2); }
    100% { transform: scale(1); }
}

@media (max-width: 600px) {
    .home-alert-box {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        gap: 1rem;
    }
    .home-alert-icon {
        margin: 0 auto;
    }
}

/* --- FLOATING SCROLL TO TOP --- */
.floating-scroll-top {
    position: fixed;
    bottom: 105px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--primary, #0f5c2e);
    color: white;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
}

.floating-scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.floating-scroll-top:hover {
    transform: scale(1.1) translateY(-5px);
    background-color: var(--primary-dark, #0a4020);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    color: white;
}

@media (max-width: 768px) {
    .floating-scroll-top {
        bottom: 85px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

