@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;700&family=Montserrat:wght@400;600;700;800&display=swap');

:root {
    --color-primary: #1A4D2E;
    --color-primary-dark: #11331F;
    --color-secondary: #4E9F3D;
    --color-accent: #FFD369;
    --color-accent-hover: #E6BE5C;
    --color-dark: #191A19;
    --color-light: #F8F5E1;
    --color-text-main: #191A19;
    --color-text-muted: #6c757d;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Colores de fondo */   
    --bg-card: #FFFFFF;
    --bg-sidebar: linear-gradient(180deg, #1E3610 0%, #2D5016 50%, #3D6822 100%);

     /* Estados */
    --color-success: #4CAF50;
    --color-warning: #FF9800;
    --color-danger: #E74C3C;
    --color-info: #3498DB;

    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(45, 80, 22, 0.08);
    --shadow-md: 0 4px 12px rgba(45, 80, 22, 0.12);
    --shadow-lg: 0 8px 24px rgba(45, 80, 22, 0.16);
    --shadow-hover: 0 12px 32px rgba(45, 80, 22, 0.2);
    
    /* Bordes */
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;
    --border-color: #E5E5E0;
    
    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

}

body {
    font-family: var(--font-body);
    background-color: var(--color-light);
    color: var(--color-text-main);
    overflow-x: hidden;
    padding-top: 80px; /* Space for fixed header */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}


/* Utilities */
.text-primary-custom { color: var(--color-primary); }
.text-secondary-custom { color: var(--color-secondary); }
.text-accent { color: var(--color-accent); }
.bg-primary-custom { background-color: var(--color-primary); }
.bg-dark-custom { background-color: var(--color-dark); color: white; }
.bg-light-custom { background-color: var(--color-light); }

/* Buttons */
.btn-custom-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-custom-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 77, 46, 0.4);
    color: white;
}


.btn-custom-success {
    background: linear-gradient(135deg, var(--color-success) 0%, #66BB6A 100%);   
    color: white;
    border: none;
    transition: 0.3s ease;
}

.btn-custom-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 77, 46, 0.4);
    
}

.btn-custom-accent {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
    color: var(--color-dark);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-custom-accent:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 211, 105, 0.5);
    color: var(--color-dark);
}

.btn-outline-custom {
    border: 2px solid white;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background-color: white;
    color: var(--color-dark);
}

/* Header */
.navbar-custom {
    background-color: rgba(26, 77, 46, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    transition: all 0.3s ease;
    border-bottom: 3px solid var(--color-accent);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: white !important;
}

.navbar-brand span {
    color: var(--color-accent);
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    transition: color 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-accent) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 0;
    background-color: var(--color-accent);
    transition: width 0.3s;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    margin-top: -80px; /* Counteract body padding */
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(26,77,46,0.5) 100%);
    z-index: -1;
}

/* Cards */


/* Cards */
.card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title i {
    color: var(--color-primary);
}

.card-body {
    padding: 24px;
}

/* Alertas / Flash Messages */
.alert {   
    border-radius: var(--border-radius-sm);
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #2E7D32;
}

.alert-success i {
    color: var(--color-success);
}

.alert-error {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #C62828;
}

.alert-error i {
    color: var(--color-danger);
}

.alert-warning {
    background: rgba(255, 152, 0, 0.1);
    border: 1px solid rgba(255, 152, 0, 0.3);
    color: #E65100;
}

.alert-info {
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.3);
    color: #1565C0;
}



.card-custom {
    background-color: #252625;
    border: none;
    border-left: 4px solid var(--color-secondary);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.4s ease;
    height: 100%;
}

.card-custom:hover {
    transform: translateY(-10px);
    border-left-color: var(--color-accent);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.card-img-wrapper {
    overflow: hidden;
    aspect-ratio: 1/1;
}

.card-img-custom {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-custom:hover .card-img-custom {
    transform: scale(1.1);
}
/*
.card-body {
    padding: 1.5rem;
    color: white;
}

.card-title {
    color: var(--color-light);
    font-weight: 700;
} */

/* Stats */
.stat-item {
    border-right: 1px solid var(--color-accent);
    padding: 0 15px;
}
.stat-item:last-child { border-right: none; }
.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-primary);
}
.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer */
.footer {
    background-color: #111;
    color: #aaa;
    padding: 60px 0 20px;
    border-top: 5px solid var(--color-primary);
    position: relative;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-accent));
}

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    color: white;
    font-size: 1.5rem;
    display: inline-block;
    margin-bottom: 20px;
}

.footer-links li { margin-bottom: 10px; }
.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}
.footer-links a:hover { color: var(--color-accent); padding-left: 5px; }

/* Contact Form */
.form-custom .form-control, .form-custom .form-select {
    background-color: #2b2b2b;
    border: 1px solid #444;
    color: white;
    padding: 12px 15px;
}

.form-custom .form-control:focus, .form-custom .form-select:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 0.25rem rgba(255, 211, 105, 0.25);
    background-color: #333;
}

.form-floating label { color: #aaa; }

/* Mobile */
@media (max-width: 768px) {
    .stat-item {
        border-right: none;
        border-bottom: 1px solid var(--color-accent);
        margin-bottom: 15px;
        padding-bottom: 15px;
    }
    .hero-section h1 { font-size: 2.5rem; }
    .display-custom { font-size: 3rem; }
}


/* ---- UTILIDADES ---- */

.align-center {
    align-items: center;
    display: block;
}

.student-img{
    max-width: 100%;
    height: auto;
    max-height: 250px;
    border-radius: 8px;
}