/* ========================================= */
/* HERO */
/* ========================================= */

.hero-image {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 40px 6%;
    overflow: hidden;
    background: radial-gradient(circle at 20% 30%, #bfe3ff 0%, transparent 40%),
                radial-gradient(circle at 80% 20%, #d7f5ff 0%, transparent 40%);
}

/* BACKGROUND */

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    z-index: 0;
    transform: scale(1.1);
}

/* OVERLAY */

.hero-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.3),
        rgba(255, 255, 255, 0.2)
    );
    z-index: 1;
}

/* FADE ABAJO */

.hero-image::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, transparent, #eaf4ff);
    z-index: 2;
}

/* LOGO */

.hero-logo {
    grid-column: 1;
    justify-self: center;
    width: clamp(220px, 28vw, 420px);
    animation: flotar 8s ease-in-out infinite;
    z-index: 3;
    filter: drop-shadow(0 25px 30px rgba(0, 0, 0, 0.2));
}

/* ========================================= */
/* HERO CARD */
/* ========================================= */

.hero-card {
    grid-column: 2;
    justify-self: center;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    padding: clamp(20px, 2vw, 35px);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    max-width: 520px;
    width: 100%;
    display: grid;
    gap: 18px;
    z-index: 4;
}

/* TITULO */

.hero-card h1 {
    font-size: clamp(2rem, 3vw, 2.6rem);
    color: var(--color-primary);
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.6);
    font-weight: 800;
    line-height: 1.2;
}

/* TEXTO */

.hero-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* BOTÓN */

.hero-card a {
    display: inline-block;
    background: linear-gradient(135deg, #ff8a00, #ff5e00);
    color: var(--color-white);
    border-radius: 999px;
    padding: 14px 28px;
    max-width: 260px;
    margin: 10px auto 0;
    text-align: center;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(255, 140, 0, 0.35);
    transition: all 0.3s ease;
}

.hero-card a:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 140, 0, 0.45);
}

/* ========================================= */
/* STATEMENT */
/* ========================================= */

.home-statement {
    padding: 70px 20px;
    position: relative;
}

.statement-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
    background: #f7f9fc;
    padding: 40px 50px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.statement-image {
    width: 360px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    transition: all 0.8s ease;
}

.statement-image.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.statement-image:hover {
    transform: translateY(-5px) scale(1.03);
}

.home-statement h2 {
    font-size: 1.8rem;
    line-height: 1.5;
    max-width: 420px;
    font-weight: 600;
}

/* ========================================= */
/* INTRO */
/* ========================================= */

.home-intro {
    margin-top: -40px;
    background: linear-gradient(180deg, #eaf4ff 0%, #ffffff 100%);
    padding: 60px 20px;
}

.intro-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 25px 30px;
    box-shadow: var(--shadow-sm);
    max-width: 850px;
    margin: 0 auto;
    transition: var(--transition);
}

.intro-card:hover {
    transform: translateY(-5px);
}

.intro-layout {
    display: flex;
    align-items: center;
    gap: 40px;
}

.intro-image img {
    width: 340px;
    border-radius: var(--radius-md);
}

.intro-text {
    max-width: 480px;
}

.intro-text h2 {
    color: var(--color-primary);
    margin-bottom: 20px;
}

/* ========================================= */
/* CARDS */
/* ========================================= */

.difference-box:hover,
.audience-box:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-md);
}

/* GRID */

.difference-grid,
.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 300px));
    justify-content: center;
    gap: 30px;
}

/* ========================================= */
/* NEWSLETTER */
/* ========================================= */

.home-newsletter {
    background: var(--color-primary);
    color: var(--color-white);
    text-align: center;
    padding: 60px 20px;
}

.home-newsletter form {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.home-newsletter input {
    padding: 14px 20px;
    border-radius: 40px;
    border: none;
    width: 280px;
}

.home-newsletter button {
    padding: 14px 26px;
    border-radius: 40px;
    border: none;
    background: var(--color-accent);
    color: var(--color-primary);
    font-weight: 600;
    cursor: pointer;
}

/* ========================================= */
/* QUOTE */
/* ========================================= */

.home-quote {
    padding: 60px 20px;
    text-align: center;
}

.home-quote h2 {
    max-width: 800px;
    margin: auto;
    font-size: 1.8rem;
}

/* ========================================= */
/* ANIMACIONES */
/* ========================================= */

@keyframes flotar {
    0% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0); }
}

/* ========================================= */
/* RESPONSIVE */
/* ========================================= */

@media (max-width: 900px) {
    .hero-image {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-logo {
        grid-column: auto;
    }

    .hero-card {
        grid-column: auto;
        margin: auto;
    }

    .intro-layout {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .hero-image {
        padding: 20px;
    }

    .intro-image img {
        width: 100%;
        max-width: 280px;
    }
}