/* VARIABLES GLOBALES */
:root {
    --azul-oscuro: #20207d;
    --azul-claro: #3333cc;
    --blanco: #FFFFFF;
    --gris-claro: #999999;
}

/* ESTILOS HEADER */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
}

/* Header superior blanco */
.top-header {
    background-color: white;
    min-height: 70px;
    border-bottom: 1px solid #eaeaea;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.top-header a {
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 20px;
    white-space: nowrap;
}

.top-header a.btn-para-ti {
    background-color: #f0f7ff;
    color: #0066CC;
}

.top-header a.btn-empresa {
    background-color: #e6f7ee;
    color: #28a745;
}

.top-header a.btn-contactenos {
    background-color: #28a745;
    color: white;
    padding: 8px 15px;
}

.top-header a.btn-copia-factura {
    background-color: #0066CC;
    color: white;
    border-radius: 20px;
    padding: 8px 15px;
}

.top-header a:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.top-header .separator {
    color: #ddd;
    margin: 0 10px;
}

.soporte-text {
    color: #333;
}

.social-icon {
    font-size: 1.1rem;
    margin-left: 12px;
    color: #555;
    transition: color 0.3s;
}

.social-icon:hover {
    color: #0066CC;
}

/* Header principal azul */
.main-navbar {
    background: linear-gradient(135deg, var(--azul-oscuro), var(--azul-claro));
    min-height: 70px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
/* Top header blanco */
.top-header {
    position: relative; /* siempre estático */
    width: 100%;
    z-index: 1100;
}

/* Navbar azul */
.main-navbar {
    background: linear-gradient(135deg, var(--azul-oscuro), var(--azul-claro));
    min-height: 70px;
    width: 100%;
    position: relative; /* estático al inicio */
    z-index: 1050;
}

/* Navbar azul fijo difuminado */
.main-navbar.fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transition: opacity 2.5s ease, backdrop-filter 2.5s ease-in-out;
}

/* Cuando debe aparecer difuminado y lento */
.main-navbar.fixed.visible {
    opacity: 1;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Dropdowns */
.main-navbar .dropdown-menu {
    position: absolute !important;
    z-index: 2000;
}

/* --------------- */
.nav-link {
    color: #fff !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: background-color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.dropdown-menu {
    background: linear-gradient(135deg, var(--azul-oscuro), var(--azul-claro));
    border: none;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px;
}

.dropdown-item-btn {
    display: block;
    width: 100%;
    text-align: left;
    background: linear-gradient(135deg, var(--azul-oscuro), var(--azul-claro));
    color: white;
    border: none;
    padding: 10px 15px;
    margin: 5px 0;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
}

.dropdown-item-btn:hover {
    background-color: #0066CC;
    transform: translateX(5px);
}

.btn-primary {
    background-color: #0066CC;
    border: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.dropdown:hover .dropdown-menu {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-section {
    padding: 60px 0;
}

.demo-box {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 1200px) {
    .top-header .d-none.d-xl-flex {
        display: none !important;
    }

    .top-header .d-xl-none {
        display: flex !important;
    }
}

@media (max-width: 992px) {
    .top-header .d-none.d-lg-flex {
        display: none !important;
    }

    .top-header .d-lg-none {
        display: flex !important;
    }

    .top-header .contact-info {
        flex-direction: column;
        align-items: flex-end;
    }

    .top-header .contact-info>* {
        margin-bottom: 5px;
    }
}

@media (max-width: 768px) {
    .top-header {
        padding: 10px 0;
    }

    .top-header .container>div {
        flex-direction: column;
        align-items: center;
    }

    .top-header .mobile-wrap {
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .top-header .mobile-wrap>div {
        margin: 5px 0;
    }

   .navbar-brand img {
    height: 60px;
    object-fit: contain;
}


    .btn-mobile-contract {
        margin-top: 15px;
    }
}

@media (max-width: 576px) {
    .top-header a {
        padding: 6px 10px;
        font-size: 0.85rem;
    }

    .top-header .soporte-text {
        font-size: 0.85rem;
        font-weight: normal;
        /* quitar la negrilla general */
    }

    .navbar-nav {
        text-align: center;
    }

    .btn-primary {
        padding: 6px 16px;
        font-size: 0.9rem;
    }
}

/* Estilos para el botón de menú móvil */
.navbar-toggler {
    border: none;
    padding: 0;
    font-size: 1.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* FIN DE ESTILOS HEADER */



/* Botón flotante de WhatsApp */

.whatsapp-float img {
    width: 50px;
    /* Reducido del icono */
}

.whatsapp-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    /* Esto invierte el orden */
    animation: pulse 2s infinite;
}

.whatsapp-float {
    /* Mantenemos todos los estilos originales */
    position: relative;
}

.whatsapp-text {
    background-color: white;
    color: black;
    padding: 8px 12px;
    font-size: 0.7rem;
    /* Cambia este valor para reducir el tamaño */
    padding: 8px 12px;
    /* Ajusta el padding si es necesario */
    border-radius: 20px;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    margin-right: 8px;
    /* Espacio entre texto e icono */
    order: 1;
    /* Forzamos el orden */
}


/* Stilos Inconos redes sociales del header */

.social-icons svg {
    width: 28px;
    height: 28px;
    gap: 0;
    /* ajusta a tu gusto (ejemplo: 4px, 6px, 8px...) */
}

/* Stilos para el modal de alerta */
/* Estilos para el modal */
.modal-content {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    border: none;
}

.modal-header {
    background: linear-gradient(135deg, var(--azul-oscuro), var(--azul-claro));
    color: var(--blanco);
    text-align: center;
    position: relative;
    padding: 20px;
}

.modal-title {
    font-weight: 900;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    width: 100%;
    text-align: center;
    letter-spacing: 1px;
}

.btn-close {
    position: absolute;
    right: 15px;
    top: 15px;
    z-index: 100;
    background-color: var(--blanco);
    opacity: 0.8;
    border-radius: 50%;
    padding: 8px;
}

.btn-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 30px;
    text-align: center;
    background-color: var(--blanco);
}

.modal-footer {
    background: linear-gradient(135deg, var(--azul-oscuro), var(--azul-claro));
    padding: 20px;
    display: flex;
    justify-content: center;
    border: none;
}

.btn-whatsapp {
    background-color: #25D366;
    color: var(--blanco);
    font-weight: bold;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    font-size: 1.1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    color: var(--blanco);
}

.offer-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--azul-claro);
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.message-text {
    font-size: 1.2rem;
    margin-bottom: 15px;
    line-height: 1.5;
    color: var(--azul-oscuro);
}

.countdown {
    font-size: 0.9rem;
    color: var(--gris-claro);
    margin-top: 15px;
}

/* Animación de aparición */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }

    100% {
        transform: scale(1);
    }
}

.modal-content {
    animation: pulse 2s infinite;
}