*{
    padding: 0;
    margin: 0;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: clip; /* 'clip' evita el overflow horizontal sin romper el position: sticky */
}

/* Barra principal con el gradiente corporativo (igual al estilo Servitel) */
.alistar-header {
    position: sticky;
    top: 0;
    left: 0;
    z-index: 1000;    /* Asegura que la barra siempre quede por ENCIMA de todo el contenido */
    width: 100%;
    display: flex;
    justify-content: space-between; /* Distribuye los extremos y deja el centro libre */
    align-items: center;
    padding: 10px 20px;
    background: linear-gradient(135deg, #f3f7f3ee 0%, #7b91bd 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 10;
    width: 100%;

}

/* Enlaces del lado izquierdo (con espacio medido para que no queden pegados al borde) */
.nav-links {
    display: flex;
    gap: 35px;
    margin-left: 80px; /* <--- Esto controla qué tan a la derecha arrancan los enlaces */
}

.nav-links a {
    text-decoration: none;
    color: #68d352;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;
    transition: color 0.3s ease, transform 0.2s ease;
    font-family: "Oswald", sans-serif;
    font-optical-sizing: auto;
    font-weight: weight;
    font-style: normal;
}

.nav-links a:hover {
    opacity: 0.8;
    color: #79defd;
}

/* Logo en el centro exacto */
.header-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.header-logo {
    height: 65px; /* Ajusta el tamaño de tu logo aquí */
    width: auto;
}

/* Botón Portal de Pagos a la derecha estilo tarjeta translúcida */
.header-action {
    margin-right: 20px;
    margin-left: 30px;
    display: flex;
    justify-content: flex-end; /* Empuja el botón hacia la derecha del bloque */
}

.btn-portal-animado {
    display: inline-block;
    transition: all 0.2s ease-in;
    position: relative;
    overflow: hidden;
    z-index: 1;
    color: #336879; /* Color inicial del texto (combina con tu marca) */
    padding: 0.7em 1.5em;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    border-radius: 0.5em;
    background: #ffffff;
    border: 2px solid #147b9b;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    margin-right: 300px;
    margin-left: 40px;
    font-family: "Oswald", sans-serif;
    font-optical-sizing: auto;
    font-weight: weight;
    font-style: normal;
}

.btn-portal-animado:active {
    color: #666;
    box-shadow: inset 2px 2px 5px rgba(0,0,0,0.2);
}

/* Primera capa de la animación de fondo */
.btn-portal-animado:before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%) scaleY(1) scaleX(1.25);
    top: 100%;
    width: 140%;
    height: 180%;
    background-color: rgba(30, 175, 35, 0.1);
    border-radius: 50%;
    display: block;
    transition: all 0.5s 0.1s cubic-bezier(0.55, 0, 0.1, 1);
    z-index: -1;
}

/* Segunda capa (la que rellena el botón al pasar el mouse) */
.btn-portal-animado:after {
    content: "";
    position: absolute;
    left: 55%;
    transform: translateX(-50%) scaleY(1) scaleX(1.45);
    top: 180%;
    width: 160%;
    height: 190%;
    background-color: #79defd; /* Tu verde corporativo */
    border-radius: 50%;
    display: block;
    transition: all 0.5s 0.1s cubic-bezier(0.55, 0, 0.1, 1);
    z-index: -1;
}

/* Efecto al pasar el mouse (Hover) */
.btn-portal-animado:hover {
    color: #ffffff; /* El texto pasa a blanco para resaltar */
    border: 2px solid #79defd;
}

.btn-portal-animado:hover:before {
    top: -35%;
    background-color: #79defd;
    transform: translateX(-50%) scaleY(1.3) scaleX(0.8);
}

.btn-portal-animado:hover:after {
    top: -45%;
    background-color: #79defd;
    transform: translateX(-50%) scaleY(1.3) scaleX(0.8);
}

/* Sección Hero Principal */
.hero-interactive {
    position: relative;
    background-color: #0b132b; /* Azul oscuro corporativo */
    width: 100%;
    min-height: 500px; /* Altura perfecta para que respire bien */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 50px;
}

/* Div donde Vanta proyecta la animación */
#fondo-animado {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1;
}

/* Contenedor principal: Alinea el logo y la caja de texto uno al lado del otro */
.hero-banner-content {
    position: relative;
    z-index: 2; /* Para quedar flotando sobre la animación de Vanta */
    display: flex;
    flex-direction: row;    /* Logo a la izquierda, texto a la derecha */
    align-items: center;    /* Alineación vertical perfecta */
    justify-content: center;
    gap: 40px;              /* Separación entre el logo y los textos */
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
}

/* Caja de la Imagen/Logo */
.hero-logo-box img {
    width: 140px;           /* Ajusta el tamaño del icono aquí */
    height: auto;
    display: block;
    flex-shrink: 0;
}

/* Caja de Texto (Título arriba, subtítulo abajo en vertical) */
.hero-text-box {
    display: flex;
    flex-direction: column;
    text-align: left;
}

/* Título Principal en Blanco */
.hero-text-box h1 {
    color: #ffffff !important; /* Blanco puro resplandeciente */
    font-size: 2.3rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 12px 0;
    font-family: "Grechen Fuemen", cursive;
    font-weight: 400;
    font-style: normal;
}

/* Subtítulo en Blanco */
.hero-text-box p {
    color: #ffffff !important;
    font-size: 1.1rem;
    line-height: 1.5;
    margin: 0;
    opacity: 0.9;
    font-family: "Caveat", cursive;
    font-optical-sizing: auto;
    font-weight: weight;
    font-style: normal;
}

.planes-container {
    width: 100%;
    min-height: 600px;
    padding: 60px 20px;
    
    /* Azul oscuro para dar continuidad al fondo del banner */
    background-color: #010849; 
    
    /* Malla de puntos suaves usando un verde muy sutil */
    background-image: 
        radial-gradient(rgba(30, 175, 35, 0.25) 2px, transparent 0),
        linear-gradient(to bottom, #0b132b 0%, #010849 120px);
        
    background-size: 35px 35px, 100% 100%;
    
    /* Animación fluida de movimiento de malla */
    animation: moverPuntos 20s linear infinite;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Regla que hace deslizar la malla suavemente en diagonal */
@keyframes moverPuntos {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 70px 70px; /* Se desplaza de forma continua */
    }
}

/* ==========================================================
   SECCIÓN DE PLANES - ALISTAR NETWORK
   ========================================================== */

/* Contenedor del título de la sección */
.planes-header-title {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
    z-index: 2; /* Para que quede por encima de la malla animada */
}

/* Título Principal */
.planes-header-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px 0;
    letter-spacing: 0.5px;
    font-family: "Isometra", serif;
    font-weight: 400;
    font-style: normal;
}

/* Subtítulo descriptivo */
.planes-header-title p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-family: "Caveat", cursive;
    font-optical-sizing: auto;
    font-weight: weight;
    font-style: normal;
}

/* Contenedor de la Grilla (Alineación de las 4 tarjetas) */
.grid-planes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 25px;
    max-width: 1250px;
    width: 100%;
    margin-top: 30px;
    padding: 0 20px;
}

/* Tarjeta Base de Plan (Glassmorphism Oscuro) */
.card-plan {
    position: relative;
    width: 270px;
    padding: 35px 25px;
    overflow: hidden;
    
    /* Fondo translúcido sobre la malla de puntos */
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(120, 222, 253, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Efecto al pasar el cursor por encima (Hover) */
.card-plan:hover {
    transform: translateY(-8px);
    border-color: #68d352; /* Verde corporativo */
    box-shadow: 0 15px 35px rgba(104, 211, 82, 0.2);
}

/* Estilo destacado para el plan más vendido/popular */
.card-plan.plan-destacado {
    border-color: rgba(104, 211, 82, 0.5);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 10px 30px rgba(104, 211, 82, 0.15);
}

/* Cinta Diagonal (Ribbon) en la esquina superior derecha */
.ribbon-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    width: 85px;
    height: 85px;
    overflow: hidden;
    z-index: 2;
}

.ribbon-tag {
    position: absolute;
    top: 22px;
    right: -35px;
    width: 140px;
    transform: rotate(45deg);
    background-color: #68d352; /* Verde neón corporativo */
    color: #010849;            /* Texto oscuro para contraste */
    text-align: center;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 0;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    font-family: "Oswald", sans-serif;
}

/* Estructura Interna del Contenido */
.card-plan-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.plan-badge {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #79defd; /* Azul neón claro */
    margin: 0 0 10px 0;
    font-family: "Oswald", sans-serif;
}

.plan-price {
    font-size: 2.4rem;
    font-weight: 700;
    color: #ffffff;
    margin: 15px 0 10px 0;
    line-height: 1;
}

.plan-price span {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
}

.plan-desc {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 25px;
}

/* Botón de Acción (Directo a Contacto / WhatsApp) */
.plan-footer {
    width: 100%;
    margin-top: auto;
}

.btn-plan {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 44px;
    border-radius: 22px;
    background: #68d352;
    color: #010849;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    font-family: "Oswald", sans-serif;
}

.btn-plan:hover {
    background: #79defd;
    color: #010849;
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(121, 222, 253, 0.4);
}

/* ==========================================================
   SECCIÓN DE COBERTURA - FONDO ANIMADO
   ========================================================== */

.seccion-cobertura {
    position: relative;
    width: 100%;
    min-height: 600px;
    padding: 80px 0;
    overflow: hidden; /* Importante para que el fondo rotado no se salga */
    background-color: #0b132b; /* Azul base del banner Vanta para continuidad */
}

/* --- Capa de Fondo Animado (Adaptado de Uiverse.io) --- */
.f-luciernagas {
    position: absolute;
    inset: 0;
    z-index: 1; /* Fondo */
    pointer-events: none; /* No interfiere con clics en el mapa */
}

.f-luciernagas::before {
    content: "";
    position: absolute;
    inset: -145%;
    rotate: -45deg;
    background: transparent; /* Quitamos el negro para usar el fondo de la sección */
    
    /* Mantenemos tus radial-gradients exactos aquí... */
    background-image: radial-gradient(4px 100px at 0px 235px, #0f0, #0000),
        radial-gradient(4px 100px at 300px 235px, #0f0, #0000),
        radial-gradient(1.5px 1.5px at 150px 117.5px, #0f0 100%, #0000 150%),
        /* [... el resto de los gradients que me pasaste ...] */
        radial-gradient(1.5px 1.5px at 150px 105px, #0f0 100%, #0000 150%);
    
    /* Mantenemos tus background-sizes exactos aquí... */
    background-size: 300px 235px, 300px 235px, 300px 235px, 
        /* [... el resto de los sizes que me pasaste ...] */
        300px 210px, 300px 210px, 300px 210px;
        
    animation: hi 150s linear infinite;
    opacity: 0.6; /* Un toque de transparencia para no saturar */
}

/* Tus Keyframes 'hi' exactos van aquí (no los repito para ahorrar espacio) */
@keyframes hi {
    /* ... 0% to ... */
}

/* --- Capa de Contenido (Por encima del fondo) --- */
.cobertura-content {
    position: relative;
    z-index: 2; /* Por encima de la animación */
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#wrapper-mapa {
    width: 100%;
    margin-top: 40px;
    z-index: 3; /* El mapa o contenido arriba de todo */
}

/* ==========================================================
   ESTILOS DEL MAPA DE COBERTURA
   ========================================================== */

#wrapper-mapa {
    width: 100%;
    max-width: 1000px;
    margin-top: 30px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(120, 222, 253, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 5;
}

#mapa-alistar {
    width: 100%;
    height: 480px; /* Altura ideal para escritorios y móviles */
    background: #0b132b;
}

/* Personalización de los Popups oscuros del mapa */
.leaflet-popup-content-wrapper, .leaflet-popup-tip {
    background: #010849 !important;
    color: #ffffff !important;
    border: 1px solid #79defd;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.leaflet-popup-content b {
    color: #68d352;
}

/* Leyenda indicadora */
.mapa-leyenda {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    z-index: 5;
    flex-wrap: wrap;
}

.leyenda-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-family: "Oswald", sans-serif;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
}

.dot-fibra {
    background-color: #68d352;
    box-shadow: 0 0 8px #68d352;
}

.dot-radio {
    background-color: #79defd;
    box-shadow: 0 0 8px #79defd;
}

/* ==========================================================
   FOOTER - ALISTAR NETWORK
   ========================================================== */

.alistar-footer {
    background-color: #333d58; /* Tono oscuro profundo en sintonía con la web */
    color: #ffffff;
    padding: 60px 20px 20px 20px;
    border-top: 1px solid rgba(120, 222, 253, 0.2);
    position: relative;
    z-index: 10;
    font-family: "Oswald", sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Columna de Marca */
.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #68d352; /* Verde corporativo */
    margin: 0 0 5px 0;
    letter-spacing: 0.5px;
}

.footer-logo span {
    color: #ffffff;
}

/* Estilo para ajustar el tamaño del logo en el footer */
.footer-logo-img {
    max-width: 200px;  /* Puedes ajustarlo a 150px o 200px según prefieras */
    height: auto;
    display: block;
    margin-bottom: 10px;
}

.footer-rif {
    font-size: 0.95rem;
    color: #79defd; /* Azul neón */
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin: 0;
    font-family: sans-serif; /* Texto plano legible */
}

/* Títulos de Columnas */
.footer-title {
    font-size: 1.2rem;
    color: #68d352;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Listas y Textos */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: sans-serif;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #79defd;
}

.footer-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin: 0;
    font-family: sans-serif;
}

/* Barra inferior */
.footer-bottom {
    max-width: 1200px;
    margin: 20px auto 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    font-family: sans-serif;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.footer-bottom-links a {
    color: #79defd;
    text-decoration: none;
}

.footer-bottom-links a:hover {
    text-decoration: underline;
}

/* Ajuste Responsive para Móviles */
@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================
   AJUSTES RESPONSIVOS PARA MÓVILES (Pantallas < 768px)
   ========================================================== */

.btn-menu-toggle,
.nav-menu-mobile-wrapper {
    display: none;
}

@media (max-width: 768px) {
    /* Barra Superior Header */
    .alistar-header {
        padding: 10px 12px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 5px;
    }

    /* Ocultar los enlaces planos de PC */
    .alistar-header > .nav-links {
        display: none;
    }

    /* Logo Centrado en Móvil */
    .header-logo-container {
        flex: 1;
        display: flex;
        justify-content: center;
    }

    .header-logo {
        height: 48px; /* Tamaño optimizado para móvil */
        width: auto;
    }

    /* Botón MENÚ Hamburguesa (Izquierda) */
    .btn-menu-toggle {
        display: flex;
        width: 85px;
        height: 34px;
        border-radius: 6px;
        border: 1px solid rgba(120, 222, 253, 0.4);
        font-size: 11px;
        font-family: "Oswald", sans-serif;
        font-weight: 600;
        align-items: center;
        background: #0b132b;
        color: #f5f5f5;
        cursor: pointer;
        position: relative;
        overflow: hidden;
        flex-shrink: 0;
        z-index: 1001;
    }

    .btn-menu-toggle .icon {
        position: absolute;
        height: 24px;
        width: 32px;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: all 0.4s;
    }

    .btn-menu-toggle .text {
        transform: translateX(34px);
        transition: all 0.4s;
    }

    .btn-menu-toggle:hover .icon {
        width: 85px;
    }

    .btn-menu-toggle:hover .text {
        opacity: 0;
    }

    /* Botón Portal de Pago (Derecha, compacto y centrado) */
    .header-action {
        margin-right: 20px !important;
        flex-shrink: 0;
    }

    .btn-portal-animado {
        margin: 0 !important;
        padding: 6px 10px !important;
        font-size: 10px !important;
        letter-spacing: 0.3px;
        white-space: nowrap;
        border-radius: 5px;
    }

    /* Menú Cortina Desplegable Móvil */
    .nav-menu-mobile-wrapper {
        position: fixed;
        top: 68px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 68px);
        background: rgba(82, 98, 146, 0.98);
        backdrop-filter: blur(15px);
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 35px;
        transition: left 0.4s ease-in-out;
        z-index: 999;
    }

    .nav-menu-mobile-wrapper.active {
        left: 0;
    }

    .mobile-menu-logo {
        margin-bottom: 25px;
    }

    .mobile-menu-logo img {
        height: 55px;
        width: auto;
    }

    .mobile-links-list {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    .mobile-link {
        color: #ffffff;
        text-decoration: none;
        font-size: 1.2rem;
        font-family: "Oswald", sans-serif;
        letter-spacing: 1px;
    }

    /* --- CENTRADO Y AJUSTE DEL HERO / BANNER PRINCIPAL --- */
    .hero-interactive {
        min-height: 480px;
        padding: 40px 15px;
    }

    .hero-banner-content {
        flex-direction: column; /* Apila el logo y los textos verticalmente */
        text-align: center;
        gap: 20px;
    }

    .hero-logo-box img {
        width: 100px; /* Tamaño adecuado en móvil */
        margin: 0 auto;
    }

    .hero-text-box {
        text-align: center;
    }

    .hero-text-box h1 {
        font-size: 1.6rem !important; /* Título adaptado a pantallas pequeñas */
        line-height: 1.3;
    }

    .hero-text-box p {
        font-size: 0.95rem !important;
        line-height: 1.4;
    }
}