/* ===== RESET Y FUENTE ===== */

/* ===== RESET Y FUENTE ===== */
html {
    margin: 0;
    padding: 0;
    height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    color: #1A1728;
    background: #fafafa;
    overflow-x: hidden;
    width: 100vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* MAIN OCUPA TODO */
main {
    flex: 1;
    background-color: #ffffff !important;
}

/* BOTÓN */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}



::-webkit-scrollbar {
    width: 0px;
    background: transparent;
    display: none;
}
/* ===== PALETA DE COLORES ===== */

:root {
    --verde: #0D47A1;
    --fucsia: #FFA726;
    --rosa: #FFA726;
    --texto-oscuro: #1A1728;
    --blanco: #ffffff;
    --gris: #f4f4f4;
}
h1{
    color:var(--fucsia)
}
/* ===== NAVBAR ===== */

.navbar {
    display: flex;
    margin-right: auto;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--verde);
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 3rem;
}

    .navbar.scrolled {
        background: var(--verde);
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--blanco);
    font-size: 1.8rem;
    cursor: pointer;
}

.nav-links ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--blanco);
    text-decoration: none;
    transition: color 0.3s;
}

    .nav-links a:hover {
        color: var(--rosa);
    }

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        width: 100%;
        background: var(--verde);
        position: absolute;
        top: 100%;
        left: 0;
        padding: 1rem 2rem;
        box-sizing: border-box;
    }

        .nav-links ul {
            flex-direction: column;
            gap: 1rem;
            padding: 0;
            margin: 0;
        }

        .nav-links.show {
            display: block;
        }
}
.nav-links a.active {
    color: var(--rosa) !important;
}
    .nav-links a.active .material-symbols-outlined {
        color: var(--rosa) !important;
    }

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--blanco);
    text-decoration: none;
    cursor: pointer;
}

    .logo:hover {
        color: var(--rosa);
    }

.logo-img {
    height: 50px;
    width: auto;
    max-width: 100%;
}
/* ===== HERO ===== */

.hero {
    background: var(--hero-bg, linear-gradient(to right, var(--verde), var(--rosa)));
    color: var(--blanco);
    text-align: center;
    padding: 6rem 2rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-size: cover;
    background-position: center;
}

    .hero h1 {
        font-size: 2.8rem;
        margin-bottom: 1rem;
        animation: fadeIn 1.2s ease-in;
    }

    .hero p {
        font-size: 1.2rem;
        margin-bottom: 2rem;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
/* ===== BOTÓN ===== */ /* Botón general */

.btn {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    background: var(--blanco);
    color: var(--verde);
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

    .btn:hover {
        background: var(--rosa);
        color: var(--blanco);
        transform: scale(1.05);
    }
.btn1 {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    background: var(--verde);
    color: var(--blanco);
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
    display: block;
    margin: 0 auto; /* CENTRA EL BOTÓN */
}
.btn1:hover {
    background: var(--rosa);
    color: var(--blanco);
    transform: scale(1.05);
}
.btn2 {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    background: var(--rosa);
    color: var(--blanco);
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
    display: block;
    margin: 0 auto; /* CENTRA EL BOTÓN */
}

    .btn2:hover {
        background: var(--verde);
        color: var(--blanco);
        transform: scale(1.05);
    }
.contact-form .btn {
    display: block;
    margin: 1rem auto 0;
    width: 200px !important; /* fuerza el ancho fijo */
    max-width: 80%; /* en móvil no se rompe */
    padding: 0.8rem 1.6rem;
    font-size: 0.9rem;
    text-align: center;
}
/* ===== TITULOS DE SECCIÓN ===== */

.section-title {
    text-align: center;
    font-size: 2rem;
    margin: 2rem 0;
    color: var(--verde);
}
/* ===== SERVICIOS ===== */

.servicios {
    padding: 4rem 2rem;
    text-align: center;
    background: var(--blanco);
}

    .servicios .cards {
        display: flex;
        gap: 2rem;
        justify-content: center;
        flex-wrap: wrap;
        padding: 2rem;
    }

/*.card {
    background: linear-gradient(to top, #ffffff, #f5f2fa);
    padding: 2rem;
    border-radius: 12px;
    width: 280px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

    .card h3 {
        color: var(--verde);
    }

    .card:hover {
        transform: translateY(-10px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }*/
/* Layout de las cards */
.cards {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Card estilo Uiverse fusionado con tu diseño */
.card {
    position: relative;
    width: 300px;
    min-height: 260px;
    padding: 2rem;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 20px 20px 60px #bebebe, -20px -20px 60px #ffffff;
    display: flex;
    flex-direction: column;
    transition: transform .4s ease, box-shadow .4s ease;
    z-index: 5;
}

    /* Fondo difuminado (cristal) */
    .card .bg {
        position: absolute;
        inset: 10px;
        background: rgba(255, 255, 255, .92);
        backdrop-filter: blur(18px);
        border-radius: 12px;
        border: 2px solid white;
        z-index: -1;
    }

    /* Blob animado */
    .card .blob {
        position: absolute;
        width: 180px;
        height: 180px;
        border-radius: 50%;
        background: var(--verde);
        opacity: .4;
        filter: blur(22px);
        z-index: -2;
        animation: blob-bounce 6s infinite ease-in-out;
        top: 50%;
        left: 50%;
    }

/* Animación del blob */
@keyframes blob-bounce {
    0% {
        transform: translate(-120%, -120%);
    }

    25% {
        transform: translate(30%, -120%);
    }

    50% {
        transform: translate(30%, 30%);
    }

    75% {
        transform: translate(-120%, 30%);
    }

    100% {
        transform: translate(-120%, -120%);
    }
}

/* Título con tu color */
.card h3 {
    color: var(--verde);
    position: relative;
    z-index: 10;
    margin-top: 0;
}

/* Texto */
.card p {
    position: relative;
    z-index: 10;
    line-height: 1.5;
}

/* Hover suave */
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 35px rgba(0,0,0,0.15);
}


/* ===== NOSOTROS ===== */

.nosotros {
    background: #fff;
    padding: 3rem 1rem;
    text-align: center;
    font-size: 1.1rem;
}

    .nosotros .valores {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin: 1.5rem 0;
    }

    .nosotros .valor {
        flex: 1 1 140px;
        max-width: 220px;
        padding: 0.2rem;
    }

        .nosotros .valor h3 {
            font-size: 2rem;
            color: var(--verde);
            margin: 0 0 0.3rem 0;
        }

        .nosotros .valor p {
            margin: 0;
            font-size: 0.95rem;
        }

    .nosotros .fortalezas {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-top: 1rem;
    }

    .nosotros .fortaleza {
        flex: 1 1 180px;
        max-width: 250px;
        padding: 0.2rem;
    }

        .nosotros .fortaleza h4 {
            margin: 0.2rem 0;
            font-size: 1.1rem;
        }

        .nosotros .fortaleza p {
            margin: 0;
            font-size: 0.9rem;
        }

        .nosotros .fortaleza span {
            font-size: 1.6rem;
        }
/* === RESPONSIVE === */

@media (max-width: 768px) {
    .nosotros {
        padding: 2rem 0.5rem;
    }

        .nosotros .valores, .nosotros .fortalezas {
            flex-direction: column;
            align-items: center;
            gap: 0.3rem;
            margin: 1rem 0;
        }

        .nosotros .valor, .nosotros .fortaleza {
            max-width: 100%;
        }

            .nosotros .valor h3 {
                font-size: 1.6rem;
            }

            .nosotros .fortaleza h4 {
                font-size: 1rem;
            }

            .nosotros .fortaleza p {
                font-size: 0.85rem;
            }
}
/* ===== FOOTER ===== */

footer {
    background: var(--verde);
    color: var(--blanco);
    text-align: center;
    padding: 1rem;
}
/* ===== ANIMACIONES ===== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade, .animate-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-visible {
    opacity: 1;
    transform: translateY(0);
}
/* ===== CONTACTO ===== */

.contacto {
    background-color: #ffffff !important;
    padding: 6rem 2rem;
    text-align: center;
    width: 100%;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

    .contact-form input, .contact-form textarea {
        padding: 1rem;
        border: 1px solid #ddd;
        border-radius: 8px;
        outline: none;
        font-size: 1rem;
        resize: vertical;
        width: 100%;
        box-sizing: border-box;
        transition: border 0.3s;
    }

        .contact-form input:focus, .contact-form textarea:focus {
            border: 1px solid var(--verde);
        }

    .contact-form button.btn {
        width: 100%;
        max-width: 100%;
    }
/* ===== ALERTAS ===== */

.alert {
    max-width: 600px;
    margin: 1rem auto;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-size: 1rem;
}

.alert-success {
    background-color: #e6f4ea;
    color: #2f7a32;
    border: 1px solid #2f7a32;
}

.alert-danger {
    background-color: #fdecea;
    color: #a12d2f;
    border: 1px solid #a12d2f;
}
/* ===== COOKIE BANNER ===== */

.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: #fff;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 1rem 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    max-width: 600px;
    margin: auto;
    opacity: 1;
    transition: opacity 0.4s ease;
}

    .cookie-banner p {
        margin: 0;
        font-size: 0.95rem;
        flex: 1;
        padding-right: 1rem;
    }

    .cookie-banner .btn {
        padding: 0.6rem 1.2rem;
        border: none;
        background: var(--verde);
        color: #fff;
        border-radius: 4px;
        cursor: pointer;
        font-weight: 500;
    }

        .cookie-banner .btn:hover {
            background: var(--rosa);
        }
/* ===== VALORES Y TESTIMONIOS ===== */

.valores {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 3rem 0;
    text-align: center;
}

.valor h3 {
    font-size: 2.5rem;
    color: var(--verde);
    margin: 0;
}

.testimonios {
    background: #fff;
    padding: 6rem 2rem;
    text-align: center;
}

.testimonios-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-top: 3rem;
}

.testimonio {
    background: var(--gris);
    padding: 2rem;
    border-radius: 12px;
    max-width: 300px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

    .testimonio:hover {
        transform: translateY(-10px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    }

    .testimonio img {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        object-fit: cover;
    }
/* ===== Botón Ir Arriba ===== */

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: none;
    background: var(--verde);
    color: white;
    border: none;
    border-radius: 50%;
    width: 3.2rem;
    height: 3.2rem;
    font-size: 1.4rem;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    line-height: 3.2rem;
    transition: background 0.3s ease, opacity 0.3s ease;
    opacity: 0.8;
}

    .back-to-top:hover {
        background: var(--rosa);
        opacity: 1;
    }



/* Contenedor */
.tabs {
    max-width: 900px;
    margin: 20px auto;
    border: 1px solid #e4e4e4;
    border-radius: 8px;
    overflow: hidden
}

/* Fila de tabs (hace scroll en pantallas pequeñas) */
.tabs-nav {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    white-space: nowrap;
    padding: 6px;
    background: #fafafa;
}
/* oculta los radios */
.tabs input {
    display: none
}

/* estilo de cada etiqueta (tab) */
.tabs label {
    display: inline-block;
    padding: 8px 14px;
    cursor: pointer;
    border-radius: 6px;
    user-select: none;
    font-size: 14px;
    line-height: 1;
    border: 1px solid transparent;
    margin-right: 4px;
    flex: 0 0 auto;
}

    /* estado no seleccionado */
    .tabs label:hover {
        filter: brightness(.98)
    }
/* contenido por defecto oculto */
.tabs .tab-content {
    display: none;
    padding: 16px;
    background: white
}

/* cuando un input está chequeado, muestra su contenido y estiliza su label */
#tab1:checked ~ .tabs-nav label[for="tab1"],
#tab2:checked ~ .tabs-nav label[for="tab2"],
#tab3:checked ~ .tabs-nav label[for="tab3"],
#tab4:checked ~ .tabs-nav label[for="tab4"] {
    background: #1976d2;
    color: white;
    border-color: #0f5fb3;
}

#tab1:checked ~ .content #panel1,
#tab2:checked ~ .content #panel2,
#tab3:checked ~ .content #panel3,
#tab4:checked ~ .content #panel4 {
    display: block;
}

/* Responsive: en pantallas grandes muestra labels como fila centrada */
@media(min - width:700px) {
    .tabs-nav {
        justify-content: flex-start;
        padding: 10px 12px
    }

    .tabs label {
        font-size: 15px
    }
}
.tab-img {
    width: 300px; /* ancho fijo */
    height: 200px; /* alto fijo */
    object-fit: contain; /* ajusta la imagen sin deformarse */
    display: block;
    margin: auto;
}
.tab-img1 {
    width: 400px; /* ancho fijo */
    height: 300px; /* alto fijo */
    object-fit: contain; /* ajusta la imagen sin deformarse */
    display: block;
    margin: auto;
}


.seccion {
    margin-bottom: 25px;
}

.seccion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.seccion-titulo {
    color: #d81b60; /* Rosa fuerte como el de tu ejemplo */
    margin: 0;
    font-size: 20px;
    letter-spacing: 2px;
    font-weight: bold;
}

.seccion-toggle {
    background: none;
    border: none;
    color: #FFA726;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .seccion-toggle .icono {
        font-size: 18px;
        font-weight: bold;
    }

.seccion-contenido {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease;
    padding-top: 10px;
}

    .seccion-contenido.open {
        max-height: 2000px;
    }

.icon-menu {
    font-size: 20px;
    margin-right: 6px;
    vertical-align: middle;
}
.icon-modulos {
    font-size: 20px;
    margin-right: 6px;
    vertical-align: middle;
}



#pageLoader {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner {
    width: 70px;
    height: 70px;
    border: 8px solid #fff;
    border-top: 8px solid #ff9900;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.65);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.modal-content {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    max-width: 380px;
    width: 90%;
    text-align: center;
    animation: fadeIn 0.3s ease-in-out;
}

.close {
    float: right;
    cursor: pointer;
    font-size: 23px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.swal2-success-ring {
    border-color: #0D47A1 !important;
}

.swal2-success-line-tip,
.swal2-success-line-long {
    background-color: #0D47A1 !important;
}

.swal2-success-circular-line-left,
.swal2-success-circular-line-right {
    background-color: transparent !important;
}
.swal2-icon {
    border: none !important;
}
.swal2-popup .swal2-icon {
    border: none !important;
}
.btn-swal {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    background: var(--verde);
    color: var(--blanco);
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
    display: block;
    margin: 0 auto; /* CENTRA EL BOTÓN */
}

    .btn-swal:hover {
        background: var(--rosa);
        color: var(--blanco);
        transform: scale(1.05);
    }
.back-to-top {
    position: fixed !important;
    bottom: 90px !important;
    right: 20px !important;
    z-index: 99999   !important;
}



.download-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* ?? Siempre 3 por fila */
    gap: 20px;
    margin-top: 30px;
}

/* En pantallas pequeñas (celular), baja a 1 o 2 solito */
@media (max-width: 900px) {
    .download-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .download-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

.download-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform .2s ease, box-shadow .2s ease;
    cursor: pointer;
    text-decoration: none;
    color: #333;
}

    .download-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    }

    .download-card .material-symbols-outlined {
        font-size: 48px;
        color: #1976D2;
        margin-bottom: 10px;
    }

    .download-card h4 {
        font-size: 18px;
        margin-bottom: 10px;
    }