/* ===== VARIABLES CSS VINTAGE ===== */
:root {
    /* Colores Vintage */
    --vintage-primary: #8B4513;
    --vintage-secondary: #D2691E;
    --vintage-accent: #A0522D;
    --vintage-light: #F5E6D3;
    --vintage-cream: #FAF8F0;
    --vintage-dark: #5D4E37;
    --vintage-gold: #DAA520;
    --vintage-green: #6B8E23;
    
    /* Tipografías */
    --font-serif: 'Georgia', 'Times New Roman', serif;
    --font-sans: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    
    /* Sombras Vintage */
    --shadow-light: 0 4px 15px rgba(139, 69, 19, 0.2);
    --shadow-medium: 0 8px 25px rgba(139, 69, 19, 0.3);
    --shadow-heavy: 0 15px 35px rgba(139, 69, 19, 0.4);
    --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.3);
    
    /* Transiciones */
    --transition-fast: all 0.3s ease;
    --transition-medium: all 0.4s ease;
    --transition-slow: all 0.6s ease;
}

/* ===== RESET Y BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-serif);
    background: linear-gradient(135deg, #8B4513 0%, #D2691E 30%, #F4A460 70%, #DEB887 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--vintage-dark);
    line-height: 1.6;
}

/* ===== CONTENEDOR PRINCIPAL ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(250, 248, 240, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: var(--shadow-heavy), var(--shadow-inset);
    border: 3px solid var(--vintage-primary);
    overflow: hidden;
    min-height: 100vh;
}

/* ===== PÁGINA DE ATERRIZAJE ===== */
.landing-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.landing-page .container {
    min-height: auto;
    max-width: 1000px;
}

/* ===== HEADER PRINCIPAL ===== */
.main-header {
    background: linear-gradient(135deg, #654321, #8B4513, #A0522D);
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid var(--vintage-dark);
}

.main-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 3px,
        rgba(245, 222, 179, 0.1) 3px,
        rgba(245, 222, 179, 0.1) 6px
    );
    animation: vintageShimmer 4s ease-in-out infinite;
}

@keyframes vintageShimmer {
    0%, 100% { transform: translateX(-100%) rotate(0deg); }
    50% { transform: translateX(100%) rotate(5deg); }
}

.vintage-title {
    font-size: 3.5em;
    color: #F5DEB3;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
    letter-spacing: 3px;
}

.vintage-subtitle {
    font-size: 1.3em;
    color: #DDD8C4;
    font-style: italic;
    position: relative;
    z-index: 2;
    margin-bottom: 20px;
}

.vintage-ornament {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #F5DEB3, transparent);
    margin: 20px auto;
    position: relative;
    z-index: 2;
}

/* ===== CONTENIDO LANDING ===== */
.landing-content {
    padding: 50px 40px;
}

.welcome-section {
    text-align: center;
    margin-bottom: 60px;
}

.welcome-section h2 {
    font-size: 2.5em;
    color: var(--vintage-primary);
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.welcome-text {
    font-size: 1.2em;
    color: var(--vintage-dark);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

/* ===== BOTONES ===== */
.action-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.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);
}

/* ===== GRID DE CARACTERÍSTICAS ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.feature-card {
    background: linear-gradient(145deg, var(--vintage-light), #E6D3B7);
    padding: 35px 25px;
    border-radius: 12px;
    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(-8px);
    box-shadow: var(--shadow-medium);
}

.feature-icon {
    font-size: 3em;
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    color: var(--vintage-primary);
    font-size: 1.5em;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.feature-card p {
    color: var(--vintage-dark);
    line-height: 1.6;
}

/* ===== CARACTERÍSTICAS DEL SISTEMA ===== */
.system-features {
    background: linear-gradient(145deg, var(--vintage-light), #E6D3B7);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-light), var(--shadow-inset);
    border: 2px solid #D2B48C;
    margin-bottom: 40px;
}

.system-features h2 {
    color: var(--vintage-primary);
    font-size: 2.2em;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--vintage-cream);
    border-radius: 8px;
    border-left: 4px solid var(--vintage-primary);
    transition: var(--transition-fast);
}

.feature-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-light);
}

.feature-bullet {
    font-size: 1.5em;
    min-width: 30px;
}

/* ===== FORMULARIOS ===== */
.form-container {
    max-width: 450px;
    margin: 50px auto;
    background: linear-gradient(145deg, var(--vintage-light), #E6D3B7);
    padding: 50px 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-medium), var(--shadow-inset);
    border: 2px solid #D2B48C;
}

.form-title {
    text-align: center;
    color: var(--vintage-primary);
    font-size: 2.2em;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--vintage-dark);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #D2B48C;
    border-radius: 6px;
    font-size: 16px;
    font-family: var(--font-serif);
    background: rgba(250, 248, 240, 0.9);
    color: var(--vintage-dark);
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--vintage-primary);
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.2);
    background: var(--vintage-cream);
}

/* ===== FOOTER ===== */
.main-footer {
    background: linear-gradient(135deg, var(--vintage-dark), var(--vintage-primary));
    color: var(--vintage-light);
    text-align: center;
    padding: 25px;
    border-top: 3px solid var(--vintage-primary);
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: 300px;
    background: linear-gradient(180deg, var(--vintage-light), #E6D3B7, #D2B48C);
    border-right: 3px solid var(--vintage-primary);
    padding: 20px 0;
    box-shadow: inset -5px 0 10px rgba(139, 69, 19, 0.2);
}

.nav-item {
    padding: 18px 30px;
    cursor: pointer;
    transition: var(--transition-medium);
    border-bottom: 1px solid rgba(139, 69, 19, 0.2);
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--vintage-dark);
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.nav-item:hover {
    background: linear-gradient(90deg, var(--vintage-primary), var(--vintage-accent));
    color: #F5DEB3;
    transform: translateX(8px);
    box-shadow: var(--shadow-light);
    border-left: 4px solid var(--vintage-dark);
}

.nav-item.active {
    background: linear-gradient(90deg, var(--vintage-dark), var(--vintage-primary));
    color: #F5DEB3;
    border-left: 4px solid var(--vintage-secondary);
    box-shadow: var(--shadow-light);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .vintage-title {
        font-size: 2.5em;
    }
    
    .welcome-section h2 {
        font-size: 2em;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .features-list {
        grid-template-columns: 1fr;
    }
    
    .form-container {
        margin: 20px;
        padding: 30px 25px;
    }
    
    .landing-content {
        padding: 30px 20px;
    }
}

/* ===== ANIMACIONES ADICIONALES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* ===== UTILIDADES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }

.p-20 { padding: 20px; }
.p-30 { padding: 30px; }
.p-40 { padding: 40px; }

.vintage-border {
    border: 2px solid var(--vintage-primary);
    border-radius: 8px;
}

.vintage-shadow {
    box-shadow: var(--shadow-light);
}