/* ===================================
   HERO SECTION - PUNTO 1
   Hero moderno con gradientes y animaciones
   =================================== */

.hero {
    position: relative;
    min-height: 100vh;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--white);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
    min-height: 80vh;
}

/* === CONTENIDO DEL HERO === */
.hero-content {
    animation: slideInLeft 1s ease-out;
    background: rgba(0, 0, 0, 0.15);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-2xl);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--spacing-xl);
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    color: var(--white);
}

.typing-text {
    display: inline-block;
    position: relative;
}

.typing-cursor {
    display: inline-block;
    background: var(--primary-cyan);
    width: 3px;
    animation: blink 1s infinite;
    margin-left: 2px;
}

.typing-cursor.typing-complete {
    animation: none;
    opacity: 0;
}

.hero-content p {
    font-size: var(--font-size-xl);
    line-height: 1.6;
    margin-bottom: var(--spacing-2xl);
    max-width: 500px;
    animation: slideInLeft 1s ease-out 0.5s both;
    color: var(--white);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* === BOTONES CTA === */
.cta-buttons {
    display: flex;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.btn {
    position: relative;
    padding: var(--spacing-lg) var(--spacing-2xl);
    border-radius: var(--radius-xl);
    font-weight: 700;
    font-size: var(--font-size-lg);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
    animation: slideInLeft 1s ease-out 0.7s both;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.btn-primary:hover {
    background: var(--gradient-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-cyan-glow), 0 0 20px rgba(255, 255, 255, 0.3);
}

/* === IMAGEN DEL HERO === */
.hero-image {
    position: relative;
    animation: slideInRight 1s ease-out 0.3s both;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-background {
    width: 100%;
    height: auto;
    max-width: 600px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    animation: float 6s ease-in-out infinite;
    opacity: 0.3;
}

.hero-logo-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-2xl);
    border: 2px solid rgba(99, 102, 241, 0.2);
    animation: logoFloat 4s ease-in-out infinite;
    width: 500px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-main-logo {
    width: 400px;
    height: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

/* === PARTÍCULAS === */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: var(--primary-cyan);
    border-radius: 50%;
    opacity: 0.6;
    animation: particleFloat linear infinite;
}

.particle:nth-child(2n) {
    background: var(--primary-purple);
}

.particle:nth-child(3n) {
    background: var(--white);
    opacity: 0.3;
}

/* === INDICADOR DE SCROLL === */
.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-2xl);
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    cursor: pointer;
    z-index: 4;
    animation: slideInUp 1s ease-out 2s both;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    margin: 0 auto var(--spacing-sm);
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--white);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

.scroll-text {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-indicator:hover .scroll-mouse {
    border-color: var(--primary-cyan);
}

.scroll-indicator:hover .scroll-wheel {
    background: var(--primary-cyan);
}

/* === EFECTOS DE RIPPLE === */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* === ANIMACIONES === */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes logoFloat {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        box-shadow: var(--shadow-2xl);
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.05);
        box-shadow: var(--shadow-2xl), var(--shadow-glow);
    }
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes scrollWheel {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 0.5;
        transform: translateX(-50%) translateY(8px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.animate-slide-up {
    animation: slideInUp 0.8s ease-out both;
}

/* === TEMA OSCURO === */
[data-theme="dark"] .hero {
    background: linear-gradient(135deg, 
        rgba(15, 23, 42, 0.95) 0%, 
        rgba(99, 102, 241, 0.9) 50%, 
        rgba(6, 182, 212, 0.85) 100%);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-2xl);
    }
    
    .hero-content {
        order: 2;
        padding: var(--spacing-xl);
        margin: var(--spacing-md);
    }
    
    .hero-image {
        order: 1;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 90vh;
    }
    
    .hero .container {
        gap: var(--spacing-xl);
        padding-top: var(--spacing-2xl);
    }
    
    .hero-content h1 {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: var(--spacing-lg);
    }
    
    .hero-content {
        padding: var(--spacing-lg);
        margin: var(--spacing-sm);
    }
    
    .hero-content p {
        font-size: var(--font-size-lg);
        margin-bottom: var(--spacing-xl);
        padding: var(--spacing-sm);
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-md);
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: var(--spacing-md) var(--spacing-xl);
    }
    
    .hero-background {
        max-width: 400px;
    }
    
    .hero-logo-container {
        padding: var(--spacing-md);
        width: 375px;
        height: 375px;
    }
    
    .hero-main-logo {
        width: 300px;
    }
    
    .scroll-indicator {
        bottom: var(--spacing-lg);
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: var(--font-size-base);
    }
    
    .btn {
        font-size: var(--font-size-base);
        padding: var(--spacing-md) var(--spacing-lg);
    }
    
    .hero-background {
        max-width: 300px;
    }
    
    .hero-logo-container {
        padding: var(--spacing-sm);
        width: 300px;
        height: 300px;
    }
    
    .hero-main-logo {
        width: 225px;
    }
}
