
/* card central */
.swiper-slide-active {
    transform: scale(1.2);
    opacity: 1;
    z-index: 2;
}
        /* =========================
           Volver arriba
        ========================= */
        
        #btnTop {
        position: fixed;
        bottom: 20px;
        right: 20px;

        width: 50px;
        height: 50px;

        border-radius: 50%;
        font-size: 20px;

        display: none; /* oculto al inicio */
        z-index: 999;

        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
        }
        /* =========================
           PALETA
        ========================= */
        :root {
            --color-primario: #031B46;
            --color-secundario: #0E5177;
            --color-acento: #2EA6A6;
            --color-naranja: #FE9B52;
            --color-naranja-hover: #F18557;
        }

        /* =========================
           BASE
        ========================= */
        body {
            background: var(--color-primario);
            color: white;
            font-family: system-ui;
            margin: 0;
        }

        /* =========================
           NAVBAR
        ========================= */
        .navbar {
            background: var(--color-secundario) !important;
        }

        .navbar-brand,
        .nav-link {
            color: white !important;
        }

        .nav-link:hover {
            color: var(--color-acento) !important;
        }

        
        .hero {
            min-height: 100vh;

            background-image: url('/recursos/img/fondo_home_jpg.jpg');
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;

            display: flex;
            justify-content: center;
            align-items: flex-end; /* 👈 BAJA el contenido */

            padding-bottom: 10px; /* espacio desde abajo */

            position: relative;
            text-align:end;

            overflow: hidden;
                animation: zoomBg 10s ease-in-out infinite alternate;
        }

        .hero::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 150px;

            background: linear-gradient(
                to bottom,
                rgba(0,0,0,0) 0%,
                #031B46 100%
            );
        }

        /* overlay oscuro */
        .hero::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;

            background: rgba(0,0,0,0.5);

            animation: fadeIn 2s ease;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }


        /* contenido encima */
        .hero .container {
            position: relative;
            z-index: 1;

            animation: slideUp 1.2s ease;
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(80px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        .hero h1 {
            font-size: 3rem;
            text-shadow: 0 0 20px rgba(0,0,0,0.8);
        }

        .hero p {
            text-shadow: 0 0 10px rgba(0,0,0,0.7);
        }

        /* =========================
           TARJETAS
        ========================= */
        .card {
            background: var(--color-secundario);
            border: none;
            transition: transform 0.2s;
            overflow: hidden;
            border-radius: 12px;
        }

        .card:hover {
            transform: scale(1.05);
        }

        .card h4 {
            color: var(--color-acento);
        }
        .card-img-top {
            height: 200px;        /* altura máxima */
            object-fit: cover;    /* recorta sin deformar */
            width: 100%;
        }

        /* =========================
           BOTONES
        ========================= */
        .btn-primary {
            background: var(--color-naranja);
            border: none;
        }

        .btn-primary:hover {
            background: var(--color-naranja-hover);
        }

        /* =========================
           FOOTER
        ========================= */
        footer {
            background: #020d23;
            color: white;
        }
        /*hero box */

        .hero-box {
            background: rgba(255,255,255,0.15);
            backdrop-filter: blur(10px);
            color: white;
            
            border-radius: 20px;
            padding: 20px;


            max-width: 600px;
            margin: auto;

            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        }

        /* quitar sombras negras del texto */
        .hero-box h1,
        .hero-box p {
            text-shadow: none;
        }

        /* botón mantiene contraste */
        .hero-box .btn {
            margin-top: 10px;
        }



        /* =========================
   LOGIN BACKGROUND
========================= */
.login-bg {
    height: 100vh;

    background-image: url('/recursos/img/fondo_home_jpg.jpg');

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    justify-content: center;
    align-items: center;

    position: relative;
}

/* overlay oscuro */
.login-bg::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

/* =========================
   LOGIN BOX (VIDRIO)
========================= */
.login-container {
    position: relative;
    z-index: 1;

    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);

    padding: 40px;
    border-radius: 20px;

    width: 320px;
    color: white;


    box-shadow: 0 10px 30px rgba(0,0,0,0.4);

    animation: fadeIn 1s ease;
}

/* =========================
   INPUTS LOGIN
========================= */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    font-size: 14px;
    margin-bottom: 5px;
    display: block;
}

.input-group input {
    width: 100%;
    padding: 12px;

    border-radius: 12px;
    border: none;

    background: rgba(255,255,255,0.9);

    outline: none;
    box-sizing: border-box;

    appearance: none;
    -webkit-appearance: none;
}

.input-group input:focus {
    box-shadow: 0 0 0 2px var(--color-acento);
}

/* =========================
   BOTÓN LOGIN
========================= */
.btn-login {
    width: 100%;
    padding: 12px;

    border: none;
    border-radius: 10px;

    background: var(--color-naranja);
    color: white;

    font-weight: bold;
    cursor: pointer;

    transition: 0.3s;
}

.btn-login:hover {
    background: var(--color-naranja-hover);
    transform: scale(1.05);
}

/* =========================
   LINKS LOGIN
========================= */
.extra {
    text-align: center;
    margin-top: 15px;
}

.extra a {
    color: white;
    text-decoration: none;
}

/* BOTÓN OLVIDÉ CONTRASEÑA */
.btn-forgot {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;

    border-radius: 20px;

    background: var(--color-secundario);
    color: white;

    font-size: 14px;

    transition: 0.3s;
}

.btn-forgot:hover {
    background: var(--color-acento);
    transform: scale(1.05);
}


