/* ==========================================================================
   Design System & Global Variables
   ========================================================================== */
:root {
    /* Color Palette (USIL Blue Theme) */
    --primary: hsl(218, 90%, 55%);
    --primary-light: hsl(218, 100%, 65%);
    --primary-dark: hsl(218, 90%, 40%);
    --secondary: hsl(218, 90%, 55%);
    --secondary-light: hsl(218, 100%, 65%);
    --accent: hsl(218, 100%, 70%);
    
    /* Neutral Colors */
    --neutral-900: hsl(224, 25%, 12%);
    --neutral-800: hsl(224, 20%, 18%);
    --neutral-700: hsl(224, 15%, 28%);
    --neutral-600: hsl(220, 12%, 40%);
    --neutral-500: hsl(220, 10%, 50%);
    --neutral-300: hsl(220, 15%, 85%);
    --neutral-200: hsl(220, 20%, 93%);
    --neutral-100: hsl(220, 20%, 97%);
    --white: hsl(0, 0%, 100%);
    
    /* Layout & Styling Tokens */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --border-radius-sm: 8px;
    --border-radius-md: 14px;
    --border-radius-lg: 24px;
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);
    
    /* Glassmorphism Defaults */
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-blur: blur(16px);
    
    /* Grid/Layout */
    --container-width: 1280px;
    --header-height: 80px;
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--white);
    color: var(--neutral-700);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--neutral-900);
    font-weight: 700;
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.bg-gradient-1 { background: linear-gradient(135deg, hsl(230, 80%, 65%), hsl(260, 80%, 65%)); }
.bg-gradient-2 { background: linear-gradient(135deg, hsl(180, 75%, 45%), hsl(220, 75%, 55%)); }

.hidden {
    display: none !important;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--border-radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    gap: 8px;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(88, 80, 236, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(88, 80, 236, 0.5);
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.btn-secondary:active {
    transform: translateY(0);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
    border-radius: 6px;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* ==========================================================================
   Header Navigation
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.logo-icon {
    width: 28px;
    height: 28px;
    stroke: var(--primary-light);
}

.logo span.logo-text {
    color: hsl(218, 100%, 65%);
    font-weight: 800;
}

.main-nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--neutral-300);
}

.nav-link:hover {
    color: var(--white);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 60px;
    background-image: url('assets/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg, 
        rgba(10, 10, 18, 0.92) 0%, 
        rgba(10, 10, 18, 0.8) 50%, 
        rgba(15, 12, 35, 0.6) 100%
    );
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.badge {
    background-color: rgba(88, 80, 236, 0.15);
    border: 1px solid rgba(88, 80, 236, 0.3);
    color: var(--primary-light);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 20px;
    display: inline-block;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--white);
    margin-bottom: 16px;
    line-height: 1.15;
    font-weight: 800;
}

.hero-subheadline {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--neutral-300);
    margin-bottom: 24px;
}

.hero-subheadline strong {
    color: var(--secondary-light);
    font-weight: 600;
}

.hero-description {
    color: var(--neutral-300);
    font-size: 1.05rem;
    max-width: 580px;
    margin-bottom: 40px;
}

/* Stats */
.stats-grid {
    display: flex;
    gap: 40px;
    margin-top: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--white);
    background: linear-gradient(135deg, var(--white), var(--secondary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--neutral-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* ==========================================================================
   Hero Form Glassmorphic Card
   ========================================================================== */
.hero-form-container {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-slow);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
    pointer-events: none;
}

.card-header {
    margin-bottom: 24px;
}

.card-title {
    color: var(--white);
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.card-subtitle {
    color: var(--neutral-300);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Form Styles */
.enrollment-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--neutral-300);
}

.input-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
}

.input-icon {
    position: absolute;
    right: 16px;
    top: 23px; /* adjusted to account for center alignment in standard 46px input */
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--neutral-500);
    pointer-events: none;
    transition: color var(--transition-fast);
}

/* Adjust position of error message so it doesn't overlap */
.input-wrapper .error-msg {
    position: relative;
    margin-top: 4px;
}

.password-toggle-btn {
    position: absolute;
    right: 16px;
    top: 23px;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral-500);
    transition: color var(--transition-fast);
}

.password-toggle-btn:hover {
    color: var(--white);
}

.password-toggle-btn svg {
    width: 18px;
    height: 18px;
}

.form-input-icon {
    padding-right: 48px !important;
}

.form-input, .form-select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius-sm);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    outline: none;
}

.form-select option {
    background-color: var(--neutral-800);
    color: var(--white);
}

.form-input:focus, .form-select:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--secondary-light);
    box-shadow: 0 0 0 3px rgba(0, 230, 195, 0.2);
}

.form-input::placeholder {
    color: var(--neutral-500);
}

/* Error Messages */
.error-msg {
    color: hsl(0, 85%, 65%);
    font-size: 0.75rem;
    margin-top: 4px;
    display: none;
    animation: fadeIn var(--transition-fast) forwards;
}

.form-input.invalid, .form-select.invalid {
    border-color: hsl(0, 85%, 60%);
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.15);
}

.form-input.invalid ~ .error-msg,
.form-select.invalid ~ .error-msg,
.form-checkbox-group .invalid ~ .error-msg {
    display: block;
}

/* Checkbox Styles */
.form-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--neutral-300);
}

.checkbox-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.custom-checkbox {
    height: 18px;
    width: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    display: inline-block;
    position: relative;
    flex-shrink: 0;
    transition: all var(--transition-fast);
    margin-top: 2px;
}

.checkbox-label:hover input ~ .custom-checkbox {
    border-color: var(--secondary-light);
}

.checkbox-label input:checked ~ .custom-checkbox {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.custom-checkbox:after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label input:checked ~ .custom-checkbox:after {
    display: block;
}

.checkbox-text {
    line-height: 1.4;
}

/* Loader Animation */
.loader-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

/* Success Screen */
.success-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 0;
    animation: fadeIn var(--transition-normal) forwards;
}

.success-icon-wrapper {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(0, 230, 195, 0.1);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border: 2px dashed rgba(0, 230, 195, 0.3);
    animation: pulse 2s infinite;
}

.success-icon {
    width: 36px;
    height: 36px;
}

.success-screen h3 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.success-screen p {
    color: var(--neutral-300);
    font-size: 0.95rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* ==========================================================================
   Benefits / Features Section
   ========================================================================== */
.benefits-section {
    padding: 100px 0;
    background-color: var(--neutral-100);
}

.section-container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 60px auto;
}

.section-badge {
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.25rem;
    color: var(--neutral-900);
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--neutral-600);
    font-size: 1.05rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.benefit-card {
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    padding: 40px 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--neutral-200);
    transition: all var(--transition-normal);
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: rgba(88, 80, 236, 0.15);
}

.benefit-icon-container {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background-color: rgba(88, 80, 236, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--primary);
}

.benefit-icon {
    width: 28px;
    height: 28px;
}

.benefit-card:hover .benefit-icon-container {
    background-color: var(--primary);
    color: var(--white);
    transition: all var(--transition-normal);
}

.benefit-card-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.benefit-card-description {
    color: var(--neutral-600);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================================================
   Testimonial Section
   ========================================================================== */
.testimonial-section {
    padding: 100px 0;
    background-color: var(--white);
    border-top: 1px solid var(--neutral-200);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.testimonial-card {
    background-color: var(--neutral-100);
    border-radius: var(--border-radius-md);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--neutral-200);
    position: relative;
}

.testimonial-card::before {
    content: "“";
    font-family: var(--font-heading);
    font-size: 5rem;
    color: rgba(88, 80, 236, 0.08);
    position: absolute;
    top: 10px;
    left: 20px;
    line-height: 1;
}

.testimonial-text {
    font-style: italic;
    color: var(--neutral-700);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
}

.user-name {
    font-size: 0.95rem;
    color: var(--neutral-900);
}

.user-role {
    font-size: 0.8rem;
    color: var(--neutral-500);
}

/* ==========================================================================
   Footer Section
   ========================================================================== */
.main-footer {
    background-color: var(--neutral-900);
    color: var(--neutral-300);
    padding: 80px 0 30px 0;
    border-top: 1px solid var(--neutral-800);
}

.footer-container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-desc {
    font-size: 0.95rem;
    color: var(--neutral-500);
    line-height: 1.7;
    max-width: 400px;
}

.footer-links-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.footer-column h4 {
    color: var(--white);
    font-size: 1.05rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column ul li a {
    color: var(--neutral-500);
    font-size: 0.9rem;
}

.footer-column ul li a:hover {
    color: var(--white);
}

.contact-info {
    font-size: 0.9rem;
    color: var(--neutral-500);
}

.footer-bottom {
    border-top: 1px solid var(--neutral-800);
    padding-top: 30px;
}

.footer-bottom-container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--neutral-600);
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: var(--neutral-600);
}

.footer-legal a:hover {
    color: var(--white);
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 230, 195, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 230, 195, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 230, 195, 0);
    }
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .stats-grid {
        justify-content: center;
    }
    
    .hero-form-container {
        max-width: 500px;
        width: 100%;
        margin: 0 auto;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .main-nav {
        display: none; /* Hide nav links on tablet/mobile for clean UI */
    }
    
    .header-cta {
        margin-left: auto;
    }
    
    .hero-section {
        padding-top: calc(var(--header-height) + 20px);
    }
    
    .benefits-section, .testimonial-section {
        padding: 60px 0;
    }
    
    .footer-links-group {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        flex-direction: column;
        gap: 20px;
    }
    
    .glass-card {
        padding: 24px;
    }
}

.text-usil-blue {
    color: hsl(218, 100%, 65%) !important;
}

/* ==========================================================================
   Welcome Page Styles (bienvenida.html)
   ========================================================================== */
.welcome-body {
    background-image: url('assets/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    position: relative;
    overflow-x: hidden;
    box-sizing: border-box;
}

.welcome-body .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg, 
        rgba(10, 10, 18, 0.96) 0%, 
        rgba(10, 10, 18, 0.90) 50%, 
        rgba(15, 12, 35, 0.82) 100%
    );
    z-index: 1;
}

.welcome-container-main {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 940px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.welcome-card {
    background-color: var(--white);
    color: var(--neutral-700);
    border-radius: var(--border-radius-lg);
    padding: 45px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    border: 1px solid var(--neutral-200);
}

.welcome-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--neutral-100);
    padding-bottom: 24px;
    margin-bottom: 35px;
}

.welcome-logo-left {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--neutral-900);
}

.logo-icon-welcome {
    width: 32px;
    height: 32px;
    stroke: var(--primary);
}

.welcome-brand {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
}

.welcome-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.welcome-logout-row {
    display: flex;
    justify-content: flex-end;
}

.welcome-title-row {
    text-align: right;
}

.welcome-site-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary); /* Blue */
}

.welcome-site-subtitle {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary); /* Blue */
    display: block;
    margin-top: 2px;
}

.btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--neutral-600);
    transition: color var(--transition-fast);
}

.btn-logout:hover {
    color: var(--primary);
}

.logout-icon-svg {
    width: 18px;
    height: 18px;
}

/* Welcome Main Content */
.welcome-main-content {
    margin-bottom: 35px;
}

.welcome-main-title {
    color: var(--primary);
    font-size: 1.85rem;
    font-weight: 800;
    margin-bottom: 18px;
    font-family: var(--font-heading);
    line-height: 1.3;
}

.welcome-greeting {
    font-size: 1.2rem;
    margin-bottom: 14px;
    color: var(--neutral-800);
}

.greeting-lbl {
    color: var(--neutral-600);
}

.greeting-name {
    color: var(--neutral-900);
    font-weight: 700;
}

.welcome-intro-text {
    color: var(--neutral-600);
    font-size: 0.98rem;
    line-height: 1.65;
}

/* Sections Grid */
.grid-sections {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.section-grid-card {
    border: 1px solid var(--neutral-200);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    background-color: var(--white);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.section-grid-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 102, 255, 0.25);
}

.card-grid-header {
    background-color: hsl(218, 90%, 20%);
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.card-grid-header h3 {
    font-family: var(--font-heading);
    color: var(--white);
    font-size: 1.05rem;
    font-weight: 600;
}

.card-grid-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-grid-body p {
    color: #000000 !important; /* Force black text */
    font-size: 0.92rem;
    line-height: 1.6;
}

.underline-blue {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 600;
}

/* Status Indicators in Card 2 */
.status-indicators {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
    background-color: var(--neutral-100);
    padding: 14px;
    border-radius: 10px;
    border: 1px solid var(--neutral-200);
}

.status-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.85rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.check-badge {
    background-color: rgba(46, 204, 113, 0.15);
    color: #27ae60;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.warning-badge {
    background-color: rgba(241, 196, 15, 0.15);
    color: #d35400;
    border: 1px solid rgba(241, 196, 15, 0.3);
}

.status-desc {
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--neutral-800);
}

/* Footer card */
.welcome-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 2px solid var(--neutral-100);
    padding-top: 24px;
    margin-top: 15px;
}

.footer-sign {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sign-title {
    font-size: 0.92rem;
    color: var(--neutral-500);
}

.sign-corp {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--neutral-900);
}

.btn-continue {
    padding: 14px 32px;
}

.arrow-right-icon {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-fast);
}

.btn-continue:hover .arrow-right-icon {
    transform: translateX(4px);
}

/* Fade in animation welcome */
.animate-fade-in-up {
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Responsive Welcome Card */
@media (max-width: 820px) {
    .grid-sections {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .welcome-card {
        padding: 30px;
    }
    
    .welcome-card-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        align-items: center;
    }
    
    .welcome-logout-right {
        width: 100%;
        justify-content: center;
    }
    
    .welcome-card-footer {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        text-align: center;
    }
    
    .btn-continue {
        width: 100%;
    }
}

/* ==========================================================================
   Home Matrícula Page Styles (home-matricula.html)
   ========================================================================== */
.home-matricula-body {
    background-color: #ffffff !important;
    background-image: none !important;
    color: #1a1a1a !important;
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.home-matricula-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 20px 40px;
}

.header-container-white {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-dark {
    display: flex;
    align-items: center;
    gap: 8px;
    color: hsl(218, 90%, 20%);
}

.logo-icon-dark {
    width: 32px;
    height: 32px;
    stroke: hsl(218, 90%, 20%);
}

.brand-dark {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: hsl(218, 90%, 20%);
}

.header-info-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.header-title-dark {
    color: hsl(218, 90%, 20%) !important;
    font-size: 1.4rem;
    font-weight: 700;
    font-family: var(--font-heading);
    margin-bottom: 2px;
}

.header-subtitle-dark {
    color: hsl(218, 90%, 20%);
    font-weight: 600;
    font-size: 1.05rem;
    font-family: var(--font-heading);
    display: block;
}

.btn-exit-dark {
    font-size: 0.9rem;
    color: hsl(218, 90%, 55%);
    text-decoration: underline;
    font-weight: 500;
    margin-top: 4px;
    transition: color var(--transition-fast);
}

.btn-exit-dark:hover {
    color: hsl(218, 90%, 40%);
}

/* Navigation Bar */
.home-matricula-nav {
    background-color: hsl(218, 90%, 20%);
    padding: 0 40px;
}

.nav-container-white {
    max-width: var(--container-width);
    margin: 0 auto;
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.nav-menu li {
    display: flex;
    align-items: center;
}

.nav-item {
    color: #ffffff;
    text-decoration: none;
    padding: 16px 20px;
    font-weight: 500;
    font-size: 0.95rem;
    font-family: var(--font-heading);
    transition: background-color var(--transition-fast);
}

.nav-item:hover, .nav-item.active {
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.separator {
    color: rgba(255, 255, 255, 0.3);
    user-select: none;
    font-size: 0.9rem;
}

/* Content Area */
.home-matricula-content {
    flex-grow: 1;
    background-color: #f7fafc;
    padding: 50px 40px;
}

.content-container {
    max-width: var(--container-width);
    margin: 0 auto;
}

.welcome-box {
    background-color: #ffffff;
    border-radius: var(--border-radius-md);
    padding: 40px;
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-sm);
}

.welcome-box h2 {
    color: hsl(218, 90%, 20%) !important;
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.welcome-box .intro-p {
    color: #4a5568;
    font-size: 1rem;
    margin-bottom: 30px;
}

/* Summary Grid */
.status-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.summary-card {
    background-color: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: var(--border-radius-sm);
    padding: 24px;
    text-align: center;
}

.summary-card h3 {
    font-size: 0.85rem;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.summary-card .value {
    font-size: 2rem;
    font-weight: 700;
    color: hsl(218, 90%, 20%);
    font-family: var(--font-heading);
}

.summary-card .value.state-ok {
    color: #2f855a;
}

@media (max-width: 768px) {
    .home-matricula-header {
        padding: 15px 20px;
    }
    
    .home-matricula-nav {
        padding: 0 10px;
    }
    
    .nav-item {
        padding: 12px 10px;
        font-size: 0.85rem;
    }
    
    .separator {
        display: none;
    }
    
    .home-matricula-content {
        padding: 30px 20px;
    }
}

/* ==========================================================================
   2-Column Grid Layout & PDF Box
   ========================================================================== */
.home-matricula-grid-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 30px;
    align-items: start;
}

.info-box {
    background-color: #ffffff;
    border-radius: var(--border-radius-md);
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.box-header-blue {
    background-color: hsl(218, 90%, 20%);
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.box-header-blue h3 {
    color: #ffffff !important;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
}

.box-body {
    padding: 24px;
}

.pdf-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pdf-link-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #2d3748;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    padding: 8px 12px;
    border-radius: 8px;
}

.pdf-link-item:hover {
    color: hsl(218, 90%, 55%);
    background-color: #f7fafc;
    transform: translateX(4px);
}

.pdf-icon {
    width: 22px;
    height: 22px;
    color: #e53e3e; /* PDF Red */
    fill: rgba(229, 62, 62, 0.1);
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .home-matricula-grid-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Clock and Status Styles in Right Column */
.clock-container {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 14px 18px;
    border-radius: 8px;
}

.clock-label {
    font-size: 0.8rem;
    color: #718096;
    text-transform: uppercase;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.live-clock {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: hsl(218, 90%, 20%);
}

.status-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.status-row-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.check-green {
    color: #27ae60;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.2;
    user-select: none;
}

.status-text {
    font-size: 0.92rem;
    color: #2d3748;
    line-height: 1.5;
}

.state-banner-green {
    background-color: rgba(46, 204, 113, 0.12);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: #22c55e !important;
    font-weight: 800;
    text-align: center;
    padding: 14px;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.box-contact-info {
    font-size: 0.9rem;
    color: #4a5568;
    line-height: 1.5;
    border-top: 1px solid #edf2f7;
    padding-top: 16px;
}

.box-contact-info a {
    color: hsl(218, 90%, 55%);
    text-decoration: underline;
}

.box-contact-info a:hover {
    color: hsl(218, 90%, 40%);
}

.contact-line {
    font-size: 0.9rem;
    color: #4a5568;
}

/* Shortcut Actions side-by-side */
.shortcut-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 24px;
}

.shortcut-card-btn {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius-md);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    color: hsl(218, 90%, 20%);
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.shortcut-card-btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 102, 255, 0.25);
    color: hsl(218, 90%, 55%);
    text-decoration: none;
}

.shortcut-icon {
    width: 32px;
    height: 32px;
    color: hsl(218, 90%, 55%);
    transition: transform var(--transition-normal);
}

.shortcut-card-btn:hover .shortcut-icon {
    transform: scale(1.1);
}

/* Steps list layout */
.steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.step-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background-color: #f8fafc;
    border-radius: 8px;
    border: 1px solid #edf2f7;
    font-size: 0.92rem;
    color: #4a5568;
    transition: all var(--transition-fast);
}

.step-number-lbl {
    font-weight: 700;
    margin-right: 4px;
    color: hsl(218, 90%, 20%);
}

.step-highlight-red {
    background-color: rgba(229, 62, 62, 0.05);
    border: 1px solid rgba(229, 62, 62, 0.2);
    color: #e53e3e !important;
    font-weight: 600;
}

.step-highlight-red .step-number-lbl {
    color: #e53e3e !important;
}

.step-arrow-icon {
    width: 18px;
    height: 18px;
    color: #22c55e; /* Green arrow */
    flex-shrink: 0;
}

/* Messages Box text */
.messages-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #2d3748;
}

/* Floating Chat Button */
.floating-chat-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    background-color: hsl(218, 90%, 55%);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 10px 25px rgba(88, 80, 236, 0.4);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.floating-chat-btn:hover {
    background-color: hsl(218, 90%, 65%);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 14px 30px rgba(88, 80, 236, 0.5);
}

.chat-icon {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

/* Horario Page Layout & Styles */
.horario-body {
    background-color: #ffffff !important;
    background-image: none !important;
    color: #1a1a1a !important;
    font-family: var(--font-body);
    min-height: 100vh;
}

.horario-content-main {
    padding: 40px;
    background-color: #f7fafc;
    min-height: calc(100vh - 80px);
}

.horario-layout-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 30px;
    align-items: start;
    max-width: var(--container-width);
    margin: 0 auto;
}

.panel-left, .panel-right {
    background-color: #ffffff;
    border-radius: var(--border-radius-md);
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.panel-header-title {
    background-color: hsl(218, 90%, 20%);
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.panel-header-title h2 {
    color: #ffffff !important;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
}

.panel-body {
    padding: 24px;
}

.summary-text-green {
    color: #27ae60 !important;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.summary-text-red {
    color: #e53e3e !important;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

/* Tables */
.table-container {
    overflow-x: auto;
    margin-bottom: 20px;
    border: 1px solid #edf2f7;
    border-radius: 8px;
}

.academic-table, .schedule-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.88rem;
}

.academic-table th, .schedule-table th {
    background-color: hsl(218, 90%, 20%);
    color: #ffffff;
    padding: 12px 16px;
    font-weight: 600;
    font-family: var(--font-heading);
    border: 1px solid #edf2f7;
}

.academic-table td, .schedule-table td {
    padding: 12px 16px;
    border: 1px solid #edf2f7;
    color: #2d3748;
}

.academic-table tbody tr:hover {
    background-color: #f8fafc;
}

.btn-ver-course {
    background: linear-gradient(135deg, #27ae60, #219653);
    color: #ffffff !important;
    font-size: 0.82rem;
    padding: 6px 14px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(39, 174, 96, 0.3);
}

.btn-ver-course:hover {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    box-shadow: 0 4px 10px rgba(39, 174, 96, 0.4);
    transform: translateY(-1px);
}

.row-selected-green {
    background-color: rgba(39, 174, 96, 0.08) !important;
}

.row-selected-green .assigned-block-cell {
    font-weight: 700;
    color: #27ae60;
}

/* Schedule Grid */
.schedule-table th, .schedule-table td {
    padding: 10px;
    text-align: center;
    border: 1px solid #edf2f7;
}

.time-header-cell {
    font-weight: 700;
    background-color: #f7fafc;
    color: #4a5568 !important;
}

/* Modality colored classes */
.cell-selected {
    font-weight: 700;
    font-size: 0.75rem;
    padding: 6px !important;
    border-radius: 4px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.cell-presencial {
    background-color: #ffedd5 !important;
    color: #ea580c !important;
    border: 1px solid #fed7aa !important;
}

.cell-virtual {
    background-color: #dcfce7 !important;
    color: #16a34a !important;
    border: 1px solid #bbf7d0 !important;
}

.cell-hibrido {
    background-color: #fef9c3 !important;
    color: #ca8a04 !important;
    border: 1px solid #fef08a !important;
}

/* Legend */
.legend-container {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.legend-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #4a5568;
}

.legend-items {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #4a5568;
}

.color-sample {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    display: inline-block;
    border: 1px solid #edf2f7;
}

.bg-grey { background-color: #e2e8f0; }
.bg-yellow { background-color: #fef9c3; border-color: #fef08a; }
.bg-orange { background-color: #ffedd5; border-color: #fed7aa; }
.bg-green { background-color: #dcfce7; border-color: #bbf7d0; }

/* Career footer text */
.career-footer-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: hsl(218, 90%, 20%);
    margin-top: 24px;
    margin-bottom: 24px;
    text-align: center;
}

/* Action Buttons */
.actions-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-action-grey {
    background-color: #e2e8f0;
    color: #4a5568 !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px;
    border-radius: 8px;
    width: 100%;
    border: 1px solid #cbd5e1;
    transition: all var(--transition-fast);
}

.btn-action-grey:hover {
    background-color: #cbd5e1;
    color: #1a202c !important;
}

/* Modal details */
.modal-header {
    border-bottom: 1px solid #edf2f7;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-family: var(--font-heading);
    color: hsl(218, 90%, 20%);
    font-size: 1.25rem;
    font-weight: 700;
}

.close-modal-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #a0aec0;
    cursor: pointer;
}

.close-modal-btn:hover {
    color: #4a5568;
}

.modal-body {
    padding: 24px;
}

.modal-section {
    margin-bottom: 24px;
}

.modal-section-title {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    color: #4a5568;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.radio-group-modal {
    display: flex;
    gap: 20px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    color: #2d3748;
    cursor: pointer;
}

.radio-label input {
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: hsl(218, 90%, 55%);
}

@media (max-width: 1024px) {
    .horario-layout-grid {
        grid-template-columns: 1fr;
    }
}

/* Modal Overlay and Hidden Utility */
.hidden {
    display: none !important;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(10, 10, 18, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    width: 90%;
    overflow: hidden;
    animation: modalFadeIn 0.3s ease-out;
}

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