@import 'variables.css';
@import 'common.css';

/* ===== HERO CONTACTO ADNX10 ===== */
.hero-contacto {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 600px;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    z-index: 1;
}

/* Efecto parallax - imagen fija */
.hero-contacto::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
    will-change: transform;
}

/* Overlay con gradientes morados */
.hero-contacto .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(139, 92, 246, 0.3) 50%, rgba(0, 0, 0, 0.8) 100%),
        radial-gradient(circle at 30% 40%, rgba(139, 92, 246, 0.15) 0%, transparent 70%),
        radial-gradient(circle at 70% 60%, rgba(147, 51, 234, 0.1) 0%, transparent 70%);
    z-index: 1;
    animation: overlay-glow 8s ease-in-out infinite alternate;
}

/* Contenido centrado con efectos ADNx10 */
.hero-contacto .hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 var(--spacing-md);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xxl);
}

/* Títulos con estilo ADNx10 */
.hero-contacto .hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    text-shadow: var(--text-glow);
    margin-bottom: var(--spacing-lg);
    letter-spacing: 2px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.2s forwards;
    font-family: poppins, sans-serif;
}

.hero-contacto .hero-content h2 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: #fff;
    text-shadow: var(--text-glow);
    margin-bottom: var(--spacing-md);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.4s forwards;
    font-family: Poppins, sans-serif;
}

.hero-contacto .hero-content p {
    font-size: var(--font-size-lg);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-muted);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.6s forwards;
}

.hero-contacto .hero-content strong {
    color: var(--color-primary);
    text-shadow: var(--text-glow);
}



/* Partículas flotantes */
.hero-contacto .hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.hero-contacto .particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    opacity: 0.6;
}

.hero-contacto .particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.hero-contacto .particle:nth-child(2) {
    left: 20%;
    animation-delay: 2s;
    animation-duration: 18s;
}

.hero-contacto .particle:nth-child(3) {
    left: 30%;
    animation-delay: 4s;
    animation-duration: 14s;
}

.hero-contacto .particle:nth-child(4) {
    left: 40%;
    animation-delay: 1s;
    animation-duration: 16s;
}

.hero-contacto .particle:nth-child(5) {
    left: 50%;
    animation-delay: 3s;
    animation-duration: 13s;
}

.hero-contacto .particle:nth-child(6) {
    left: 60%;
    animation-delay: 5s;
    animation-duration: 17s;
}

.hero-contacto .particle:nth-child(7) {
    left: 70%;
    animation-delay: 1.5s;
    animation-duration: 15s;
}

.hero-contacto .particle:nth-child(8) {
    left: 80%;
    animation-delay: 2.5s;
    animation-duration: 19s;
}

.hero-contacto .particle:nth-child(9) {
    left: 90%;
    animation-delay: 4.5s;
    animation-duration: 11s;
}

/* ===== ANIMACIONES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes overlay-glow {
    0% {
        background: 
            linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(139, 92, 246, 0.3) 50%, rgba(0, 0, 0, 0.8) 100%),
            radial-gradient(circle at 30% 40%, rgba(139, 92, 246, 0.15) 0%, transparent 70%),
            radial-gradient(circle at 70% 60%, rgba(147, 51, 234, 0.1) 0%, transparent 70%);
    }
    100% {
        background: 
            linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(147, 51, 234, 0.4) 50%, rgba(0, 0, 0, 0.7) 100%),
            radial-gradient(circle at 70% 60%, rgba(139, 92, 246, 0.2) 0%, transparent 70%),
            radial-gradient(circle at 30% 40%, rgba(147, 51, 234, 0.15) 0%, transparent 70%);
    }
}

/* Efecto de scroll parallax mejorado */
.hero-contacto.parallax-active {
    transform: translateY(0);
    transition: none;
}

.hero-contacto.parallax-active .hero-content {
    transform: translateY(var(--scroll-offset, 0));
    transition: transform 0.1s ease-out;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-contacto {
        height: 60vh;
        min-height: 500px;
        background-attachment: scroll; /* Fallback para tablets */
    }
    
    .hero-contacto::before {
        position: absolute;
        background-attachment: scroll;
    }
}

@media (max-width: 768px) {
    .hero-contacto {
        height: 50vh;
        min-height: 400px;
        background-attachment: scroll;
    }
    
    .hero-contacto::before {
        position: absolute;
        background-attachment: scroll;
    }

    .hero-contacto .hero-content {
        padding: var(--spacing-xl);
        backdrop-filter: blur(5px);
    }

    .hero-contacto .hero-content h1 {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }

    .hero-contacto .hero-content h2 {
        font-size: var(--font-size-lg);
    }

    .hero-contacto .hero-content p {
        font-size: var(--font-size-md);
    }

    /* Reducir partículas en móvil */
    .hero-contacto .particle:nth-child(n+6) {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-contacto {
        height: 45vh;
        min-height: 350px;
    }

    .hero-contacto .hero-content {
        padding: var(--spacing-lg);
        border-radius: var(--radius-md);
    }

    .hero-contacto .hero-content h1 {
        font-size: 2rem;
        margin-bottom: var(--spacing-md);
    }

    .hero-contacto .hero-content h2 {
        font-size: var(--font-size-md);
        margin-bottom: var(--spacing-sm);
    }

    .hero-contacto .hero-content p {
        font-size: var(--font-size-sm);
        line-height: 1.5;
    }

    /* Solo 3 partículas en móvil */
    .hero-contacto .particle:nth-child(n+4) {
        display: none;
    }
}

/* Mejoras de performance */
@media (prefers-reduced-motion: reduce) {
    .hero-contacto .overlay,
    .hero-contacto .particle {
        animation: none;
    }
    
    .hero-contacto .hero-content h1,
    .hero-contacto .hero-content h2,
    .hero-contacto .hero-content p {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* Soporte para dispositivos con touch */
@media (hover: none) and (pointer: coarse) {
    .hero-contacto {
        background-attachment: scroll;
    }
    
    .hero-contacto::before {
        position: absolute;
        background-attachment: scroll;
    }
}