/**
 * ============================================================================
 * LANDING.CSS
 * Estilos para Landing Page - Sistema de Gestión Estudiantil
 * ============================================================================
 * Usa el sistema de diseño MINERD (sistema-design.css)
 * 
 * @author Sistema Académico MINERD
 * @version 1.0.0
 * @date 20 de Febrero de 2026
 * ============================================================================
 */

/* ============================================
   LANDING PAGE VARIABLES (extend sistema-design)
   ============================================ */

:root {
    /* Fallback values in case sistema-design.css doesn't load */
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --primary-900: #1e3a8a;
    --primary-800: #1e40af;
    --primary-400: #60a5fa;
    --primary-300: #93c5fd;
    --primary-100: #dbeafe;
    --primary-50: #eff6ff;
    --warning-500: #f59e0b;
    --warning-400: #fbbf24;
    --success-500: #10b981;
    --danger-500: #ef4444;
    --gray-950: #030712;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-md: 0.375rem;
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition-base: all 0.3s ease;
    --transition-fast: all 0.15s ease;
    
    --landing-primary: var(--primary-500);
    --landing-primary-dark: var(--primary-600);
    --landing-accent: var(--warning-500);
    --landing-surface: white;
    --landing-surface-alt: var(--gray-50);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================
   BADGES
   ============================================ */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-light {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    backdrop-filter: blur(10px);
}

.badge-primary {
    background: var(--primary-100);
    color: var(--primary-700);
}

/* ============================================
   NAVIGATION
   ============================================ */

.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all var(--transition-base);
    background: transparent;
}

.landing-nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    padding: 0.75rem 0;
}

.landing-nav.scrolled .nav-logo {
    color: var(--gray-900);
}

.landing-nav.scrolled .nav-logo-icon {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--warning-500) 100%);
}

.landing-nav.scrolled .nav-link {
    color: var(--gray-700);
}

.landing-nav.scrolled .nav-link:hover {
    color: var(--primary-600);
}

.landing-nav.scrolled .btn-primary {
    background: var(--primary-500);
    color: white;
}

.landing-nav.scrolled .btn-primary:hover {
    background: var(--primary-600);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    transition: color var(--transition-base);
}

.nav-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--warning-500) 100%);
    border-radius: var(--radius-md);
    font-size: 1.25rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: white;
}

/* Mobile Menu Button (hamburger) */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 100;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-landing {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 6rem;
    background: linear-gradient(135deg, var(--gray-950) 0%, var(--primary-900) 50%, var(--primary-800) 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s ease-in-out infinite;
}

.hero-shape-1 {
    width: 600px;
    height: 600px;
    background: var(--primary-600);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.hero-shape-2 {
    width: 400px;
    height: 400px;
    background: var(--warning-500);
    bottom: -100px;
    left: -100px;
    animation-delay: -5s;
}

.hero-shape-3 {
    width: 300px;
    height: 300px;
    background: var(--primary-400);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 30px) scale(1.02); }
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    animation: fadeInDown 0.8s ease-out;
}

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

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin: 1.5rem 0;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--warning-400) 0%, var(--primary-300) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.5rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    animation: bounce 2s ease-in-out infinite;
}

.scroll-indicator-icon {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator-icon::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

@keyframes scrollDown {
    0%, 100% { opacity: 1; top: 6px; }
    50% { opacity: 0.3; top: 16px; }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    border: none;
    transition: all var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
    font-family: inherit;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(79, 70, 229, 0.5);
}

.btn-white {
    background: white;
    color: var(--primary-700);
    box-shadow: var(--shadow-lg);
}

.btn-white:hover {
    transform: translateY(-2px);
    background: var(--gray-50);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-icon {
    font-size: 1.25em;
}

/* ============================================
   SECTIONS
   ============================================ */

.section-landing {
    padding: 6rem 2rem;
}

.section-white {
    background: white;
}

.section-alt {
    background: var(--gray-50);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--gray-900);
    margin: 1rem 0;
    line-height: 1.2;
}

.section-description {
    font-size: 1.125rem;
    color: var(--gray-600);
}

/* ============================================
   FEATURES
   ============================================ */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    position: relative;
    padding: 2rem;
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-100);
    transition: all var(--transition-base);
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-500), var(--warning-500));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.feature-card:hover {
    background: white;
    border-color: var(--primary-200);
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, var(--primary-100) 0%, var(--primary-50) 100%);
    border-radius: var(--radius-lg);
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.feature-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.feature-description {
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* ============================================
   BENEFITS
   ============================================ */

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

.benefit-card {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-100);
    transition: all var(--transition-base);
}

.benefit-card:hover {
    border-color: var(--primary-200);
    box-shadow: var(--shadow-lg);
    transform: translateX(8px);
}

.benefit-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    color: white;
    border-radius: var(--radius-lg);
    font-size: 1.5rem;
}

.benefit-content h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.375rem;
}

.benefit-content p {
    font-size: 0.9375rem;
    color: var(--gray-600);
}

/* ============================================
   CTA
   ============================================ */

.cta-landing {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-800) 100%);
    position: relative;
    overflow: hidden;
}

.cta-landing::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.cta-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-landing .section-title {
    color: white;
}

.cta-landing .section-description {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* ============================================
   CONTACT
   ============================================ */

.contact-landing {
    padding: 6rem 2rem;
    background: white;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.contact-info > p {
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: var(--primary-100);
    color: var(--primary-600);
    border-radius: var(--radius-lg);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-item-content h4 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.contact-item-content p {
    font-size: 0.9375rem;
    color: var(--gray-600);
}

.contact-form-wrapper {
    background: var(--gray-50);
    padding: 2.5rem;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--gray-100);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--gray-900);
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.form-control::placeholder {
    color: var(--gray-400);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px var(--primary-100);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    width: 100%;
    margin-top: 0.5rem;
}

/* ============================================
   FOOTER
   ============================================ */

.footer-landing {
    background: var(--gray-950);
    color: var(--gray-400);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--gray-800);
}

.footer-brand {
    max-width: 280px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.9375rem;
    line-height: 1.7;
}

.footer-section h4 {
    font-size: 0.875rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    font-size: 0.9375rem;
    color: var(--gray-400);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    font-size: 0.875rem;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    color: var(--gray-500);
    transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
    color: white;
}

/* ============================================
   ANIMATIONS
   ============================================ */

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays */
.feature-card:nth-child(1), .benefit-card:nth-child(1) { transition-delay: 0ms; }
.feature-card:nth-child(2), .benefit-card:nth-child(2) { transition-delay: 50ms; }
.feature-card:nth-child(3), .benefit-card:nth-child(3) { transition-delay: 100ms; }
.feature-card:nth-child(4), .benefit-card:nth-child(4) { transition-delay: 150ms; }
.feature-card:nth-child(5), .benefit-card:nth-child(5) { transition-delay: 200ms; }
.feature-card:nth-child(6), .benefit-card:nth-child(6) { transition-delay: 250ms; }
.feature-card:nth-child(7) { transition-delay: 300ms; }
.feature-card:nth-child(8) { transition-delay: 350ms; }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-brand {
        grid-column: span 2;
        max-width: 100%;
    }
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .stat-item {
        display: flex;
        align-items: center;
        gap: 1rem;
        text-align: left;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-brand {
        grid-column: span 1;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
    }
    
    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 7rem 0 4rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
}
