/* ========== VARIABLES GLOBALES ========== */
:root {
    --primary: #ffd41e;
    --secondary: #afcfe8;
    --dark-bg: #0d1117;
    --light-bg: #ffffff;
    --dark-text: #1a1a1a;
    --light-text: #f0f0f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
    transition: background 0.3s ease;
}

body.light-mode {
    background-color: var(--light-bg);
    color: var(--dark-text);
}

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

/* ========== HEADER ========== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

body.light-mode header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.logo img {
    height: 80px;
    width: auto;
    transition: all 0.3s ease;
}

.logo img:hover {
    transform: scale(0.95);
    opacity: 0.9;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--light-text);
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.3s;
}

body.light-mode .theme-toggle {
    color: var(--dark-text);
}

.theme-toggle:hover {
    color: var(--primary);
}

/* ========== BOTONES ========== */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--primary);
    color: #000;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
    margin: 0.3rem;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 212, 30, 0.3);
}

.btn-secondary {
    background: var(--secondary);
    color: #000;
}

.btn-secondary:hover {
    box-shadow: 0 10px 20px rgba(175, 207, 232, 0.3);
}

.btn-tertiary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-tertiary:hover {
    background: var(--primary);
    color: #000;
}

/* ========== ANIMACIONES ========== */
.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

[data-animate].animate {
    opacity: 1;
    transform: translateY(0);
}

/* ========== SOCIAL LINKS ========== */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

.social-links a {
    color: var(--light-text);
    font-size: 1.5rem;
    transition: all 0.3s;
}

body.light-mode .social-links a {
    color: var(--dark-text);
}

.social-links a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

/* ========== FOOTER ========== */
footer {
    text-align: center;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.light-mode footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
}
