/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    width: 100%;
}

/* ============================================
   HEADER MEJORADO
   ============================================ */

header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #1e3c72;
    padding: 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid #ffd700;
    display: flex;
}

.header-content {
    width: 100%;
    margin: 0;
    padding: 100px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0;
}

/* Logo mejorado */
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid #ffd700;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
}

.logo:hover .logo-img {
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
    transform: rotate(5deg);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-weight: 800;
    font-size: 24px;
    color: #1e3c72;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Navigation mejorada */
nav {
    
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: #1e3c72;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 25px;
    position: relative;
    overflow: hidden;
}

.nav-menu a i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    transition: width 0.3s ease;
    z-index: -1;
    border-radius: 25px;
}

.nav-menu a:hover {
    color: #1e3c72;
    transform: translateY(-2px);
}

.nav-menu a:hover::before {
    width: 100%;
}

.nav-menu a:hover i {
    transform: scale(1.2) rotate(10deg);
}

/* Auth Buttons mejorados */
.auth-buttons {
    display: flex;
    text-align: center;
    gap: 12px;
}

.btn-header {
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-header:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary.btn-header {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #1e3c72;
    border: 2px solid #ffd700;
}

.btn-primary.btn-header:hover {
    background: linear-gradient(135deg, #ffed4e 0%, #ffd700 100%);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.4);
}

.btn-secondary.btn-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border: 2px solid #1e3c72;
}

.btn-secondary.btn-header:hover {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    box-shadow: 0 6px 25px rgba(30, 60, 114, 0.4);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border: none;
    color: #1e3c72;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.mobile-menu-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

/* User Indicator (cuando está logueado) */
.user-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1e3c72;
    font-weight: 600;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 10px 20px;
    border-radius: 25px;
    border: 2px solid #ffd700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.user-indicator i {
    font-size: 20px;
    color: #ffd700;
}

.user-indicator span {
    font-size: 15px;
    color: #1e3c72;
}

/* ============================================
   RESPONSIVE HEADER
   ============================================ */

/* ============================================
   RESPONSIVE HEADER
   ============================================ */

/* ============================================
   RESPONSIVE HEADER - BOTONES SIEMPRE EN LÍNEA
   ============================================ */

@media (max-width: 1200px) {
    .header-content {
        padding: 1rem 1.5rem;
    }
    
    .nav-menu {
        gap: 0.3rem;
    }
    
    .nav-menu a {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .logo-title {
        font-size: 20px;
    }
}

@media (max-width: 968px) {
    .header-content {
        display: grid !important;
        grid-template-columns: auto 1fr auto auto;
        align-items: center;
        gap: 1rem;
    }

    .logo {
        grid-column: 1;
    }

    nav {
        grid-column: 2;
    }

    .auth-buttons {
        grid-column: 3;
        display: flex !important;
        gap: 8px;
    }

    .mobile-menu-toggle {
        grid-column: 4;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        flex-direction: column;
        padding: 1.5rem;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        border-top: 3px solid #ffd700;
        gap: 0.5rem;
    }

    .nav-menu.active {
        display: flex !important;
        animation: slideDown 0.3s ease-out;
    }

    .nav-menu a {
        padding: 15px 20px;
        border-bottom: 1px solid #e0e0e0;
        border-radius: 12px;
        background: white;
    }

    .nav-menu a:hover {
        background: linear-gradient(135deg, #ffd700, #ffed4e);
    }

    .btn-header {
        padding: 10px 16px;
        font-size: 13px;
        white-space: nowrap;
    }

    .logo-text {
        display: none;
    }
    
    .logo-img {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 768px) {
    .header-content {
        grid-template-columns: auto 1fr auto auto;
        gap: 0.5rem;
        padding: 0.8rem 1rem;
    }

    .btn-header {
        padding: 8px 12px;
        font-size: 12px;
    }

    .btn-header span {
        display: none; /* Oculta el texto, solo muestra iconos */
    }

    .btn-header i {
        margin: 0;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .header-content {
        grid-template-columns: 50px 1fr auto auto;
        gap: 0.3rem;
        padding: 0.8rem 0.8rem;
    }
    
    .logo-img {
        width: 45px;
        height: 45px;
    }
    
    .btn-header {
        padding: 8px 10px;
        font-size: 14px;
    }
    
    .auth-buttons {
        gap: 5px;
    }
}

/* Animación para el menú móvil */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 968px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        flex-direction: column;
        padding: 1.5rem;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        border-top: 3px solid #ffd700;
        gap: 0.5rem;
    }

    .nav-menu.active {
        display: flex !important;
        animation: slideDown 0.3s ease-out;
    }

    .nav-menu a {
        padding: 15px 20px;
        border-bottom: 1px solid #e0e0e0;
        border-radius: 12px;
        background: white;
    }

    .nav-menu a:hover {
        background: linear-gradient(135deg, #ffd700, #ffed4e);
    }

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .auth-buttons {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
        gap: 10px;
    }

    .btn-header {
        flex: 1;
        justify-content: center;
    }

    .logo-text {
        display: none;
    }
    
    .logo-img {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0.8rem 1rem;
    }
    
    .logo-img {
        width: 50px;
        height: 50px;
    }
    
    .btn-header {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .auth-buttons {
        flex-direction: column;
        gap: 8px;
    }
}

/* Animación para el menú móvil */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 20px;
    color: #2338f3;
}

.logo-img {
    width: 60px;
    height: auto;
}

/* Navigation */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #2338f3;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 18px;
    display: inline-block;
}

.nav-menu a:hover {
    color: #ffd700;
    transform: scale(1.1);
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    gap: 1rem;
}

/* User Indicator (cuando está logueado) */
.user-indicator {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #1e3c72;
    font-weight: 500;
}

.user-indicator span {
    font-size: 0.9rem;
    color: #2338f3;
}

/* Buttons */
.btn {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.btn-primary {
    background: #ffd700;
    color: #1e3c72;
}

.btn-primary:hover {
    background: #ffed4e;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: #1e3c72;
    color: white;
}

.btn-secondary:hover {
    background: #2a5298;
    transform: translateY(-2px);
}

.btn-danger {
    background: #dc3545;
    color: white;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

.btn-danger:hover:not(:disabled) {
    background: #c82333;
}

.btn-danger:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-hero {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 30px;
}


/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #2338f3;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Hero Section */
.hero {
    background: 
        linear-gradient(rgba(30, 60, 114, 0.8), rgba(30, 60, 114, 0.8)),
        url('../imagenes/computacion e informatica/computacion.1.jpeg') center/cover no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 150px 2rem 100px;
    margin-top: 80px;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    animation: fadeInUp 0.8s ease-out;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Features Section */
.features {
    padding: 100px 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1e3c72;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #ffd700;
    margin: 1rem auto;
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-top: 4px solid #ffd700;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 3rem;
    color: #ffd700;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1e3c72;
}

/* Specialties Section */
.specialties {
    background: #f8f9fa;
    padding: 100px 2rem;
}

.specialties-container {
    max-width: 1200px;
    margin: 0 auto;
}

.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.specialty-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.specialty-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.specialty-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(45deg, #1e3c72, #2a5298);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.specialty-content {
    padding: 1.5rem;
}

.specialty-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #1e3c72;
}

/* User Dashboard */
.user-dashboard {
    display: none;
    background: white;
    margin: 100px 2rem 2rem;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.welcome-message {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    text-align: center;
}

.welcome-message h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.dashboard-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #ffd700;
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.dashboard-card h3 {
    color: #1e3c72;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-actions {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e0e0e0;
}

/* Admin Panel */
.admin-panel {
    display: none;
    background: white;
    margin: 100px 2rem 2rem;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

.admin-header h2 {
    color: #1e3c72;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: scale(1.05);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
    margin-top: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.users-table th,
.users-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.users-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #1e3c72;
    position: sticky;
    top: 0;
}

.users-table tr:hover {
    background: #f8f9fa;
}

/* Modal Styles */
/* ============================================
   MODALES MEJORADOS Y MODERNOS
   ============================================ */

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    margin: 3% auto;
    padding: 0;
    border-radius: 25px;
    width: 90%;
    max-width: 480px;
    position: relative;
    animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    border: 3px solid transparent;
    background-clip: padding-box;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #ffd700, #ffed4e, #ffd700);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% {
        background-position: -200% 0;
    }
    50% {
        background-position: 200% 0;
    }
}

/* Botón de cerrar mejorado */
.close {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.close:hover {
    transform: rotate(90deg) scale(1.1);
    background: linear-gradient(135deg, #ee5a52, #ff6b6b);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
}

/* Header del modal */
.modal h2 {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    margin: 0;
    padding: 2rem 2rem 2rem 2rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1.8rem;
    font-weight: 700;
    position: relative;
    overflow: hidden;
}

.modal h2::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: slideLight 3s infinite;
}

@keyframes slideLight {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

.modal h2 i {
    font-size: 1.6rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Contenido del formulario */
.modal form {
    padding: 2.5rem 2rem 2rem;
}

/* Form Groups mejorados */
.form-group {
    margin-bottom: 1.8rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: #1e3c72;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label::before {
    content: '';
    width: 4px;
    height: 18px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border-radius: 2px;
}

/* Inputs mejorados */
.form-group input,
.form-group select {
    width: 100%;
    padding: 0.95rem 1.2rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #1e3c72;
    background: #f8f9fa;
    box-shadow: 0 0 0 4px rgba(30, 60, 114, 0.1);
    transform: translateY(-2px);
}

.form-group input:hover,
.form-group select:hover {
    border-color: #ffd700;
}

/* Efecto de onda en inputs */
.form-group {
    position: relative;
    overflow: visible;
}

.form-group::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ffd700, #ffed4e);
    transition: width 0.4s ease;
}

.form-group input:focus ~ .form-group::after,
.form-group select:focus ~ .form-group::after {
    width: 100%;
}

/* Select personalizado */
.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231e3c72' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 3rem;
    cursor: pointer;
}

.form-group select:hover {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffd700' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

/* Botón de submit mejorado */
.btn-full {
    width: 100%;
    padding: 1.1rem 2rem;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #1e3c72;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
}

.btn-full::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-full:hover::before {
    width: 300px;
    height: 300px;
}

.btn-full:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.5);
}

.btn-full:active {
    transform: translateY(-1px);
}

.btn-full i {
    margin-right: 8px;
    font-size: 1.2rem;
}

/* Mensajes de éxito y error mejorados */
.success-message,
.error-message {
    padding: 1rem 1.2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: none;
    border-left: 4px solid;
    animation: slideInLeft 0.4s ease-out;
    font-weight: 500;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.success-message {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left-color: #28a745;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
}

.error-message {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left-color: #dc3545;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.2);
}

/* Animación del modal */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-100px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive para modales */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 5% auto;
        border-radius: 20px;
    }

    .modal h2 {
        font-size: 1.5rem;
        padding: 1.5rem 1.5rem 1.5rem 1.5rem;
    }

    .modal form {
        padding: 2rem 1.5rem 1.5rem;
    }

    .form-group {
        margin-bottom: 1.5rem;
    }

    .close {
        width: 35px;
        height: 35px;
        right: 15px;
        top: 15px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 96%;
        max-width: none;
        margin: 3% auto;
    }

    .modal h2 {
        font-size: 1.3rem;
        padding: 1.2rem;
    }

    .modal form {
        padding: 1.5rem 1rem;
    }

    .form-group input,
    .form-group select {
        padding: 0.85rem 1rem;
        font-size: 0.95rem;
    }

    .btn-full {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}

/* Efecto de glassmorphism para modales en dispositivos modernos */
@supports (backdrop-filter: blur(10px)) {
    .modal {
        backdrop-filter: blur(10px);
    }
    
    .modal-content {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
    }
}
/* Form Styles */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #1e3c72;
    box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.1);
}

/* Messages */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: none;
    border: 1px solid #c3e6cb;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: none;
    border: 1px solid #f5c6cb;
}

/* Footer */
footer {
    background: #1e3c72;
    color: white;
    padding: 3rem 2rem 1rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: left;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #ffd700;
}

.footer-section p,
.footer-section a {
    color: #ccc;
    text-decoration: none;
    margin-bottom: 0.5rem;
    display: block;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    margin-top: 1rem;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    display: inline-flex;
}

.social-links a:hover {
    color: #ffd700;
    transform: scale(1.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    margin-top: 2rem;
    color: #ccc;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        display: flex !important;
    }

    .nav-menu a {
        padding: 0.5rem 0;
        border-bottom: 1px solid #e0e0e0;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .auth-buttons {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
        flex-wrap: wrap;
    }

    .user-indicator {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
        flex-wrap: wrap;
    }

    .hero {
        padding: 120px 1rem 80px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-hero {
        width: 100%;
        max-width: 300px;
    }

    .modal-content {
        width: 95%;
        margin: 2% auto;
        padding: 1.5rem;
    }

    .admin-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .users-table {
        font-size: 0.8rem;
    }

    .users-table th,
    .users-table td {
        padding: 0.5rem 0.3rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .features,
    .specialties {
        padding: 60px 1rem;
    }

    .features-grid,
    .specialties-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .admin-stats {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 1.5rem;
    }
}

/* --- Código para la barra de búsqueda --- */
.search-container {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
    background-color: #f7f9fc;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

#searchInput {
    flex-grow: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

#searchInput:focus {
    border-color: #007bff;
    outline: none;
}

.search-container .btn-primary {
    padding: 12px 20px;
}

/* Estilos generales para los Paneles de Usuario/Administrador/Profesor */
.user-dashboard,
.admin-panel,
.teacher-panel { /* Añadido .teacher-panel aquí */
    padding: 100px 2rem 50px; /* Ajusta el padding superior para no chocar con el header fijo */
    max-width: 1200px;
    margin: 0 auto;
    min-height: calc(100vh - 100px); /* Asegura que ocupe al menos la altura visible */
    background-color: #f8f9fa;
}

.teacher-panel {
    /* Puedes añadir estilos específicos si quieres que el panel del profesor tenga un color de fondo o bordes distintos */
    /* background-color: #e6f7ff; */ /* Ejemplo de un color azul claro */
    /* border: 1px solid #cce7ff; */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-top: 20px; /* Espacio adicional arriba si es necesario */
}

/* Reutilizando estilos existentes para el contenido dentro del panel del profesor */
/* .admin-header ya aplicará estilos al encabezado del profesor */
/* .welcome-message ya aplicará estilos a los mensajes de bienvenida */
/* .dashboard-grid y .dashboard-card ya aplicarán estilos a las tarjetas */
/* .btn, .btn-primary, .btn-secondary ya aplicarán estilos a los botones */

/* Si el botón de cerrar sesión en el footer del panel de profesor necesita ajuste */
.dashboard-actions {
    margin-top: 30px;
    text-align: center;
}

/*******

/* Estilos para el carrusel de imágenes en especialidades */
.specialty-image-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.specialty-image-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-image.active {
    opacity: 1;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
    transition: background 0.3s ease;
    border-radius: 4px;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.carousel-indicator {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.indicator-dot.active {
    background: #ffffff;
    width: 12px;
    height: 12px;
}

.specialty-icon {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #1e3a8a;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    padding: 20px;
}

.specialty-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.specialty-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.specialty-content {
    padding: 20px;
}

.specialty-content h3 {
    color: #1e3a8a;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.specialty-content p {
    color: #666;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .specialties-grid {
        grid-template-columns: 1fr;
    }
    
    .specialty-image-container {
        height: 250px;
    }
}



/* Estilos para el carousel de especialidades */
.specialty-image-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
    background: #f0f0f0;
}

.specialty-image-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-image.active {
    opacity: 1;
    z-index: 1;
}

/* Botones de navegación del carousel */
/* ============================================ BOTONES DEL CARRUSEL - TRANSPARENTE ============================================ */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    /* ESTE ES EL CAMBIO CLAVE: Usa RGBA con 0.4 de opacidad para la transparencia */
    background-color: rgba(30, 60, 114, 0.4); 
    color: white; /* Flecha blanca */
    border: 2px solid white; /* Borde blanco para visibilidad */
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    font-size: 1.4rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.carousel-btn:hover {
    /* Al pasar el ratón, se vuelve casi opaco (0.9) con el color dorado */
    background: rgba(91, 91, 88, 0.9); 
    color: #1e3c72; /* Color de flecha oscuro al hacer hover */
    border-color: #1e3c72;
    transform: translateY(-50%) scale(1.1); /* Ligera escala */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Posiciones específicas para las flechas (asumiendo que usas .prev-btn y .next-btn) */
.prev-btn {
    left: 15px;
}

.next-btn {
    right: 15px;
}
/* Indicadores del carousel */
.carousel-indicator {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator-dot.active {
    background: white;
    width: 30px;
    border-radius: 5px;
}

.indicator-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Icono de especialidad superpuesto */
.specialty-icon {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.specialty-icon i {
    font-size: 28px;
    color: #1e3a8a;
}

/* Responsive */
@media (max-width: 768px) {
    .specialty-image-container {
        height: 250px;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
    }
    
    .specialty-icon {
        width: 50px;
        height: 50px;
    }
    
    .specialty-icon i {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .specialty-image-container {
        height: 200px;
    }
    
    .carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}

/*** xq ciro alegria**

/* ============================================
   CARRUSEL DE FEATURES (¿Por qué elegir CIRO ALEGRÍA?)
   ============================================ */

.features-carousel-container {
    position: relative;
    max-width: 900px;
    margin: 3rem auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.features-carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    position: relative;
    height: 500px;
}

.feature-carousel-card {
    min-width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.feature-carousel-card.active {
    opacity: 1;
    z-index: 1;
}

.feature-carousel-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.feature-carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(30, 60, 114, 0.95) 0%, rgba(30, 60, 114, 0.7) 70%, transparent 100%);
    color: white;
    padding: 3rem 2rem 2rem;
    text-align: center;
}

.feature-carousel-overlay .feature-icon {
    font-size: 3.5rem;
    color: #ffd700;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

.feature-carousel-overlay h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.feature-carousel-overlay p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    max-width: 600px;
    margin: 0 auto;
}

/* Botones de navegación */
.features-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 215, 0, 0.9);
    color: #1e3c72;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.features-carousel-btn:hover {
    background: #ffd700;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.features-prev-btn {
    left: 20px;
}

.features-next-btn {
    right: 20px;
}

/* Indicadores */
.features-carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.features-indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.features-indicator-dot.active {
    background: #ffd700;
    width: 40px;
    border-radius: 6px;
    border-color: #ffd700;
}

.features-indicator-dot:hover {
    background: rgba(255, 215, 0, 0.7);
    transform: scale(1.2);
}

/* Animación de pulso para los iconos */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Responsive para el carrusel de features */
@media (max-width: 768px) {
    .features-carousel {
        height: 450px;
    }
    
    .feature-carousel-overlay {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .feature-carousel-overlay h3 {
        font-size: 1.5rem;
    }
    
    .feature-carousel-overlay p {
        font-size: 0.95rem;
    }
    
    .features-carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .features-prev-btn {
        left: 10px;
    }
    
    .features-next-btn {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .features-carousel {
        height: 400px;
    }
    
    .feature-carousel-overlay .feature-icon {
        font-size: 2.5rem;
    }
    
    .feature-carousel-overlay h3 {
        font-size: 1.3rem;
    }
    
    .feature-carousel-overlay p {
        font-size: 0.9rem;
    }
}


/* Hero Section Mejorado */
.hero {
    position: relative;
    background: 
        linear-gradient(135deg, rgba(30, 60, 114, 0.85), rgba(42, 82, 152, 0.85)),
        url('../imagenes/fondocet.jpg') center/cover no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 150px 2rem 100px;
    margin-top: 80px;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Efecto de overlay animado */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.4);
    padding: 3rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    animation: fadeInUp 0.8s ease-out;
    color: #ffd700;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
    letter-spacing: 1px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
    position: relative;
    z-index: 2;
}

/* Responsive para Hero */
@media (max-width: 768px) {
    .hero {
        padding: 120px 1rem 80px;
        min-height: 500px;
        background-attachment: scroll;
    }

    .hero-content {
        padding: 2rem 1.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 450px;
    }

    .hero-content {
        padding: 1.5rem 1rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.9rem;
    }
}

/* ============================================
   FOOTER MEJORADO - SECCIÓN DE CONTACTO
   ============================================ */

footer {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 4rem 2rem 2rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #ffd700, #ffed4e, #ffd700);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

/* Sección Principal del Footer */
.footer-about {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.footer-logo h3 {
    color: #ffd700;
    font-size: 1.5rem;
    margin: 0;
    font-weight: 700;
}

.footer-description {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    font-size: 1rem;
}

/* Redes Sociales */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-icon:hover {
    background: #ffd700;
    color: #1e3c72;
    transform: translateY(-5px) rotate(5deg);
    border-color: #ffd700;
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
}

/* Títulos de Sección */
.footer-section h3 {
    color: #ffd700;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.footer-section h3 i {
    font-size: 1.1rem;
}

/* Información de Contacto */
.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: #ffd700;
    transform: translateX(5px);
}

.contact-icon {
    width: 45px;
    height: 45px;
    min-width: 45px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e3c72;
    font-size: 1.2rem;
}

.contact-info h4 {
    color: #ffd700;
    font-size: 0.9rem;
    margin: 0 0 0.3rem 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 1rem;
}

/* Horarios */
.schedule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
}

.schedule-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.schedule-item.closed {
    opacity: 0.6;
}

.schedule-days {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.schedule-days i {
    color: #ffd700;
    font-size: 1rem;
}

.schedule-time {
    color: #ffd700;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Enlaces Rápidos */
.quick-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-links li {
    margin-bottom: 0.8rem;
}

.quick-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.quick-links a:hover {
    color: #1e3c72;
    background: #ffd700;
    transform: translateX(5px);
    padding-left: 1.2rem;
}

.quick-links a i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.quick-links a:hover i {
    transform: translateX(3px);
}

/* Línea Divisoria */
.footer-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.5), transparent);
    margin: 2rem 0;
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
}

.copyright {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.developer {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.developer i.fa-heart {
    color: #ff6b6b;
    animation: heartbeat 1.5s infinite;
}

.developer strong {
    color: #ffd700;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1); }
}

/* ============================================
   RESPONSIVE FOOTER
   ============================================ */

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    footer {
        padding: 3rem 1.5rem 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-section {
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .schedule-item {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .quick-links a {
        justify-content: center;
    }

    .quick-links a:hover {
        padding-left: 0.8rem;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 2rem 1rem 1rem;
    }

    .footer-logo h3 {
        font-size: 1.2rem;
    }

    .footer-logo-img {
        width: 50px;
        height: 50px;
    }

    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .footer-section h3 {
        font-size: 1.1rem;
    }
}

/* Animación de entrada para el footer */
@keyframes fadeInFooter {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-section {
    animation: fadeInFooter 0.6s ease-out;
}

.footer-section:nth-child(1) { animation-delay: 0.1s; }
.footer-section:nth-child(2) { animation-delay: 0.2s; }
.footer-section:nth-child(3) { animation-delay: 0.3s; }
.footer-section:nth-child(4) { animation-delay: 0.4s; }



/* ============================================
   ESPECIALIDADES - DISEÑO MEJORADO Y MODERNO
   ============================================ */

.specialties {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 100px 2rem;
    position: relative;
    overflow: hidden;
}

.specialties::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(30, 60, 114, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.specialties-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: #1e3c72;
    font-weight: 800;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, #ffd700, #ffed4e);
    margin: 1.5rem auto;
    border-radius: 3px;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 4rem;
    font-weight: 400;
}

.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

/* ============================================
   TARJETAS DE ESPECIALIDADES MEJORADAS
   ============================================ */

.specialty-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.specialty-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    border-color: #ffd700;
}

/* ============================================
   CONTENEDOR DE IMAGEN Y CARRUSEL
   ============================================ */

.specialty-image-container {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
}

.specialty-image-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.carousel-image.active {
    opacity: 1;
    z-index: 1;
}

/* ============================================
   ICONOS Y BADGES MEJORADOS
   ============================================ */

.specialty-icon-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    z-index: 10;
    animation: float 3s ease-in-out infinite;
}

.specialty-icon-badge i {
    font-size: 32px;
    color: #1e3c72;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ============================================
   BOTONES DEL CARRUSEL
   ============================================ */

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 215, 0, 0.95);
    color: #1e3c72;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.carousel-btn:hover {
    background: #ffd700;
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.prev-btn {
    left: 15px;
}

.next-btn {
    right: 15px;
}

/* ============================================
   INDICADORES DEL CARRUSEL
   ============================================ */

.carousel-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 15px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.indicator-dot.active {
    background: #ffd700;
    width: 35px;
    border-radius: 8px;
    border-color: white;
}

.indicator-dot:hover {
    background: rgba(255, 215, 0, 0.8);
    transform: scale(1.2);
}

/* ============================================
   CONTENIDO DE LA TARJETA
   ============================================ */

.specialty-content {
    padding: 2rem;
    background: white;
}

.specialty-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.specialty-icon-main {
    width: 65px;
    height: 65px;
    min-width: 65px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(30, 60, 114, 0.3);
    transition: all 0.3s ease;
}

.specialty-card:hover .specialty-icon-main {
    transform: rotate(5deg) scale(1.1);
    box-shadow: 0 8px 25px rgba(30, 60, 114, 0.4);
}

.specialty-icon-main i {
    font-size: 28px;
    color: #ffd700;
}

.specialty-content h3 {
    font-size: 1.4rem;
    color: #1e3c72;
    margin: 0;
    font-weight: 700;
    line-height: 1.3;
}

.specialty-content p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* ============================================
   CARACTERÍSTICAS/FEATURES
   ============================================ */

.specialty-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #1e3c72;
    padding: 0.6rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.specialty-card:hover .feature-tag {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border-color: #ffd700;
    transform: scale(1.05);
}

.feature-tag i {
    font-size: 0.9rem;
    color: #28a745;
}

/* ============================================
   ANIMACIONES
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.8s ease-out;
}

/* Efecto cascada para las tarjetas */
.specialty-card:nth-child(1) { animation-delay: 0.1s; }
.specialty-card:nth-child(2) { animation-delay: 0.2s; }
.specialty-card:nth-child(3) { animation-delay: 0.3s; }
.specialty-card:nth-child(4) { animation-delay: 0.4s; }
.specialty-card:nth-child(5) { animation-delay: 0.5s; }
.specialty-card:nth-child(6) { animation-delay: 0.6s; }

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1200px) {
    .specialties-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .specialties {
        padding: 80px 1.5rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 3rem;
    }

    .specialties-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .specialty-image-container {
        height: 280px;
    }

    .specialty-icon-badge {
        width: 60px;
        height: 60px;
    }

    .specialty-icon-badge i {
        font-size: 26px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .specialty-icon-main {
        width: 55px;
        height: 55px;
        min-width: 55px;
    }

    .specialty-icon-main i {
        font-size: 24px;
    }

    .specialty-content h3 {
        font-size: 1.2rem;
    }

    .specialty-content p {
        font-size: 0.95rem;
    }

    .feature-tag {
        font-size: 0.8rem;
        padding: 0.5rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .specialties {
        padding: 60px 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .specialty-image-container {
        height: 250px;
    }

    .specialty-icon-badge {
        width: 50px;
        height: 50px;
        top: 15px;
        right: 15px;
    }

    .specialty-icon-badge i {
        font-size: 22px;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .prev-btn {
        left: 10px;
    }

    .next-btn {
        right: 10px;
    }

    .specialty-content {
        padding: 1.5rem;
    }

    .specialty-header {
        gap: 1rem;
    }

    .specialty-icon-main {
        width: 50px;
        height: 50px;
        min-width: 50px;
    }

    .specialty-icon-main i {
        font-size: 20px;
    }

    .specialty-content h3 {
        font-size: 1.1rem;
    }

    .specialty-features {
        gap: 0.6rem;
    }

    .feature-tag {
        font-size: 0.75rem;
        padding: 0.4rem 0.7rem;
    }
}


/* ventana flotante

/* ============================================
   MODAL FLOTANTE - POR QUÉ ELEGIR CIRO ALEGRÍA
   ============================================ */

/* Botón para abrir modal */
.open-about-modal-btn {
    padding: 18px 40px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    border: 3px solid #ffd700;
    border-radius: 35px;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    transition: all 0.4s ease;
    box-shadow: 0 8px 30px rgba(30, 60, 114, 0.4);
}

.open-about-modal-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 40px rgba(255, 215, 0, 0.5);
    background: linear-gradient(135deg, #2a5298, #1e3c72);
}

.open-about-modal-btn i {
    font-size: 1.5rem;
}

/* Overlay del modal */
.about-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 9999;
    animation: fadeIn 0.4s ease;
}

.about-modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Contenedor del modal */
.about-modal-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 25px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    animation: modalSlideUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 3px solid #ffd700;
}

/* Botón de cerrar */
.about-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.about-modal-close:hover {
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 6px 25px rgba(255, 107, 107, 0.6);
}

/* Header del modal */
.about-modal-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 3rem 2rem 2rem;
    text-align: center;
    border-radius: 22px 22px 0 0;
    position: relative;
    overflow: hidden;
}

.about-modal-header::before {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 3s infinite;
}

.about-modal-header h2 {
    color: white;
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 1rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.about-modal-header .divider {
    width: 100px;
    height: 4px;
    background: #ffd700;
    margin: 0 auto;
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.5);
}

/* Contenido del modal */
.about-modal-body {
    padding: 2.5rem 2rem;
}

.about-description {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 2rem;
    border-radius: 15px;
    border-left: 5px solid #1e3c72;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.about-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #1e3c72;
    margin: 0;
    font-weight: 500;
}

/* Carrusel de features */
.modal-features-carousel {
    position: relative;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.modal-feature-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.modal-feature-slide.active {
    opacity: 1;
    z-index: 1;
}

.modal-feature-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-feature-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(30, 60, 114, 0.95) 0%, rgba(30, 60, 114, 0.7) 70%, transparent 100%);
    padding: 2.5rem 2rem;
    color: white;
}

.modal-feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
    animation: pulse 2s infinite;
}

.modal-feature-icon i {
    font-size: 32px;
    color: #1e3c72;
}

.modal-feature-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 700;
}

.modal-feature-content p {
    font-size: 1.05rem;
    line-height: 1.6;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

/* Botones del carrusel */
.modal-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 215, 0, 0.95);
    color: #1e3c72;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    font-size: 1.3rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.modal-carousel-btn:hover {
    background: #ffd700;
    transform: translateY(-50%) scale(1.15);
}

.modal-prev-btn {
    left: 20px;
}

.modal-next-btn {
    right: 20px;
}

/* Indicadores */
.modal-carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.4);
    padding: 10px 20px;
    border-radius: 25px;
    backdrop-filter: blur(5px);
}

.modal-indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.modal-indicator-dot.active {
    background: #ffd700;
    width: 35px;
    border-radius: 8px;
    border-color: white;
}

.modal-indicator-dot:hover {
    background: rgba(255, 215, 0, 0.8);
    transform: scale(1.2);
}

/* Scrollbar personalizado */
.about-modal-container::-webkit-scrollbar {
    width: 8px;
}

.about-modal-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}



/* Responsive */
@media (max-width: 768px) {
    .about-modal-container {
        max-width: 95%;
        max-height: 85vh;
    }

    .about-modal-header h2 {
        font-size: 1.8rem;
    }

    .about-modal-body {
        padding: 2rem 1.5rem;
    }

    .about-description {
        padding: 1.5rem;
    }

    .about-description p {
        font-size: 1rem;
    }

    .modal-features-carousel {
        height: 350px;
    }

    .modal-carousel-btn {
        width: 40px;
        height: 40px;
    }

    .open-about-modal-btn {
        font-size: 1.1rem;
        padding: 15px 30px;
    }
}

@media (max-width: 480px) {
    .modal-features-carousel {
        height: 300px;
    }

    .modal-feature-icon {
        width: 60px;
        height: 60px;
    }

    .modal-feature-content h3 {
        font-size: 1.4rem;
    }
}




/* ============================================
   SECCIÃ"N NOSOTROS - DISEÑO MEJORADO Y MODERNO
   ============================================ */

.features {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 100px 2rem;
    position: relative;
    overflow: hidden;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.nosotros-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Header de la Sección */
.nosotros-header {
    text-align: center;
    margin-bottom: 4rem;
}

.badge-animated {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #1e3c72;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.nosotros-title {
    font-size: 3rem;
    color: #1e3c72;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.nosotros-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Contenido Principal */
.nosotros-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

/* Sección de Imagen */
.nosotros-image-section {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease;
}

.image-wrapper:hover {
    transform: scale(1.02);
}

.main-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(30, 60, 114, 0.9) 0%, transparent 100%);
    padding: 2rem;
}

.stats-badge {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stat-item i {
    font-size: 2.5rem;
    color: #ffd700;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e3c72;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    font-weight: 600;
}

/* Lista de Características */
.nosotros-features-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.feature-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.feature-item:nth-child(1) {
    border-left-color: #3b82f6;
}

.feature-item:nth-child(1):hover {
    background: linear-gradient(135deg, #eff6ff 0%, white 100%);
}

.feature-item:nth-child(2) {
    border-left-color: #ffd700;
}

.feature-item:nth-child(2):hover {
    background: linear-gradient(135deg, #fffbeb 0%, white 100%);
}

.feature-item:nth-child(3) {
    border-left-color: #10b981;
}

.feature-item:nth-child(3):hover {
    background: linear-gradient(135deg, #ecfdf5 0%, white 100%);
}

.feature-item:nth-child(4) {
    border-left-color: #8b5cf6;
}

.feature-item:nth-child(4):hover {
    background: linear-gradient(135deg, #f5f3ff 0%, white 100%);
}

.feature-icon-wrapper {
    flex-shrink: 0;
}

.feature-icon {
    width: 65px;
    height: 65px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.feature-item:hover .feature-icon::before {
    width: 200%;
    height: 200%;
}

.feature-icon.blue {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.feature-icon.yellow {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.feature-icon.green {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.feature-icon.purple {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-text h3 {
    font-size: 1.3rem;
    color: #1e3c72;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.feature-text p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Botón CTA Moderno */
.cta-button-container {
    margin-top: 2rem;
}

.btn-cta-modern {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(30, 60, 114, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-cta-modern::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-cta-modern:hover::before {
    width: 400px;
    height: 400px;
}

.btn-cta-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(30, 60, 114, 0.5);
}

.btn-cta-modern i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-cta-modern:hover i {
    transform: translateX(5px);
}

.btn-text {
    position: relative;
    z-index: 1;
}

/* Animaciones */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nosotros-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .nosotros-image-section {
        order: 2;
    }

    .nosotros-features-list {
        order: 1;
    }
}

@media (max-width: 768px) {
    .features {
        padding: 80px 1.5rem;
    }

    .nosotros-title {
        font-size: 2.2rem;
    }

    .nosotros-subtitle {
        font-size: 1rem;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 1.5rem;
    }

    .feature-item:hover {
        transform: translateY(-5px);
    }

    .main-image {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .nosotros-title {
        font-size: 1.8rem;
    }

    .feature-icon {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
    }

    .feature-text h3 {
        font-size: 1.1rem;
    }

    .btn-cta-modern {
        width: 100%;
        justify-content: center;
        padding: 1rem 2rem;
    }

    .main-image {
        height: 280px;
    }
}

/* ============================================
   SECCIÓN DE VIDEO - DISEÑO MODERNO
   ============================================ */

.video-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 100px 2rem;
    position: relative;
    overflow: hidden;
}

.video-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(30, 60, 114, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.video-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Header del Video */
.video-header {
    text-align: center;
    margin-bottom: 4rem;
}

.video-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #1e3c72;
    padding: 0.6rem 1.8rem;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    animation: pulse 2s infinite;
}

.video-title {
    font-size: 3rem;
    color: #1e3c72;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.video-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Preview del Video */
.video-preview {
    max-width: 900px;
    margin: 0 auto;
}



.video-thumbnail {
    position: relative;
    width: 800px;
    height: 500px;
    padding-bottom: 0; /* Aspect ratio 16:9 */
    background: #000;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.4s ease;
    margin: 0 auto;
}

.video-thumbnail:hover {
    transform: scale(1.02);
}

.thumbnail-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.video-thumbnail:hover .thumbnail-image {
    opacity: 0.5;
}

/* Overlay con Botón de Play */
.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.4), rgba(42, 82, 152, 0.4));
    transition: background 0.3s ease;
}



.play-button {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border: none;
    border-radius: 50%;
    color: #1e3c72;
    font-size: 2.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.5);
    position: relative;
    padding-left: 8px; /* Centra visualmente el ícono de play */
}

.play-button::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 3px solid rgba(255, 215, 0, 0.5);
    border-radius: 50%;
    animation: pulseRing 2s infinite;
}

@keyframes pulseRing {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.video-thumbnail:hover .play-button {
    transform: scale(1.15);
    box-shadow: 0 15px 50px rgba(255, 215, 0, 0.7);
}

/* ============================================
   MODAL DE VIDEO
   ============================================ */

.video-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.video-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.video-modal-content {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 25px;
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.7);
    animation: modalSlideUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 3px solid #ffd700;
}

/* Botón de Cerrar */
.video-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.5);
}

.video-modal-close:hover {
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 6px 25px rgba(255, 107, 107, 0.7);
}

/* Header del Modal */
.video-modal-header {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem 5rem 1.5rem 2rem;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

.video-modal-header h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    text-align: center;
}

/* Wrapper del Video */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* Aspect ratio 16:9 */
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

#localVideo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ============================================
   ANIMACIONES
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(100px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .video-section {
        padding: 80px 1.5rem;
    }

    .video-title {
        font-size: 2.2rem;
    }

    .video-subtitle {
        font-size: 1rem;
    }

    .play-button {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .video-modal-content {
        border-radius: 15px;
        border-width: 2px;
    }

    .video-modal-header {
        padding: 1rem 4rem 1rem 1.5rem;
    }

    .video-modal-header h3 {
        font-size: 1.2rem;
    }

    .video-modal-close {
        width: 40px;
        height: 40px;
        top: 15px;
        right: 15px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .video-title {
        font-size: 1.8rem;
    }

    .video-subtitle {
        font-size: 0.9rem;
    }

    .video-badge {
        font-size: 0.85rem;
        padding: 0.5rem 1.2rem;
    }

    .play-button {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }

    .video-modal-header h3 {
        font-size: 1rem;
    }
}


/* ===== ESTILOS DEL PANEL DE ESTUDIANTE ===== */

.user-dashboard {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
    min-height: 100vh;
}

/* Banner de Bienvenida */
.welcome-banner-student {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.welcome-content h2 {
    color: white;
    font-size: 2.2rem;
    margin: 0 0 10px 0;
}

.welcome-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin: 0;
}

.btn-logout-student {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-logout-student:hover {
    background: white;
    color: #667eea;
}

/* Grid de Tarjetas */
.dashboard-grid-student {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.dashboard-card-student {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-left: 5px solid;
}

.dashboard-card-student:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-courses { border-color: #667eea; }
.card-schedule { border-color: #f093fb; }
.card-grades { border-color: #4facfe; }
.card-profile { border-color: #43e97b; }

.card-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 2rem;
}

.card-courses .card-icon {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.card-schedule .card-icon {
    background: rgba(240, 147, 251, 0.1);
    color: #f093fb;
}

.card-grades .card-icon {
    background: rgba(79, 172, 254, 0.1);
    color: #4facfe;
}

.card-profile .card-icon {
    background: rgba(67, 233, 123, 0.1);
    color: #43e97b;
}

.dashboard-card-student h3 {
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-size: 1.4rem;
}

.dashboard-card-student p {
    color: #7f8c8d;
    margin: 0 0 20px 0;
    line-height: 1.6;
}

.btn-card {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-card:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Vistas */
.student-view {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.view-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.btn-back {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.view-header h2 {
    color: #2c3e50;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Secciones del Perfil */
.profile-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.profile-section h3 {
    color: #2c3e50;
    margin: 0 0 25px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    padding-bottom: 15px;
    border-bottom: 2px solid #667eea;
}

.info-grid-student {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-item-student label {
    display: block;
    font-weight: 600;
    color: #7f8c8d;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.info-item-student p {
    color: #2c3e50;
    font-size: 1.1rem;
    margin: 0;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
}

/* Estadísticas */
.stats-grid-student {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card-student {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.stat-card-student:hover {
    transform: scale(1.05);
}

.stat-primary { background: linear-gradient(135deg, #667eea, #764ba2); }
.stat-success { background: linear-gradient(135deg, #56ab2f, #a8e063); }
.stat-warning { background: linear-gradient(135deg, #f093fb, #f5576c); }
.stat-danger { background: linear-gradient(135deg, #fa709a, #fee140); }

.stat-card-student i {
    font-size: 2.5rem;
    color: white;
    opacity: 0.9;
}

.stat-info {
    display: flex;
    flex-direction: column;
    color: white;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
}

/* Tabla de Calificaciones */
.table-responsive-student {
    overflow-x: auto;
}

.grades-table {
    width: 100%;
    border-collapse: collapse;
}

.grades-table thead {
    background: #f8f9fa;
}

.grades-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #dee2e6;
}

.grades-table td {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
}

.grades-table tbody tr:hover {
    background: #f8f9fa;
}

.grade-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: bold;
}

.grade-excellent {
    background: #d4edda;
    color: #155724;
}

.grade-good {
    background: #d1ecf1;
    color: #0c5460;
}

.grade-average {
    background: #fff3cd;
    color: #856404;
}

.grade-poor {
    background: #f8d7da;
    color: #721c24;
}

/* Estado Vacío */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 5rem;
    color: #dee2e6;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #2c3e50;
    margin: 0 0 10px 0;
}

.empty-state p {
    color: #7f8c8d;
    margin: 0 0 20px 0;
}

.btn-primary-student {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-primary-student:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .welcome-banner-student {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .dashboard-grid-student {
        grid-template-columns: 1fr;
    }
    
    .stats-grid-student {
        grid-template-columns: 1fr;
    }
}
