/* Estilos exclusivos para el módulo del portal estudiantil (sistema) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

:root {
    --ubv-dark: #0C1B47;       /* Azul Oscuro Principal */
    --ubv-darker: #060e25;     /* Azul Más Oscuro */
    --ubv-gold: #947223;       /* Dorado Principal */
    --ubv-cream: #F7E6A4;      /* Crema Suave */
    --ubv-secondary: #0A70B5;  /* Azul Claro/Botones */
    --white: #ffffff;
    --gray-bg: #f8fafc;
    --gray-text: #475569;
    --border-color: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: var(--gray-bg);
    color: var(--ubv-dark);
}

/* ================== LOGIN, REGISTRO, RECUPERAR ================== */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../images/banner_universidad.png') center/cover no-repeat;
    position: relative;
}

.auth-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(12, 27, 71, 0.85); /* Capa azul oscuro translúcida */
}

.auth-box {
    background-color: var(--white);
    width: 100%;
    max-width: 400px;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
    z-index: 10;
    text-align: center;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border: 2px solid var(--ubv-gold);
    border-radius: 50%;
    background-color: var(--ubv-dark);
    color: var(--white);
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 20px;
}

.auth-box h2 {
    color: var(--ubv-dark);
    margin-bottom: 25px;
    font-size: 22px;
}

.auth-form .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-text);
}

.auth-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.auth-form input:focus {
    border-color: var(--ubv-secondary);
}

.btn-auth {
    width: 100%;
    padding: 12px;
    background-color: var(--ubv-gold);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-auth:hover {
    background-color: #7a5e1c;
}

.auth-links {
    margin-top: 20px;
    font-size: 13px;
}

.auth-links a {
    color: var(--ubv-secondary);
    text-decoration: none;
    font-weight: 500;
}

.auth-links a:hover {
    text-decoration: underline;
}

.alert {
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 13px;
    text-align: left;
}
.alert-error { background-color: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; }
.alert-success { background-color: #dcfce3; color: #15803d; border: 1px solid #86efac; }

/* ================== MODERN DASHBOARD (GLASSMORPHISM) ================== */
.dashboard-wrapper {
    min-height: 100vh;
    background: url('../images/banner_universidad.png') center/cover no-repeat fixed;
    position: relative;
    color: var(--white);
}
.dashboard-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(12, 27, 71, 0.9) 0%, rgba(6, 14, 37, 0.95) 100%);
    z-index: 1;
}

/* Glass Top Navigation */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}
.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
}
.brand { display: flex; align-items: center; gap: 15px; }
.auth-logo-small {
    width: 40px; height: 40px;
    border: 2px solid var(--ubv-gold);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background-color: var(--ubv-dark);
    font-size: 12px; font-weight: bold; color: var(--white);
}
.logo-text { font-size: 16px; font-weight: 700; color: var(--ubv-gold); letter-spacing: 1px;}

.main-menu {
    display: flex;
    list-style: none;
    gap: 10px;
}
.main-menu li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}
.main-menu li a:hover, .main-menu li a.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}
.user-badge {
    display: flex; align-items: center; gap: 10px;
    font-size: 13px; font-weight: 500;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.user-badge i { color: var(--ubv-gold); font-size: 16px; }

.btn-logout-modern {
    color: #fca5a5;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 8px;
    border: 1px solid rgba(252, 165, 165, 0.3);
    transition: all 0.3s;
}
.btn-logout-modern:hover {
    background: rgba(220, 38, 38, 0.2);
    color: #fff;
    border-color: #dc2626;
}

/* Dashboard Content */
.dashboard-main {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 30px;
}
.welcome-header { margin-bottom: 40px; animation: fadeInDown 0.8s ease; }
.welcome-header h1 { font-size: 28px; font-weight: 700; color: var(--white); margin-bottom: 10px; text-shadow: 0 2px 4px rgba(0,0,0,0.5);}
.welcome-header p { font-size: 15px; color: rgba(255,255,255,0.8); }

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Glass Cards Grid */
.glass-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}
.glass-card {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.12);
}
.glass-card .card-icon {
    width: 60px; height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.05) 100%);
    border: 1px solid rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: var(--ubv-cream);
}
.glass-card .card-info h4 { font-size: 13px; color: rgba(255,255,255,0.7); margin-bottom: 5px; font-weight: 500;}
.glass-card .card-info h2 { font-size: 26px; color: var(--white); font-weight: 700;}

/* Highlight Card (Golden Gradient) */
.highlight-card {
    background: linear-gradient(135deg, rgba(148, 114, 35, 0.8) 0%, rgba(148, 114, 35, 0.4) 100%);
    border: 1px solid rgba(247, 230, 164, 0.3);
    position: relative;
    overflow: hidden;
}
.highlight-card .card-info h4 { color: rgba(255,255,255,0.9); }
.highlight-card .floating-icon {
    position: absolute;
    right: -10px;
    bottom: -10px;
    font-size: 100px;
    opacity: 0.1;
    transform: rotate(-15deg);
}

/* Glass Panel (News) */
.glass-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}
.panel-header {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
    margin-bottom: 20px;
}
.panel-header h3 {
    font-size: 18px;
    color: var(--ubv-cream);
    display: flex; align-items: center; gap: 10px;
}
.news-list { list-style: none; }
.news-list li {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    margin-bottom: 15px;
    transition: background 0.3s;
}
.news-list li:hover { background: rgba(255,255,255,0.08); }
.news-icon {
    width: 45px; height: 45px;
    border-radius: 50%;
    background: rgba(10, 112, 181, 0.3); /* ubv-secondary */
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    border: 1px solid rgba(10, 112, 181, 0.5);
}
.news-content strong { display: block; color: var(--white); font-size: 15px; margin-bottom: 5px; }
.news-content p { color: rgba(255,255,255,0.7); font-size: 13px; line-height: 1.5; }

/* Responsive adjustments for new Dashboard */
@media (max-width: 992px) {
    .nav-container { flex-direction: column; gap: 20px; }
    .main-menu { flex-wrap: wrap; justify-content: center; }
}
