/* ===== EFECTOS VINTAGE ADICIONALES ===== */

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #8B4513 0%, #D2691E 50%, #DEB887 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.vintage-loader {
    text-align: center;
}

.loader-circle {
    width: 80px;
    height: 80px;
    border: 4px solid rgba(245, 222, 179, 0.3);
    border-top: 4px solid #F5DEB3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loader-text {
    color: #F5DEB3;
    font-family: 'Georgia', serif;
    font-size: 1.2em;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Header Mejorado */
.header-content {
    position: relative;
    z-index: 2;
}

.vintage-logo {
    position: relative;
}

.vintage-ornament-top {
    width: 150px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #F5DEB3, transparent);
    margin: 15px auto;
    position: relative;
}

.vintage-ornament-top::before,
.vintage-ornament-top::after {
    content: '❋';
    position: absolute;
    top: -10px;
    color: #F5DEB3;
    font-size: 20px;
}

.vintage-ornament-top::before {
    left: -10px;
}

.vintage-ornament-top::after {
    right: -10px;
}

.vintage-tagline {
    font-size: 1em;
    color: #DDD8C4;
    font-style: italic;
    margin-top: 10px;
    opacity: 0.9;
}

/* Navegación del Header */
.header-nav {
    margin-top: 30px;
    position: relative;
    z-index: 2;
}

.nav-list {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 40px;
}

.nav-link {
    color: #F5DEB3;
    text-decoration: none;
    font-family: 'Georgia', serif;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #F5DEB3;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #FFF;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

/* Sección Hero Mejorada */
.hero-section {
    padding: 80px 40px;
    text-align: center;
    background: linear-gradient(145deg, var(--vintage-light), #E6D3B7);
    margin: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-medium), var(--shadow-inset);
    border: 2px solid #D2B48C;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--vintage-primary), var(--vintage-secondary), var(--vintage-gold));
}

.hero-title {
    font-size: 3.2em;
    color: var(--vintage-primary);
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    font-family: 'Georgia', serif;
}

.hero-description {
    font-size: 1.3em;
    color: var(--vintage-dark);
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.8;
    text-align: justify;
}

/* Estadísticas Preview */
.stats-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 30px;
    margin-top: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(139, 69, 19, 0.2);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--vintage-primary);
    font-family: 'Georgia', serif;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 0.9em;
    color: var(--vintage-dark);
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Secciones Mejoradas */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.8em;
    color: var(--vintage-primary);
    margin-bottom: 20px;
    font-family: 'Georgia', serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.section-subtitle {
    font-size: 1.2em;
    color: var(--vintage-dark);
    font-style: italic;
    max-width: 600px;
    margin: 0 auto;
}

.vintage-divider {
    width: 200px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--vintage-gold), transparent);
    margin: 20px auto;
    position: relative;
}

.vintage-divider::before,
.vintage-divider::after {
    content: '✦';
    position: absolute;
    top: -8px;
    color: var(--vintage-gold);
    font-size: 16px;
}

.vintage-divider::before {
    left: -15px;
}

.vintage-divider::after {
    right: -15px;
}

/* Feature Cards Mejoradas */
.features-section {
    padding: 60px 40px;
    background: var(--vintage-cream);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: linear-gradient(145deg, var(--vintage-light), #E6D3B7);
    padding: 35px 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-light), var(--shadow-inset);
    border: 2px solid #D2B48C;
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--vintage-primary), var(--vintage-secondary), var(--vintage-gold));
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.feature-icon {
    font-size: 4em;
    margin-bottom: 20px;
    display: block;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
}

.feature-card h3 {
    color: var(--vintage-primary);
    font-size: 1.6em;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    font-family: 'Georgia', serif;
}

.feature-card p {
    color: var(--vintage-dark);
    line-height: 1.6;
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
    text-align: left;
}

.feature-list li {
    padding: 5px 0;
    color: var(--vintage-dark);
    position: relative;
    padding-left: 25px;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--vintage-green);
    font-weight: bold;
}

/* Roles Section */
.roles-section {
    padding: 60px 40px;
    background: linear-gradient(145deg, #F5E6D3, #E6D3B7);
}

.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.role-card {
    background: var(--vintage-cream);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-light), var(--shadow-inset);
    border: 2px solid #D2B48C;
    transition: var(--transition-medium);
}

.role-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.role-header {
    padding: 30px 25px 20px;
    text-align: center;
    position: relative;
}

.admin-role .role-header {
    background: linear-gradient(135deg, #B22222, #DC143C, #FFB6C1);
}

.teacher-role .role-header {
    background: linear-gradient(135deg, #8B008B, #9932CC, #DDA0DD);
}

.student-role .role-header {
    background: linear-gradient(135deg, #4682B4, #4169E1, #87CEEB);
}

.role-icon {
    font-size: 4em;
    margin-bottom: 15px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.role-card h3 {
    color: white;
    font-size: 1.8em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'Georgia', serif;
}

.role-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.role-body {
    padding: 25px;
}

.role-body p {
    color: var(--vintage-dark);
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center;
}

.role-features {
    margin-bottom: 25px;
}

.role-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: var(--vintage-dark);
}

.feature-bullet {
    color: var(--vintage-green);
    font-weight: bold;
    min-width: 20px;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: var(--transition-medium);
    cursor: pointer;
    border: 2px solid;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--vintage-primary), var(--vintage-accent), var(--vintage-secondary));
    color: #F5DEB3;
    border-color: var(--vintage-dark);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    background: linear-gradient(135deg, var(--vintage-accent), var(--vintage-secondary), #CD853F);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--vintage-green), #8FBC8F, #9ACD32);
    color: #F5F5F5;
    border-color: #556B2F;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    background: linear-gradient(135deg, #8FBC8F, #9ACD32, #ADFF2F);
}

.btn-tertiary {
    background: linear-gradient(135deg, var(--vintage-gold), #F0E68C, #FFFF99);
    color: var(--vintage-dark);
    border-color: #B8860B;
}

.btn-tertiary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    background: linear-gradient(135deg, #F0E68C, #FFFF99, #FFFACD);
}

.btn-outline {
    background: transparent;
    color: var(--vintage-primary);
    border-color: var(--vintage-primary);
}

.btn-outline:hover {
    background: var(--vintage-primary);
    color: #F5DEB3;
}

.full-width {
    width: 100%;
}

/* Testimonials */
.testimonials-section {
    padding: 60px 40px;
    background: var(--vintage-cream);
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    height: 300px;
}

.testimonial-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.5s ease;
    background: linear-gradient(145deg, var(--vintage-light), #E6D3B7);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-light), var(--shadow-inset);
    border: 2px solid #D2B48C;
}

.testimonial-card.active {
    opacity: 1;
    transform: translateX(0);
}

.testimonial-content p {
    font-size: 1.3em;
    color: var(--vintage-dark);
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 25px;
    text-align: center;
}

.testimonial-content p::before {
    content: '"';
    font-size: 3em;
    color: var(--vintage-gold);
    position: absolute;
    left: 10px;
    top: 10px;
    font-family: 'Georgia', serif;
}

.testimonial-content p::after {
    content: '"';
    font-size: 3em;
    color: var(--vintage-gold);
    position: absolute;
    right: 10px;
    bottom: 40px;
    font-family: 'Georgia', serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.author-avatar {
    font-size: 3em;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
}

.author-info h4 {
    color: var(--vintage-primary);
    font-family: 'Georgia', serif;
    margin-bottom: 5px;
}

.author-info p {
    color: var(--vintage-dark);
    font-size: 0.9em;
    font-style: italic;
}

.testimonial-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.control-btn {
    background: var(--vintage-primary);
    color: #F5DEB3;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-light);
}

.testimonial-indicators {
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(139, 69, 19, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--vintage-primary);
    transform: scale(1.2);
}

/* Footer Mejorado */
.main-footer {
    background: linear-gradient(135deg, var(--vintage-dark), var(--vintage-primary));
    color: var(--vintage-light);
    padding: 50px 40px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.footer-section h3,
.footer-section h4 {
    color: #F5DEB3;
    margin-bottom: 20px;
    font-family: 'Georgia', serif;
}

.footer-section p {
    line-height: 1.6;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-link {
    color: var(--vintage-light);
    text-decoration: none;
    padding: 8px 15px;
    border: 1px solid rgba(245, 222, 179, 0.3);
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.social-link:hover {
    background: rgba(245, 222, 179, 0.1);
    border-color: #F5DEB3;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--vintage-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #F5DEB3;
}

.contact-info p {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
}

.vintage-divider-footer {
    width: 300px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #F5DEB3, transparent);
    margin: 0 auto 20px;
    position: relative;
}

.vintage-divider-footer::before,
.vintage-divider-footer::after {
    content: '✦';
    position: absolute;
    top: -8px;
    color: #F5DEB3;
    font-size: 16px;
}

.vintage-divider-footer::before {
    left: -15px;
}

.vintage-divider-footer::after {
    right: -15px;
}

.footer-tagline {
    font-style: italic;
    margin-top: 10px;
    color: #DDD8C4;
}

/* Modales */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(145deg, var(--vintage-light), #E6D3B7);
    margin: 3% auto;
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow-heavy), var(--shadow-inset);
    border: 3px solid var(--vintage-primary);
    animation: modalSlideIn 0.3s ease;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.close {
    color: var(--vintage-primary);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.close:hover {
    color: var(--vintage-dark);
}

.modal-title {
    color: var(--vintage-primary);
    font-family: 'Georgia', serif;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Formularios Vintage */
.vintage-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--vintage-dark);
    font-family: 'Georgia', serif;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px;
    border: 2px solid #D2B48C;
    border-radius: 6px;
    font-size: 16px;
    font-family: 'Georgia', serif;
    background: rgba(250, 248, 240, 0.9);
    color: var(--vintage-dark);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--vintage-primary);
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.2);
    background: var(--vintage-cream);
}

.password-input {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
}

.password-strength {
    margin-top: 5px;
    font-size: 12px;
    height: 20px;
}

.password-strength.weak {
    color: #dc3545;
}

.password-strength.medium {
    color: #ffc107;
}

.password-strength.strong {
    color: #28a745;
}

.modal-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(139, 69, 19, 0.2);
    margin-top: 20px;
}

.modal-footer a {
    color: var(--vintage-primary);
    text-decoration: none;
    font-weight: 600;
}

.modal-footer a:hover {
    text-decoration: underline;
}

.demo-credentials {
    background: rgba(255, 255, 255, 0.3);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid rgba(139, 69, 19, 0.2);
}

.demo-credentials h4 {
    color: var(--vintage-primary);
    margin-bottom: 15px;
    text-align: center;
}

.demo-user {
    padding: 5px 0;
    font-size: 14px;
    color: var(--vintage-dark);
}

/* Efectos de Scroll */
[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0) !important;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="zoom-in"] {
    transform: scale(0.8);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-list {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-section {
        padding: 40px 20px;
        margin: 20px;
    }
    
    .hero-title {
        font-size: 2.2em;
    }
    
    .section-title {
        font-size: 2.2em;
    }
    
    .features-grid,
    .roles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .stats-preview {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 25px;
    }
    
    .testimonial-card {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .vintage-title {
        font-size: 2em;
    }
    
    .hero-title {
        font-size: 1.8em;
    }
    
    .section-title {
        font-size: 1.8em;
    }
    
    .stats-preview {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2em;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 14px;
    }
}