:root {
    --primary-color: #FC8C30;
    --secondary-color: #E67E22;
    --text-color: #E5E7EB;
    --background-color: #111827;
    --accent-color: #FF9F4A;
    --gradient-start: #1F2937;
    --gradient-end: #111827;
    --card-bg: #1F2937;
    --card-border: rgba(252, 140, 48, 0.2);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
}

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

header {
    background-color: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--card-border);
    animation: slideDown 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-brand img {
    height: 2rem;
    margin: 0;
}

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

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

nav a:hover {
    color: var(--primary-color);
    background-color: rgba(252, 140, 48, 0.1);
}

main {
    padding: 0;
}

.home-content {
    max-width: 1200px;
    margin: 0 auto;
}

.hero {
    text-align: center;
    padding: 8rem 2rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/images/main_background_animation.gif') center/cover;
    opacity: 0.15;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, var(--gradient-end) 100%);
    opacity: 0.7;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    line-height: 1.2;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    position: relative;
}

.hero h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
    opacity: 0.7;
}

.description {
    font-size: 1.5rem;
    color: var(--text-color);
    max-width: 600px;
    margin: 2rem auto;
    opacity: 1;
    position: relative;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.cta-button {
    display: inline-block;
    padding: 1.25rem 2.5rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 2rem;
    font-size: 1.125rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(252, 140, 48, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-button::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: 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 20px rgba(252, 140, 48, 0.4);
}

.content {
    padding: 2rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.feature-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--card-border);
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 30px rgba(252, 140, 48, 0.3);
    border-color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    margin: 2rem 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.02);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
    text-align: center;
    margin-top: 4rem;
}

h3 {
    font-size: 1.75rem;
    color: var(--secondary-color);
    margin-top: 2rem;
}

ul, ol {
    padding-left: 2rem;
}

li {
    margin-bottom: 0.75rem;
}

footer {
    background-color: var(--gradient-start);
    padding: 4rem 0;
    text-align: center;
    margin-top: 4rem;
    border-top: 1px solid var(--card-border);
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .description {
        font-size: 1.25rem;
    }
    
    nav {
        flex-direction: column;
        padding: 1rem;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-top: 1rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* Animaciones mejoradas */
.fade-in {
    opacity: 0;
    transform: translateY(60px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.slide-in-left {
    opacity: 0;
    transform: translateX(-150px) scale(0.9);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(150px) scale(0.9);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.scale-in {
    opacity: 0;
    transform: scale(0.7) rotate(-5deg);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.bounce-in {
    opacity: 0;
    transform: scale(0.3);
    transition: all 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.bounce-in.visible {
    opacity: 1;
    transform: scale(1);
}

.flip-in {
    opacity: 0;
    transform: perspective(400px) rotateX(90deg);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top;
}

.flip-in.visible {
    opacity: 1;
    transform: perspective(400px) rotateX(0deg);
}

/* Ajustes de timing para animaciones en cascada */
.hero-content > *:nth-child(1) { transition-delay: 0.3s; }
.hero-content > *:nth-child(2) { transition-delay: 0.6s; }
.hero-content > *:nth-child(3) { transition-delay: 0.9s; }

.feature-card:nth-child(1) { transition-delay: 0.3s; }
.feature-card:nth-child(2) { transition-delay: 0.6s; }
.feature-card:nth-child(3) { transition-delay: 0.9s; }
.feature-card:nth-child(4) { transition-delay: 1.2s; } 