/* --- Colores Institucionales --- */
:root {
    --tec-azul: #0a2351;
    --tec-verde: #1d4c43;
}

/* --- Estilos Generales --- */
.bg-login {
    background-color: #f0f2f5;
}

/* --- Header y Footer --- */
.nav-principal {
    background-color: var(--tec-azul);
}

.footer-sociales {
    background-color: var(--tec-azul);
}

.footer-institucional {
    background-color: var(--tec-verde);
}

.footer-sociales a {
    text-decoration: none;
}
.footer-sociales a:hover {
    text-decoration: underline;
}

/* --- Tarjeta de Login --- */
.login-card {
    background-color: white;
    padding: 2.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

/* --- Estilos de las Cards Redondas (Página Principal) --- */
.card-link {
    text-decoration: none;
}

.card-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%; /* Hace la card redonda */
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 0;
    border: none;
}

.card-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

/* Ajuste responsivo para el tamaño de las cards */
@media (max-width: 768px) {
    .card-circle {
        width: 150px;
        height: 150px;
    }
}


/* Hero Section con overlay oscuro para legibilidad */
.hero-section {
    background: linear-gradient(rgba(10, 35, 81, 0.7), rgba(0, 51, 102, 0.8)), url('https://www.tecnm.mx/images/tecnm/portada_tecnm.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Cursor parpadeante para el texto animado */
.typed-cursor {
    color: #fff;
    font-size: 2.5rem;
}

/* Efecto de elevación en las tarjetas de características */
#features .card:hover {
    transform: translateY(-10px);
    transition: transform 0.3s ease;
}

/* Sección Parallax */
.parallax-section {
    min-height: 400px;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://www.gob.mx/cms/uploads/article/main_image/88939/2019-11-28_13.27.12.jpg');
    background-attachment: fixed; /* Este es el truco para el efecto parallax */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* --- Estilos Mejorados para las Cards del Index --- */

/* Contenedor del círculo y su título */
.card-item .card-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 3px solid white;
    transition: all 0.3s ease-in-out;
}

.card-item .card-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la imagen llene el círculo sin deformarse */
}

/* Estilo del título debajo del círculo */
.card-item .card-item-title {
    color: #343a40; /* Un color de texto oscuro pero no negro puro */
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease-in-out;
}

/* --- Efecto Hover Mejorado --- */
.card-item:hover .card-circle {
    transform: translateY(-8px) scale(1.05); /* Eleva y agranda el círculo */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2); /* Sombra más pronunciada */
}

.card-item:hover .card-item-title {
    color: var(--tec-azul, #0a2351); /* Usa el color primario al pasar el mouse */
}

/* --- Ajustes Responsivos --- */
/* En pantallas más pequeñas, hacemos los círculos un poco más chicos */
@media (max-width: 768px) {
    .card-item .card-circle {
        width: 120px;
        height: 120px;
    }
    .card-item .card-item-title {
        font-size: 0.9rem;
    }
}