header {
    background: #13406F;
    padding: 0.8rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 70px;
    justify-content: space-between;
    align-items: center;
    border-bottom: rgb(234, 36, 1) 6px solid;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logo-container:hover {
    transform: translateY(-2px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.logo-img {
    height: 45px !important;
    display: flex !important;
    align-items: center !important;
}

.logo-text {
    font-size: 2.2rem;
    font-weight: 900;
    color: #FFFFFF;
    display: inline-flex;
    align-items: start;
    gap: 5px;
    line-height: 1;
}

.logo-subtext {
    font-size: 0.8rem;
    font-weight: 200;
    color: #FFFFFF;
    opacity: 0.9;
    position: relative;
    top: 7px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1rem;
    align-items: center;
    padding: 0.4rem 0.9rem;
}

nav a {
    text-decoration: none;
    color: #FFFFFF;
    font-weight: 500;
    padding: 0.4rem 0.9rem;
    border: 2px solid transparent;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    font-size: 1.1rem;
}

nav a:hover {
    color: #0056A3;
    background: #FFFFFF;
    border-color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.btn-ingresar {
    background: #f8d04d !important;
    color: #333333 !important;
    border-radius: 50px !important;
    border: 2px solid #434343 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    gap: 0.4rem !important;

    padding: 0.55rem 1.2rem !important;
    min-height: 42px;

    font-size: 0.95rem !important;
    font-weight: 600 !important;

    white-space: nowrap;

    transition: all 0.3s ease !important;
}
.btn-ingresar-ajr {
    background: #0c92eb !important;
    color: #333333 !important;
    border-radius: 50px !important;
    border: 2px solid #434343 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    gap: 0.4rem !important;

    padding: 0.55rem 1.2rem !important;
    min-height: 42px;

    font-size: 0.95rem !important;
    font-weight: 600 !important;

    white-space: nowrap;

    transition: all 0.3s ease !important;
}

.btn-ingresar:hover {
    background: #18c76f !important;
    border-color: #18c76f !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4) !important;
    color: #333333 !important;
}
.btn-ingresar-ajr:hover {
    background: #18c76f !important;
    border-color: #18c76f !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4) !important;
    color: #333333 !important;
}

.btn-soporte {
    background: #18c76f !important;
    color: #333333 !important;
    border-radius: 50px !important;
    padding: 0.5rem 1.2rem !important;
    border: 2px solid #434343 !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    padding: 0.4rem 1rem !important;
    margin-left: 0.5rem !important;
    font-size: medium !important;
}

.btn-soporte:hover {
    background: #18c76f !important;
    border-color: #18c76f !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3) !important;
    color: #333333 !important;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 1rem;
}

.search-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.6rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.search-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.search-toggle:active {
    transform: scale(1) translateY(0);
}

.search-form {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    padding: 0.8rem;
    display: none;
    min-width: 320px;
    z-index: 1001;
    animation: slideDown 0.3s ease;
}

.search-form.active {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.search-input {
    flex: 1;
    padding: 0.9rem;
    border: 2px solid #E6F0FA;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.search-input:focus {
    border-color: #0056A3;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 86, 163, 0.1);
}

.search-submit {
    background: #0056A3;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.9rem 1.2rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.search-submit:hover {
    background: #003d7a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* BOTÓN HAMBURGUESA */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
}

.soporte-flotante {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #22c55e;
    color: white;
    padding: 14px 22px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: 0.3s ease;
}

.soporte-flotante:hover {
    transform: scale(1.05);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

@media (max-width: 768px) {
    header {
        background: #0056A3 !important;
        height: auto;
        padding: 0.5rem 0;
    }

    .main-content {
        margin-top: 120px;
    }

    /* .header-content {
                flex-direction: column;
                gap: 1rem;
                padding: 1rem 15px;
            }*/

    .header-content {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 15px;
    }

    /* .logo-container {
                justify-content: center;
                width: 100%;
            } */

    .logo-container {
        width: auto;
    }

    nav ul {
        gap: 0.6rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav a {
            font-size: 12px;
        padding: 0.35rem 0.7rem;
    }

    .hero {
        height: calc(100vh - 120px);
        padding: 0 15px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .logo-img {
        height: 45px;
    }

    .logo-text {
        font-size: 1.8rem;
    }

    .logo-subtext {
        font-size: 0.7rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-text {
        font-size: 1.1rem;
        padding: 0 15px;
    }

    .video-container {
        margin: 0 15px;
    }

    .tiers-container {
        flex-direction: column;
    }

    /* Ajustes mejorados para búsqueda en móviles */
    /* .search-container {
                order: 3;
                width: 100%;
                justify-content: center;
                margin-top: 0.5rem;
                margin-left: 0;
            } */

    .search-container {
        display: none;
    }

    .search-form {
        position: static;
        width: 100%;
        min-width: auto;
        margin-top: 0.5rem;
    }

    .search-form.active {
        display: flex;
    }

    .search-toggle {
        width: 45px;
        height: 45px;
        font-size: 1.4rem;
    }

    .btn-soporte {
        padding: 0.4rem 1rem !important;
        font-size: 0.8rem !important;
    }

    /* NUEVO */
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        color: white;
        font-size: 2rem;
        cursor: pointer;
    }

    #mainNav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #13406F;
        padding: 1rem 0;
        z-index: 999;
    }

    #mainNav.active {
        display: block;
    }

    #mainNav ul {
        flex-direction: column;
        gap: 1rem;
    }

    #mainNav li {
        width: 100%;
    }

    #mainNav a {
        width: 100%;
        text-align: center;
    }
}