.hero {
    position: relative;
    z-index: 1;
}

.btn-primary {
    background-color: #042537 !important;
    padding: 15px 25px !important;
    border-radius: 15px !important;
    font-weight: bold !important;
    color: white !important;
    border: none !important;
    cursor: pointer !important;
    margin-top: 10px !important;
}

.btn-primary:hover {
    background-color: #093147 !important;
}

.show-menu {
    display: flex !important;
}

.dropdown-menu {
    min-width: 500px;
    padding: 15px;
    border-radius: 15px !important;
}

.card {
    transition: transform 0.3s ease-in-out;
}

.card:hover {
    transform: scale(1.05);
}

.btn-success {
    font-size: 24px;
}

.floating-navbar {
    background-color: rgba(9, 49, 71, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 50px;
    margin: 20px auto;
    width: 90%;
    max-width: 1200px;
    padding: 10px 20px;
    transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.floating-navbar.scrolled {
    background-color: rgba(9, 49, 71, 1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.navbar-brand img {
    height: 35px;
}

.navbar-nav .nav-link {
    color: white !important;
    font-weight: bold;
    margin: 0 10px;
    font-size: 18px;
}

.navbar-nav .nav-link:hover {
    text-decoration: underline;
}

.navbar-nav .btn-light {
    color: #093147 !important;
    font-weight: bold;
    border-radius: 20px;
    padding: 8px 20px;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(6, 43, 63, 0.473);
    display: none;
    z-index: 998;
}

.show-overlay {
    display: block !important;
}

.dropdown-menu.show {
    display: block !important;
}

.contacto-servicio .btn-warning {
    background-color: #ffb400;
    color: white;
    padding: 12px 25px;
    border-radius: 20px;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.contacto-servicio .btn-warning:hover {
    transform: scale(1.05);
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.3);
}

.btn-wsp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    width: 60px;
    height: 60px;
    background-color: #F7B71E;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
}

.btn-wsp:hover {
    transform: scale(1.1);
}

.btn-wsp img {
    width: 35px;
    height: auto;
}

.py-4 {
    box-shadow: inset 0px 10px 20px rgba(0, 0, 0, 0.2);
}

.container1-2 {
    display: flex;
    gap: 40px;
    padding: 60px 10%;
    flex-wrap: wrap;
    background-image: url('../img/Fondo_body.png') !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: cover !important;
}

aside {
    flex: 1;
    min-width: 200px;
}

aside h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.nav-links {
    list-style: none;
    padding-left: 0;
}

.nav-links li {
    cursor: pointer;
    margin-bottom: 15px;
    color: #888;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links li.active {
    color: #042537;
    font-weight: bold;
}

.nav-links li.active::before {
    content: "●";
    color: #042537;
    position: absolute;
    left: -15px;
}

.content {
    flex: 3;
    min-width: 300px;
}

.content h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #042537;
    margin-bottom: 20px;
}

.content p {
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
}

.pregunta-activa {
    display: block;
}

.pregunta-oculta {
    display: none;
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-10px); }
}

.volver-inicio {
    text-align: center;
    margin-top: 30px;
}

.volver-inicio .btn {
    padding: 10px 25px;
    border-radius: 20px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .container1-2 {
        flex-direction: column;
        padding: 40px 20px;
    }

    aside {
        margin-bottom: 30px;
    }

    .content h1 {
        font-size: 1.5rem;
    }

    .content p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 40vh !important;
    }

    .display-4 {
        font-size: 1.5rem;
    }

    .btn-primary {
        font-size: 12px;
    }

    .floating-navbar {
        padding: 5px 20px;
        margin-top: 0.2rem;
    }

    .navbar-nav .nav-link {
        font-size: 14px !important;
    }

    .dropdown-menu {
        min-width: 100% !important;
        max-width: 100% !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-bottom: 10px;
    }

    .dropdown-item {
        font-size: 14px !important;
        white-space: normal !important;
        line-height: 1.2;
    }

    .navbar-nav .btn-light {
        color: #093147 !important;
        font-weight: bold;
        border-radius: 5px;
        padding: 9px 8px;
        font-size: 14px;
    }

    .navbar-toggler-icon {
        width: 15px;
    }

    .navbar-brand img {
        height: 25px;
    }

    .fs-5 {
        font-size: 12px !important;
    }

    .particles {
        width: 100%;
        height: 700px !important;
    }

    p {
        font-size: 14px !important;
    }

    .container1-2 {
        flex-direction: column;
        padding: 20px;
    }

    aside {
        width: 100%;
        order: 1;
    }

    aside h2 {
        display: none;
    }

    .nav-links {
        display: flex;
        justify-content: space-around;
        padding: 10px;
        background-color: #eaf2f5;
        border-radius: 10px;
        overflow-x: auto;
        margin-bottom: 20px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }

    .nav-links li {
        flex: 1;
        text-align: center;
        font-size: 12px;
        padding: 10px 5px;
        border-radius: 10px;
        margin: 0 1px;
        white-space: nowrap;
        background-color: #ffffff;
        color: #042537;
        border: 1px solid #ccc;
        transition: background 0.3s;
    }

    .nav-links li.active {
        background-color: #042537;
        color: white;
        font-weight: bold;
        border: none;
    }

    .nav-links li.active::before {
        display: none;
    }

    .content {
        order: 2;
        margin-top: -50px;
    }

    .content h1 {
        font-size: 18px;
        text-align: center;
        margin-bottom: 15px;
    }

    .content p {
        font-size: 14px !important;
        text-align: justify;
        padding: 0 5px;
    }

    .volver-inicio {
        text-align: center;
        margin-top: 30px;
    }

    .volver-inicio .btn {
        font-size: 14px;
        padding: 10px 20px;
        border-radius: 15px;
    }
}
