@import 'variables.css';
@import 'common.css';

/* ===== ADN NEWS HERO SECTION ===== */
.news-hero {
    background: transparent;
    position: relative;
    overflow: hidden;
    padding: calc(var(--spacing-hero) * 2) var(--spacing-md) var(--spacing-hero);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Fondo fijo body-background.svg */
.news-hero::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../../images/body-background.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -1;
}

/* Overlay sutil */
.news-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* Grid decorativo 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: 2;
    opacity: 0.3;
}

/* Contenedor del título centrado */
.hero-title-container {
    position: relative;
    z-index: 3;
    margin-bottom: var(--spacing-xxl);
    text-align: center;
    width: 100%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    align-items: center;
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-text {
    animation: hero-slide-in 1s ease-out 0.2s both;
    text-align: left;
}

/* Etiqueta encima del formulario */
.hero-label {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: white;
    margin-bottom: var(--spacing-md);
    letter-spacing: 0.5px;
    font-weight: 500;
    text-transform: uppercase;
    text-align: left;
    width: 100%;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: var(--font-size-hero);
    font-weight: var(--font-weight-bold);
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,.25);
    margin-bottom: var(--spacing-lg);
    line-height: 0.8;
    text-align: left;
}

.hero-title .highlight {
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    font-size: 42px;
}

.hero-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: var(--font-size-md);
    color: white;
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
    text-align: left;
}

/* ===== Columna derecha: Solo imagen ===== */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: hero-fade-in 1s ease-out 0.6s both;
    height: 100%;
}

.hero-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: contain;
}

.subscribe-form {
    display: flex;
    gap: 12px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 12px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2), 0 2px 20px rgba(139, 92, 246, 0.1);
    margin-top: var(--spacing-lg);
}

.subscribe-input {
    flex: 1;
    min-width: 220px;
    padding: 12px 16px;
    border: none;
    border-radius: 25px;
    outline: none;
    font-size: 1rem;
    background: #ffffff;
    color: #333333;
}

.subscribe-input::placeholder {
    color: #7a7a7a;
}

.subscribe-button {
    background: var(--gradient-purple);
    border: none;
    border-radius: 25px;
    padding: 12px 20px;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    white-space: nowrap;
}

.subscribe-button:hover {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 0 15px rgba(147, 51, 234, 0.5);
}

.subscribe-button:active {
    transform: translateY(0);
    opacity: 0.9;
}

/* Decorative elements */
.floating-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.floating-element {
    position: absolute;
    width: 6px;
    height: 6px;
    background: white;
    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;
}

/* ===== ANIMACIONES HERO ===== */
@keyframes purple-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-slide-in {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes hero-fade-in {
    from {
        opacity: 0;
        transform: scale(0.94);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float-particle {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.6;
    }

    50% {
        transform: translateY(-30px) rotate(180deg);
        opacity: 1;
    }
}

/* ===== RESPONSIVE HERO ===== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .news-hero {
        min-height: 90vh;
        padding: calc(var(--spacing-hero)*1.5) var(--spacing-md) var(--spacing-xl);
    }

    .hero-title-container {
        margin-bottom: var(--spacing-lg);
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .hero-text {
        text-align: center;
    }

    .hero-label {
        font-size: 0.8rem;
        margin-bottom: var(--spacing-md);
        text-align: center;
    }

    .hero-title {
        font-size: 2rem;
        text-align: center;
    }

    .hero-subtitle {
        font-size: var(--font-size-sm);
        max-width: 100%;
        margin: 0;
        text-align: center;
    }

    .subscribe-form {
        flex-direction: column;
        border-radius: 20px;
        padding: 14px;
    }

    .subscribe-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
}