/* ===== VARIABLES GLOBALES ===== */
:root{
    font-size:10px;
    background-color: #E9EEF3;
    --color-fondo: darkred;
    --fondonav: #1F1F1FE4;
    --azul-principal: #0baae9;
    --azul-secundario: #4FC3F7;
    --gris-oscuro: #1F1F1F;
    --gris-medio: #6B6B6B;
    --gris-claro: #F2F4F6;
    --blanco: #FFFFFF;
    font-family: Inter,sans-serif;
}
/*asdsdsds*/

/* Reset general */
*{
    padding: 0;
    margin: 0;
}

/* Texto azul principal */
.azulpri{
    color: var(--azul-principal);
}

/* Texto en negrita */
.lightbold{
    font-weight: bold;
}

/* Configuración general del body */
body{
    width: 100%;
    height: 100%;
}

/* ===== LOGO NAVBAR ===== */
#logoPL{
    width: 200px;
    height: auto;
}

/* ===== MENÚ FIJO SUPERIOR ===== */
#menu{
    background-color: var(--fondonav);
    width: 100%;
    z-index: 1000;
    position:fixed;
    top: 0;
}

/* Lista del menú */
#menu >ul{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
}

/* Items del menú */
#menu >ul>li{
    list-style: none;
    text-align: center;
}

/* Links del menú */
#menu >ul>li>a{
    text-decoration: none;
    color:white;
    font-size: 2rem;
}

/* Hover solo para links que NO sean el botón azul */
#menu > ul > li > a:hover:not(#solplan) {
    color: var(--azul-secundario);
}

/* Botón "Solicitá tu plan" */
#solplan{
    padding: 2rem;
    background-color: var(--azul-principal);
    border-radius: 25px;
    color:white;
    transition: background-color 0.3s ease;
}

/* Hover del botón azul */
#solplan:hover {
    background-color: var(--azul-secundario);
    color: white;
}

/* ===== CONTENIDO PRINCIPAL ===== */
#principalindex{
    display:flex;
    margin:auto;
    width:100%;
    flex-direction: column;
    justify-content: center;
}

/* ===== HERO ===== */
.contenedor-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Texto sobre la imagen */
.contenido-hero {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    color: white;
    max-width: 800px;
    text-align: left;
    font-family: sans-serif;
}

.contenido-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.1;
    font-weight: 600;
}

.contenido-hero p {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* Imagen del hero */
#fondo1 {
    width: 100%;
    height: 400px;
    object-fit: cover;
    filter: brightness(0.5);
}

/* ===== BENEFICIOS FLEX ===== */
.flex{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
}

.elemflex{
    text-align: center;
    padding: 10px;
}

.imagenflex{
    width: 40%;
    height: auto;
}

.textoflex{
    text-align: center;
}

/* Línea divisoria */
#gris{
    color:gray;
}

/* ===== SECCIÓN PLANES ===== */
.servicios {
    max-width: 1200px;
    margin: auto;
    padding: 4rem 2rem;
    text-align: left;
}

.servicios h1 {
    font-size: 2.6rem;
    margin-bottom: 1rem;
}

.descripcion {
    font-size: 1.6rem;
    max-width: 700px;
    margin-bottom: 4rem;
}

/* Grid de cards */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Card individual */
.card {
    background-color: var(--blanco);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.card h3 {
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.card p {
    font-size: 1.4rem;
    line-height: 1.6;
}

/* Responsive cards */
@media (max-width: 900px) {
    .cards {
        grid-template-columns: 1fr;
    }

    .servicios {
        text-align: center;
    }

    .descripcion {
        margin-left: auto;
        margin-right: auto;
    }
}

/* ===== TÍTULO FORMULARIO ===== */
#cont{
    text-align: center;
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--gris-oscuro);
    margin-bottom: 2.5rem;
    position: relative;
}

/* ===== SECCIÓN COBERTURA ===== */
.zona-cobertura {
    max-width: 1200px;
    margin: auto;
    padding: 6rem 2rem;
    text-align: center;
}

.titulo-seccion {
    font-size: 2.6rem;
    font-weight: 600;
    color: var(--gris-oscuro);
    margin-bottom: 1rem;
    position: relative;
}

.titulo-seccion::after {
    content: "";
    display: block;
    width: 70px;
    height: 4px;
    background-color: var(--azul-principal);
    margin: 1.2rem auto 0;
    border-radius: 10px;
}

.descripcion-seccion {
    font-size: 1.6rem;
    color: var(--gris-medio);
    max-width: 700px;
    margin: 0 auto 4rem;
    line-height: 1.6;
}

/* ===== MAPA ===== */
#map {
  height: 500px;
  width: 100%;
}

.mapa-container {
    background-color: var(--blanco);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* ===== FORMULARIO ===== */
#formulario {
    display: flex;
    justify-content: center;
    padding: 6rem 2rem;
}

#formulario form {
    background-color: var(--blanco);
    padding: 4rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    max-width: 450px;
    width: 100%;
}

.input-group {
    position: relative;
    margin-bottom: 2.5rem;
}

.input-group input {
    width: 90%;
    padding: 1.4rem 1.2rem;
    font-size: 1.3rem;
    border-radius: 12px;
    border: 1px solid #ccc;
    background: transparent;
    outline: none;
    transition: 0.3s ease;
}

.input-group label {
    position: absolute;
    left: 12px;
    top: 14px;
    font-size: 1.4rem;
    color: var(--gris-medio);
    pointer-events: none;
    transition: 0.3s ease;
    background-color: var(--blanco);
    padding: 0 5px;
}

.input-group input:focus,
.input-group input:valid {
    border-color: var(--azul-principal);
    box-shadow: 0 0 0 3px rgba(11,170,233,0.2);
}

.input-group input:focus + label,
.input-group input:valid + label {
    top: -10px;
    font-size: 1.2rem;
    color: var(--azul-principal);
}

/* Botón enviar */
.btn-enviar {
    width: 96%;
    padding: 1.4rem;
    font-size: 1.5rem;
    font-weight: 600;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    background: linear-gradient(
        90deg,
        var(--azul-principal),
        var(--azul-secundario)
    );
    color: white;
    transition: 0.3s ease;
}

.btn-enviar:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--gris-oscuro);
    color: var(--gris-claro);
    padding: 4rem 2rem 2rem;
}

.footer-contenido {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.footer-col h4 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: var(--blanco);
}

.footer-logo {
    width: 160px;
    margin-bottom: 1.5rem;
}

.footer-desc {
    font-size: 1.4rem;
    color: var(--gris-medio);
    line-height: 1.6;
}

.footer-nav {
    list-style: none;
    padding: 0;
}

.footer-nav li {
    margin-bottom: 1rem;
}

.footer-nav a {
    text-decoration: none;
    color: var(--gris-claro);
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--azul-principal);
}

.footer-col p {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--gris-medio);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
    text-align: center;
    font-size: 1.3rem;
    color: var(--gris-medio);
}

/* Responsive footer */
@media (max-width: 900px) {
    .footer-contenido {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo {
        margin: 0 auto 1.5rem;
    }
}

/* ===== BOTÓN WHATSAPP ===== */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float img {
    width: 32px;
    height: 32px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

/* ===== ANIMACIÓN SCROLL ===== */
.scroll-anim {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.scroll-anim.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== BARRA DE PROGRESO SUPERIOR ===== */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background: linear-gradient(
        90deg,
        var(--azul-principal),
        var(--azul-secundario)
    );
    z-index: 3000;
    transition: width 0.1s ease-out;
}

/* ===== MODAL COBERTURA ===== */
.coverage-modal {
    display: none;
    position: fixed;
    z-index: 5000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}

.coverage-content {
    position: relative; /* 👈 importante */
    background-color: var(--blanco);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.coverage-content h2 {
    margin-bottom: 1rem;
    font-size: 2rem;
}

.coverage-content p {
    font-size: 1.4rem;
}

#coverage-close {
        position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2.4rem;
    font-weight: bold;
    color: var(--gris-medio);
    cursor: pointer;
    transition: 0.2s ease;
}

#coverage-close:hover {
    color: var(--azul-principal);
    transform: scale(1.1);
}

/* Estados */
.coverage-success h2 {
    color: var(--azul-principal);
}

.coverage-error h2 {
    color: darkred;
}

/* Animación */
@keyframes fadeIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
