/* =============================================
   HERO MODERNO — EVOpreven
   ============================================= */

/* Variables de color del hero */
:root {
    --hero-bg-from: #021a22;
    --hero-bg-mid: #04303d;
    --hero-bg-to: #052030;
    --hero-accent: #00bcd4;
    --hero-accent-2: #0097a7;
    --hero-text: #ffffff;
    --hero-text-muted: rgba(255,255,255,0.75);
    --hero-orb-1: rgba(0,188,212,0.25);
    --hero-orb-2: rgba(0,151,167,0.18);
    --hero-orb-3: rgba(2,100,120,0.22);
    --hero-stats-bg: rgba(255,255,255,0.06);
    --hero-dashboard-bg: rgba(255,255,255,0.04);
}

/* === WRAPPER PRINCIPAL === */
.hero-modern {
    position: relative;
    min-height: calc(100vh - var(--header-height, 80px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--hero-bg-from);
}

/* === FONDO ANIMADO === */
.hero-modern__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(135deg,
        var(--hero-bg-from) 0%,
        var(--hero-bg-mid) 50%,
        var(--hero-bg-to) 100%);
    animation: hero-bg-shift 12s ease-in-out infinite alternate;
}

@keyframes hero-bg-shift {
    0%   { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* Grid sutil */
.hero-modern__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,188,212,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,188,212,0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

/* Orbes de luz */
.hero-modern__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.hero-modern__orb--1 {
    width: 600px;
    height: 600px;
    top: -150px;
    left: -100px;
    background: radial-gradient(circle, var(--hero-orb-1), transparent 70%);
    animation: hero-float 8s ease-in-out infinite;
}

.hero-modern__orb--2 {
    width: 500px;
    height: 500px;
    bottom: -100px;
    right: 20%;
    background: radial-gradient(circle, var(--hero-orb-2), transparent 70%);
    animation: hero-float 11s ease-in-out infinite reverse;
}

.hero-modern__orb--3 {
    width: 350px;
    height: 350px;
    top: 40%;
    right: -80px;
    background: radial-gradient(circle, var(--hero-orb-3), transparent 70%);
    animation: hero-float 9s ease-in-out infinite 2s;
}

@keyframes hero-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-30px) scale(1.05); }
}

/* === OVERLAY === */
.hero-modern__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to right,
        rgba(2,26,34,0.82) 0%,
        rgba(2,26,34,0.55) 55%,
        rgba(2,26,34,0.15) 100%
    );
}

/* === MOCK DASHBOARD (decoración derecha) === */
.hero-modern__dashboard-preview {
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%) perspective(1000px) rotateY(-12deg) rotateX(4deg);
    width: clamp(340px, 38vw, 560px);
    background: rgba(4,48,61,0.7);
    border: 1px solid rgba(0,188,212,0.25);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(6px);
    box-shadow:
        0 0 0 1px rgba(0,188,212,0.12),
        0 24px 64px rgba(0,0,0,0.5),
        0 4px 16px rgba(0,188,212,0.1);
    animation: hero-dashboard-enter 1s cubic-bezier(0.22,1,0.36,1) .3s both;
}

@keyframes hero-dashboard-enter {
    from { opacity: 0; transform: translateY(calc(-50% + 40px)) perspective(1000px) rotateY(-12deg) rotateX(4deg); }
    to   { opacity: 1; transform: translateY(-50%) perspective(1000px) rotateY(-12deg) rotateX(4deg); }
}

.hero-modern__dashboard-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(0,188,212,0.15);
}

.hero-modern__db-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0,188,212,0.4);
}
.hero-modern__db-dot:first-child { background: rgba(255,100,100,0.6); }
.hero-modern__db-dot:nth-child(2) { background: rgba(255,200,50,0.6); }
.hero-modern__db-dot:nth-child(3) { background: rgba(50,200,100,0.6); }

.hero-modern__db-title {
    margin-left: 8px;
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    font-family: monospace;
    letter-spacing: 0.5px;
}

.hero-modern__dashboard-body {
    display: flex;
    height: 220px;
}

.hero-modern__db-sidebar {
    width: 44px;
    background: rgba(0,0,0,0.2);
    border-right: 1px solid rgba(0,188,212,0.1);
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-modern__db-nav-item {
    height: 8px;
    border-radius: 4px;
    background: rgba(255,255,255,0.12);
}
.hero-modern__db-nav-item.active {
    background: var(--hero-accent);
    box-shadow: 0 0 8px rgba(0,188,212,0.5);
}

.hero-modern__db-content {
    flex: 1;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-modern__db-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.hero-modern__db-card {
    background: rgba(0,188,212,0.08);
    border: 1px solid rgba(0,188,212,0.15);
    border-radius: 8px;
    padding: 8px;
    text-align: center;
}

.hero-modern__db-card-num {
    font-size: 16px;
    font-weight: 700;
    color: var(--hero-accent);
    line-height: 1;
}

.hero-modern__db-card-label {
    font-size: 9px;
    color: rgba(255,255,255,0.5);
    margin-top: 3px;
}

.hero-modern__db-chart {
    flex: 1;
    display: flex;
    align-items: flex-end;
    gap: 6px;
    padding: 4px 0;
}

.hero-modern__db-bar {
    flex: 1;
    height: var(--h, 50%);
    background: linear-gradient(to top, var(--hero-accent), rgba(0,188,212,0.3));
    border-radius: 3px 3px 0 0;
    animation: hero-bar-grow 1s cubic-bezier(0.22,1,0.36,1) both;
}

.hero-modern__db-bar:nth-child(1) { animation-delay: 0.5s; }
.hero-modern__db-bar:nth-child(2) { animation-delay: 0.6s; }
.hero-modern__db-bar:nth-child(3) { animation-delay: 0.7s; }
.hero-modern__db-bar:nth-child(4) { animation-delay: 0.8s; }
.hero-modern__db-bar:nth-child(5) { animation-delay: 0.9s; }
.hero-modern__db-bar:nth-child(6) { animation-delay: 1.0s; }

@keyframes hero-bar-grow {
    from { transform: scaleY(0); transform-origin: bottom; }
    to   { transform: scaleY(1); transform-origin: bottom; }
}

/* === CONTENIDO CENTRAL === */
.hero-modern__content {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: clamp(3rem, 8vw, 6rem);
    padding-bottom: clamp(2rem, 5vw, 4rem);
    max-width: min(56%, 680px);
}

/* Badge */
.hero-modern__badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(0,188,212,0.12);
    border: 1px solid rgba(0,188,212,0.3);
    color: var(--hero-accent);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 1.4rem;
    width: fit-content;
    animation: hero-fade-up 0.7s ease both;
}

/* Headline */
.hero-modern__headline {
    font-size: clamp(2rem, 3.8vw, 3.2rem);
    font-weight: 800;
    line-height: 1.12;
    color: var(--hero-text);
    margin: 0 0 1rem;
    animation: hero-fade-up 0.7s ease .1s both;
}

.hero-modern__headline-accent {
    background: linear-gradient(90deg, var(--hero-accent), #4dd9ec);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtítulo */
.hero-modern__subtitle {
    font-size: clamp(0.95rem, 1.4vw, 1.1rem);
    color: var(--hero-text-muted);
    line-height: 1.65;
    max-width: 560px;
    margin: 0 0 2rem;
    animation: hero-fade-up 0.7s ease .2s both;
}

/* CTAs */
.hero-modern__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.2rem;
    animation: hero-fade-up 0.7s ease .3s both;
}

.hero-modern__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.85rem 1.8rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    cursor: pointer;
}

.hero-modern__cta--primary {
    background: var(--hero-accent);
    color: #021a22;
    box-shadow: 0 4px 20px rgba(0,188,212,0.35);
}

.hero-modern__cta--primary:hover {
    background: #26d0e3;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,188,212,0.5);
    color: #021a22;
    text-decoration: none;
}

.hero-modern__cta--secondary {
    background: rgba(255,255,255,0.08);
    color: var(--hero-text);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
}

.hero-modern__cta--secondary:hover {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.35);
    transform: translateY(-2px);
    color: var(--hero-text);
    text-decoration: none;
}

/* ENS badge */
.hero-modern__ens {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 10px 16px;
    max-width: 480px;
    animation: hero-fade-up 0.7s ease .4s both;
}

.hero-modern__ens-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    flex-shrink: 0;
}

.hero-modern__ens-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-modern__ens-text strong {
    color: var(--hero-text);
    font-size: 0.85rem;
}

.hero-modern__ens-text span {
    color: var(--hero-text-muted);
    font-size: 0.75rem;
    line-height: 1.4;
}

/* === STATS BAR === */
.hero-modern__stats {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: stretch;
    justify-content: center;
    background: rgba(0,0,0,0.35);
    border-top: 1px solid rgba(0,188,212,0.15);
    backdrop-filter: blur(8px);
    padding: 0;
    flex-wrap: wrap;
}

.hero-modern__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 1.2rem 2.5rem;
    flex: 1;
    min-width: 150px;
}

.hero-modern__stat-num {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    color: var(--hero-accent);
    line-height: 1;
}

.hero-modern__stat-label {
    font-size: 0.78rem;
    color: var(--hero-text-muted);
    letter-spacing: 0.04em;
    text-align: center;
}

.hero-modern__stat-divider {
    width: 1px;
    background: rgba(0,188,212,0.15);
    align-self: stretch;
    margin: 10px 0;
}

/* === ANIMACIONES DE ENTRADA === */
@keyframes hero-fade-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .hero-modern__dashboard-preview {
        display: none;
    }

    .hero-modern__content {
        max-width: 100%;
    }

    .hero-modern__overlay {
        background: rgba(2,26,34,0.72);
    }
}

@media (max-width: 768px) {
    .hero-modern__headline {
        font-size: clamp(1.7rem, 6vw, 2.4rem);
    }

    .hero-modern__ctas {
        flex-direction: column;
    }

    .hero-modern__cta {
        justify-content: center;
    }

    .hero-modern__stat {
        padding: 1rem 1.2rem;
        min-width: 120px;
    }

    .hero-modern__stat-divider {
        display: none;
    }

    .hero-modern__stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .hero-modern__stats {
        grid-template-columns: 1fr 1fr;
    }
}
