﻿body, html {
    height: 100%;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #000;
}

/* CAPA DE FONDO INDEPENDIENTE */
.main-wrapper {
    position: relative;
    min-height: 100vh;
    overflow: hidden; /* Evita scrolls raros por el escalado del blur */
    display: flex;
    flex-direction: column;
}

    /* Usamos ::before para el blur, así NO afecta al contenido */
    .main-wrapper::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7)), url('https://www.uniandes.edu.ec/wp-content/uploads/2024/07/Sede-Tisaleo.jpg');
        background-size: cover;
        background-position: center;
        background-attachment: fixed;
        filter: blur(8px); /* EL BLUR SOLO AQUÍ */
        transform: scale(1.1); /* Para que el blur no deje bordes blancos */
        z-index: 0;
    }

/* CONTENEDOR DE CONTENIDO (100% NÍTIDO) */
.content-container {
    position: relative;
    z-index: 1; /* Por encima del ::before */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    text-shadow: 0px 2px 4px rgba(0,0,0,0.5);
}


/* Header con Efecto de Elevación */
.custom-header {
    padding: 10px 20px 40px;
    text-align: center;
    color: white;
}

    .custom-header h1 {
        font-weight: 700;
        font-size: 3.2rem;
        letter-spacing: 3px;
        text-transform: uppercase;
        /* Sombra para dar efecto de que las letras flotan */
        text-shadow: 0px 10px 20px rgba(0,0,0,0.9), 0px 4px 6px rgba(0,0,0,0.6);
        margin-bottom: 3px;
    }

    .custom-header h2 {
        font-weight: 400;
        font-size: 1.3rem;
        text-transform: uppercase;
        letter-spacing: 2px;
        text-shadow: 0px 4px 10px rgba(0,0,0,0.8);
        font-family: Arial;
    }

.logo-top {
    max-width: 220px;
    margin-bottom: 13px;
    /* Sombra suave al logo para despegarlo del fondo */
    filter: drop-shadow(0px 5px 15px rgba(0,0,0,0.5));
}

/* Tarjetas Estilo Glassmorphism */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    transition: all 0.3s ease;
    color: white;
    height: 100%;
}

    .glass-card:hover {
        transform: translateY(-10px);
        background: rgba(255, 255, 255, 0.15);
        box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    }

.img-container {
    padding: 12px;
    background: white;
    margin: 15px;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

    /* Mejora para que las imágenes blancas no brillen tanto en la cara del usuario */
    .img-container img {
        filter: multiply(0.9); /* Suaviza el blanco puro */
        transition: transform 0.3s ease;
    }

.glass-card:hover .img-container img {
    transform: scale(1.1); /* Efecto zoom al pasar el mouse por la tarjeta */
}

.btn-select {
    background: #007bff;
    border: none;
    border-radius: 50px;
    padding: 10px 30px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

    .btn-select:hover {
        background: #0056b3;
        transform: scale(1.05);
    }

.btn-select {
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, #007bff, #00aaff);
    border: none;
    transition: all 0.3s ease;
}

    .btn-select::after {
        content: '';
        position: absolute;
        top: -50%;
        left: -60%;
        width: 20%;
        height: 200%;
        background: rgba(255, 255, 255, 0.2);
        transform: rotate(30deg);
        transition: all 0.5s;
    }

    .btn-select:hover::after {
        left: 120%;
    }


/* Footer */
.custom-footer {
    margin-top: auto;
    background: rgba(0, 0, 0, 0.85);
    padding: 25px 0;
    text-align: center;
    border-top: 2px solid #007bff;
    padding-bottom: calc(25px + env(safe-area-inset-bottom));
}

.accent-text {
    color: #00aaff;
    font-weight: 600;
}

/* Asegura que la tarjeta tenga una altura mínima y use Flexbox */
.glass-card.centered-content {
    display: flex;
    justify-content: center; /* Centrado horizontal */
    align-items: center; /* Centrado vertical */
    min-height: 250px; /* Ajusta esta altura según prefieras */
    padding: 0; /* Quitamos padding para que sea exacto */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
}

/* Contenedor del botón si necesitas separar márgenes internos */
.button-wrapper {
    width: 100%;
    text-align: center;
}

/* Estilo específico para tu botón de regresar */
.btn-regresar {
    background: #f72a0e; /* Un color gris para diferenciarlo de "Seleccionar" */
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 40px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

    .btn-regresar:hover {
        background: #e4a40d;
        transform: scale(1.05);
        color: white;
    }

.btn-transparente {
    background-color: transparent !important; /* Fondo transparente */
    border: none; /* Borde blanco muy suave */
    height: 10px;
    width: 80px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    padding: 0;
    display: inline-block;
    line-height: 0;
}

    .btn-transparente:hover {
        background-color: rgba(255, 255, 255, 0.1) !important; /* Brillo ligero al pasar el mouse */
        border-color: rgba(255, 255, 255, 0.8);
    }





/* --- AJUSTES PARA DISPOSITIVOS MÓVILES (Pantallas menores a 768px) --- */
@media (max-width: 768px) {
    .custom-header h1 {
        font-size: 1.8rem; /* Título más pequeño en móvil */
        letter-spacing: 1px;
    }

    .custom-header h2 {
        font-size: 1rem; /* Subtítulo más pequeño */
    }

    .logo-top {
        max-width: 150px; /* Logo más pequeño */
    }

    .custom-header {
        padding: 30px 10px 20px; /* Menos espacio arriba */
    }

    .img-container {
        margin: 10px;
        padding: 8px;
    }

        .img-container img {
            height: 100px !important; /* Imágenes de los iconos más pequeñas */
        }

    .glass-card {
        margin-bottom: 20px; /* Separación entre tarjetas al apilarse */
    }

    /* Asegura que el contenedor no tenga scroll horizontal */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* --- AJUSTES PARA PANTALLAS MUY PEQUEÑAS (Pantallas menores a 480px) --- */
@media (max-width: 480px) {
    .custom-header h1 {
        font-size: 1.5rem;
    }

    .btn-select, .btn-regresar {
        width: 100%; /* Botones a lo ancho total del dispositivo */
        padding: 12px 20px;
    }
}
/*


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
*/
.glass-card {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Retraso para que aparezcan una tras otra */
.col-lg-4:nth-child(1) .glass-card {
    animation-delay: 0.2s;
}

.col-lg-4:nth-child(2) .glass-card {
    animation-delay: 0.4s;
}

.col-lg-4:nth-child(3) .glass-card {
    animation-delay: 0.6s;
}