@import 'variables.css';
@import 'common.css';

.adn-talks-body-background {
    position: absolute;
    top: -14.75rem;
    left: -71.5rem;
    width: 253rem;
    height: 284.294rem;
    z-index: 0;
}

/* ===== ADN TALKS HERO SECTION ===== */
.adn-talks-hero {
    position: relative;
    overflow: hidden;
    padding: var(--spacing-hero) var(--spacing-md);
    min-height: 70vh;
    display: flex;
    align-items: center;
}

/* Grid de fondo */
.grid-background {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(139, 92, 246, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
    opacity: 0.3;
}

/* Partículas */
.floating-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-element {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
    opacity: 0.6;
    animation: float-particle 8s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 40%;
    right: 15%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

.floating-element:nth-child(4) {
    top: 60%;
    right: 30%;
    animation-delay: 6s;
}

/* ===== LAYOUT DEL CONTENIDO ===== */
.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* texto | imagen */
    gap: var(--spacing-xxl, 3.5rem);
    align-items: center;
    min-height: 70vh;
}

/* Ilustración */
.hero-illustration {
    display: grid;
    place-items: center;
    animation: hero-fade-in 1s ease-out;
}

.hero-illustration .chat-people {
    width: 100%;
    max-width: 520px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(139, 92, 246, .2));
    animation: float-bob 6s ease-in-out infinite;
}

/* Contenido textual */
.hero-content {
    text-align: left;
    animation: hero-fade-in 1s ease-out;
    max-width: 760px;
    margin: 0 auto;
}

/* Imagen del hero */
.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    animation: hero-fade-in 1s ease-out;
}

.hero-img {
    width: auto;
    max-height: 70vh;
    object-fit: contain;
}

.hero-title-img {
    width: auto;
    height: 6rem;
    padding-bottom: 2rem;
}

.hero-title {
    font-size: var(--font-size-hero);
    font-weight: 800;
    color: var(--color-primary);
    text-shadow: var(--text-glow);
    margin-bottom: var(--spacing-lg);
    line-height: 1.2;
    font-family: 'Venera', sans-serif;
}

.hero-title .highlight {
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    position: relative;
}

.highlight {
    font-family: 'Poppins', sans-serif;
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 46ch;
    margin: 0;
    animation: hero-subtitle-fade 1.2s ease-out .3s both;
}

/* ===== ANIMACIONES ===== */
@keyframes adn-talks-glow {
    0% {
        background:
            radial-gradient(circle at 30% 40%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
            radial-gradient(circle at 70% 60%, rgba(147, 51, 234, 0.1) 0%, transparent 50%);
    }

    100% {
        background:
            radial-gradient(circle at 70% 60%, rgba(139, 92, 246, 0.2) 0%, transparent 50%),
            radial-gradient(circle at 30% 40%, rgba(147, 51, 234, 0.15) 0%, transparent 50%);
    }
}

@keyframes hero-fade-in {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hero-subtitle-fade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float-particle {

    0%,
    100% {
        transform: translateY(0) rotate(0);
        opacity: .6;
    }

    50% {
        transform: translateY(-30px) rotate(180deg);
        opacity: 1;
    }
}

@keyframes float-bob {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-12px);
    }
}

@keyframes highlight-pulse {

    0%,
    100% {
        opacity: .7;
        transform: scaleX(1);
    }

    50% {
        opacity: 1;
        transform: scaleX(1.05);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1140px) {
    .hero-title {
        font-size: clamp(2.2rem, 4.2vw, 3rem);
    }
}

@media (max-width: 920px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-xl);
        display: block;
    }

    .hero-content {
        text-align: center;
        order: 2;
    }

    .hero-image {
        order: 1;
    }

    .hero-img {
        max-height: 42vh;
    }

    .hero-subtitle {
        margin: 0 auto;
    }

    .adn-talks-hero {
        padding: 8rem 1rem 4rem 1rem;;
    }
}

@media (max-width: 768px) {
    .adn-talks-hero {
        min-height: 60vh;
    }

    .grid-background {
        background-size: 30px 30px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}

/* Accesibilidad: respeta reduce motion */
@media (prefers-reduced-motion: reduce) {

    .adn-talks-hero::before,
    .floating-element,
    .hero-illustration .chat-people {
        animation: none !important;
    }
}