﻿/* ============================================================
   hero.css — Sección Hero principal
   J&D ELECTRO COOLING
   ============================================================ */

#hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #0a0a0a;
    padding-top: var(--nav-height);
    color: var(--text-white);
    isolation: isolate;
}

/* â”€â”€ PHOTO PLACEHOLDER + OVERLAY â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(115deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.55) 60%, rgba(0,0,0,0.78) 100%),
        url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=1470&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D') center/cover no-repeat;
    background-color: #0a0a0a;
}

/* Franjas diagonales doradas — acento sutil (no banda sólida) */
#hero::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -8%;
    width: 55%;
    height: 140%;
    z-index: -1;
    background: linear-gradient(115deg, transparent 36%, rgba(198,152,43,0.20) 36%, rgba(198,152,43,0.20) 37.6%, transparent 37.6%, transparent 43%, rgba(198,152,43,0.10) 43%, rgba(198,152,43,0.10) 44.2%, transparent 44.2%);
    pointer-events: none;
}

.hero__bg-grid { display: none; }

/* â”€â”€ LÍNEA VERTICAL ACENTO â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.hero__accent-line {
    position: absolute;
    left: 56px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 0;
    /* animado por GSAP */
    background: linear-gradient(to bottom, var(--color-gold), rgba(198, 152, 43, 0.25), transparent);
    z-index: 1;
    border-radius: 2px;
}

/* â”€â”€ CONTENIDO â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 60px 56px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.hero__content {}

.hero__label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-red);
    margin-bottom: 28px;
    opacity: 0;
    /* GSAP */
}

.hero__label::before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 1.5px;
    background: var(--color-red);
}

.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.0;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--text-white);
    margin-bottom: 24px;
    overflow: hidden;
    max-width: 900px;
}

.hero__title .hero__title-line {
    display: block;
    clip-path: inset(0 0 100% 0);
    /* animado por GSAP */
}

.hero__title .hero__title-accent {
    display: block;
    color: var(--color-red);
    clip-path: inset(0 0 100% 0);
}

.hero__subtitle {
    font-size: clamp(1rem, 1.3vw, 1.1rem);
    font-weight: 300;
    line-height: 1.65;
    color: rgba(255,255,255,0.80);
    max-width: 580px;
    margin-bottom: 36px;
    opacity: 0;
    /* GSAP */
}

.hero__cta-group {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 72px;
    opacity: 0;
    /* GSAP */
}

/* CTA secundario sobre hero oscuro: outline blanco legible
   (el navy por defecto sería invisible sobre la foto oscura) */
#hero .btn--outline-cyan {
    color: var(--text-white);
    border-color: rgba(255, 255, 255, 0.55);
}

#hero .btn--outline-cyan:hover {
    background: var(--text-white);
    color: var(--color-navy);
    border-color: var(--text-white);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.30);
}

/* â”€â”€ STATS â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.hero__stats {
    display: flex;
    gap: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.18);
    opacity: 0;
    /* GSAP */
}

.hero__stat {}

.hero__stat-value {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--text-white);
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.hero__stat-value .hero__stat-prefix {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-red);
}

.hero__stat-label {
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
    margin-top: 4px;
}

/* â”€â”€ PANEL LATERAL â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.hero__panel {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-lg);
    padding: 40px 32px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    /* GSAP */
}

.hero__panel-label {
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.hero__panel-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
}

.hero__panel-item:last-child {
    border-bottom: none;
}

.hero__panel-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero__panel-text {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* â”€â”€ SCROLL INDICATOR â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.hero__scroll {
    position: absolute;
    bottom: 36px;
    left: 56px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
    opacity: 0;
    /* GSAP */
}

.hero__scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--color-red), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 1;
        transform: scaleY(1);
    }

    50% {
        opacity: 0.4;
        transform: scaleY(0.6);
    }
}

.hero__scroll-text {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

/* â”€â”€ RESPONSIVE â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 1080px) {
    .hero__inner {
        grid-template-columns: 1fr;
        padding: 60px 56px;
    }

    .hero__panel {
        display: none;
    }

    .hero__accent-line {
        display: none;
    }

    .hero__stats {
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .hero__inner {
        padding: 48px 24px 72px;
    }

    .hero__stats {
        flex-wrap: wrap;
        gap: 24px;
    }

    .hero__stat-value {
        font-size: 2.2rem;
    }

    .hero__cta-group {
        flex-wrap: wrap;
    }

    .hero__scroll {
        left: 24px;
    }
}


