/* =====================================================
   HERO V2 — Diseños aurora | explorer | paramo
   Tipografía: Fredoka (títulos) + DM Sans (cuerpo)
   ===================================================== */

.hero-v2 {
    --hv2-lime: #a3e635;
    --hv2-green: #22c55e;
    --hv2-cyan: #22d3ee;
    --hv2-amber: #fbbf24;
    --hv2-violet: #a78bfa;
    --hv2-text: #f8fafc;
    --hv2-muted: #cbd5e1;
    --hv2-glass: rgba(255, 255, 255, 0.1);
    --hv2-glass-border: rgba(255, 255, 255, 0.2);
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 118px 6% 72px;
    overflow: hidden;
    font-family: 'DM Sans', 'Outfit', sans-serif;
}

.hero-v2__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}
.hero-v2__glow--a {
    width: 420px;
    height: 420px;
    top: 8%;
    left: -8%;
    background: rgba(163, 230, 53, 0.22);
}
.hero-v2__glow--b {
    width: 380px;
    height: 380px;
    bottom: 5%;
    right: -6%;
    background: rgba(34, 211, 238, 0.2);
}

.hero-v2__wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    gap: 22px;
}

/* —— Elementos compartidos —— */
.hero-v2__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #ecfccb;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.35), rgba(34, 211, 238, 0.25));
    border: 1px solid rgba(163, 230, 53, 0.45);
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.2);
    margin-bottom: 18px;
}
.hero-v2__badge i { color: var(--hv2-lime); }

.hero-v2__title {
    margin: 0 0 14px;
    font-family: 'Fredoka', 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--hv2-text);
}

.hero-v2__accent {
    display: block;
    margin-top: 4px;
    background: linear-gradient(90deg, var(--hv2-lime) 0%, var(--hv2-cyan) 55%, #fff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-v2__lead {
    margin: 0 0 16px;
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--hv2-muted);
    max-width: 34rem;
}

.hero-v2__steam {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.hero-v2__steam span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #0f172a;
    background: linear-gradient(145deg, var(--hv2-lime), var(--hv2-cyan));
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.hero-v2__steam span:nth-child(2) { background: linear-gradient(145deg, #67e8f9, #38bdf8); }
.hero-v2__steam span:nth-child(3) { background: linear-gradient(145deg, #fcd34d, #f59e0b); }
.hero-v2__steam span:nth-child(4) { background: linear-gradient(145deg, #c4b5fd, #a78bfa); }
.hero-v2__steam span:nth-child(5) { background: linear-gradient(145deg, #fdba74, #f97316); }

.hero-v2__media {
    position: relative;
    justify-self: center;
    width: 100%;
    max-width: 480px;
}

.hero-v2__video-ring {
    position: absolute;
    inset: -12px;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--hv2-lime), var(--hv2-cyan), var(--hv2-amber));
    opacity: 0.75;
    filter: blur(2px);
    animation: hv2-ring-pulse 4s ease-in-out infinite;
}
@keyframes hv2-ring-pulse {
    0%, 100% { opacity: 0.65; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.02); }
}

.hero-v2__video-frame {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    background: #0f172a;
    border: 2px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.45);
}

.hero-v2__video {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
}

.hero-v2__info {
    padding: 18px 20px;
    border-radius: 18px;
    background: var(--hv2-glass);
    border: 1px solid var(--hv2-glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.hero-v2__info p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--hv2-muted);
}
.hero-v2__info strong { color: var(--hv2-text); }
.hero-v2__chapter {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.88rem;
    color: #e2e8f0;
}
.hero-v2__chapter strong { color: var(--hv2-lime); }

.hero-v2__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.hero-v2__stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}
.hero-v2__stat i {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    font-size: 1rem;
    flex-shrink: 0;
}
.hero-v2__stat strong {
    display: block;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.45rem;
    line-height: 1;
    color: var(--hv2-text);
}
.hero-v2__stat span {
    display: block;
    margin-top: 3px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--hv2-muted);
}
.hero-v2__stat--lime i { background: rgba(163, 230, 53, 0.25); color: var(--hv2-lime); }
.hero-v2__stat--cyan i { background: rgba(34, 211, 238, 0.22); color: var(--hv2-cyan); }
.hero-v2__stat--amber i { background: rgba(251, 191, 36, 0.22); color: var(--hv2-amber); }

.hero-v2__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.hero-v2__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 22px;
    border-radius: 14px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.hero-v2__btn:hover { transform: translateY(-2px); }

.hero-v2__btn--primary {
    color: #0f172a;
    background: linear-gradient(135deg, var(--hv2-lime) 0%, var(--hv2-green) 100%);
    box-shadow: 0 10px 28px rgba(163, 230, 53, 0.35);
}
.hero-v2__btn--primary:hover {
    filter: brightness(1.06);
    box-shadow: 0 14px 36px rgba(163, 230, 53, 0.45);
}

.hero-v2__btn--ghost {
    color: var(--hv2-text);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.28);
}
.hero-v2__btn--ghost:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: var(--hv2-cyan);
}

.hero-v2--preview .hero-v2__video { pointer-events: none; }

/* =====================================================
   AURORA — Bento equilibrado (texto | video)
   ===================================================== */
.hero-v2--aurora .hero-v2__wrap {
    grid-template-columns: 1.05fr 0.95fr;
    grid-template-areas:
        "head   media"
        "info   media"
        "stats  stats"
        "actions actions";
    align-items: center;
}
.hero-v2--aurora .hero-v2__head   { grid-area: head; }
.hero-v2--aurora .hero-v2__media  { grid-area: media; align-self: center; }
.hero-v2--aurora .hero-v2__info   { grid-area: info; }
.hero-v2--aurora .hero-v2__stats  { grid-area: stats; }
.hero-v2--aurora .hero-v2__actions { grid-area: actions; }

/* =====================================================
   EXPLORER — Asimétrico tipo revista
   ===================================================== */
.hero-v2--explorer .hero-v2__wrap {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
        "head   media"
        "info   media"
        "stats  stats"
        "actions actions";
    gap: 20px;
    align-items: start;
}
.hero-v2--explorer .hero-v2__head    { grid-area: head; }
.hero-v2--explorer .hero-v2__media   { grid-area: media; max-width: 520px; justify-self: end; margin-top: -10px; }
.hero-v2--explorer .hero-v2__info    { grid-area: info; }
.hero-v2--explorer .hero-v2__stats   { grid-area: stats; }
.hero-v2--explorer .hero-v2__actions { grid-area: actions; justify-content: flex-start; }

.hero-v2--explorer .hero-v2__title {
    font-size: clamp(2.6rem, 6vw, 4.4rem);
}
.hero-v2--explorer .hero-v2__accent {
    background: linear-gradient(90deg, var(--hv2-amber) 0%, var(--hv2-lime) 50%, var(--hv2-cyan) 100%);
    -webkit-background-clip: text;
    background-clip: text;
}
.hero-v2--explorer .hero-v2__info {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.12), rgba(34, 211, 238, 0.1));
    border-color: rgba(251, 191, 36, 0.35);
}
.hero-v2--explorer .hero-v2__video-frame {
    transform: rotate(2deg);
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.5);
}

/* =====================================================
   PARAMO — Centrado, limpio, organizado
   ===================================================== */
.hero-v2--paramo .hero-v2__wrap {
    grid-template-columns: 1fr;
    grid-template-areas:
        "head"
        "media"
        "info"
        "stats"
        "actions";
    gap: 24px;
    max-width: 860px;
    text-align: center;
}
.hero-v2--paramo .hero-v2__head    { grid-area: head; }
.hero-v2--paramo .hero-v2__media   { grid-area: media; max-width: 640px; justify-self: center; }
.hero-v2--paramo .hero-v2__info    { grid-area: info; text-align: left; }
.hero-v2--paramo .hero-v2__stats   { grid-area: stats; }
.hero-v2--paramo .hero-v2__actions { grid-area: actions; justify-content: center; }

.hero-v2--paramo .hero-v2__badge,
.hero-v2--paramo .hero-v2__steam {
    justify-content: center;
}
.hero-v2--paramo .hero-v2__lead {
    margin-left: auto;
    margin-right: auto;
}
.hero-v2--paramo .hero-v2__title {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
}
.hero-v2--paramo .hero-v2__accent {
    display: inline;
    background: linear-gradient(90deg, var(--hv2-green), var(--hv2-cyan));
    -webkit-background-clip: text;
    background-clip: text;
}
.hero-v2--paramo .hero-v2__info {
    background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.06));
    border-color: rgba(34, 197, 94, 0.35);
}
.hero-v2--paramo .hero-v2__video-ring {
    inset: -16px;
    border-radius: 32px;
}

/* —— Responsive —— */
@media (max-width: 960px) {
    .hero-v2 {
        padding: 110px 5% 60px;
        min-height: auto;
    }

    .hero-v2--aurora .hero-v2__wrap,
    .hero-v2--explorer .hero-v2__wrap {
        grid-template-columns: 1fr;
        grid-template-areas:
            "head"
            "media"
            "info"
            "stats"
            "actions";
        text-align: center;
    }

    .hero-v2--aurora .hero-v2__steam,
    .hero-v2--explorer .hero-v2__steam,
    .hero-v2--aurora .hero-v2__actions,
    .hero-v2--explorer .hero-v2__actions {
        justify-content: center;
    }

    .hero-v2--aurora .hero-v2__lead,
    .hero-v2--explorer .hero-v2__lead {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-v2--explorer .hero-v2__media {
        justify-self: center;
        margin-top: 0;
        max-width: 480px;
    }

    .hero-v2--explorer .hero-v2__video-frame {
        transform: none;
    }

    .hero-v2--explorer .hero-v2__actions {
        justify-self: center;
    }
}

@media (max-width: 600px) {
    .hero-v2__stats {
        grid-template-columns: 1fr;
    }

    .hero-v2__actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-v2__btn {
        width: 100%;
        justify-content: center;
    }
}

/* =====================================================
   TEMA PÁRAMO — estilo global del portal
   ===================================================== */
.portal-theme-paramo {
    font-family: 'DM Sans', 'Outfit', sans-serif;
}

.portal-theme-paramo .logo-text h1,
.portal-theme-paramo .section-title,
.portal-theme-paramo .section-title-inline,
.portal-theme-paramo .detalle-head h1,
.portal-theme-paramo .detalle-hero h1,
.portal-theme-paramo .kpi-card strong,
.portal-theme-paramo .inv-card-num,
.portal-theme-paramo .hero-stat-num {
    font-family: 'Fredoka', 'Plus Jakarta Sans', sans-serif;
}

.portal-theme-paramo .section-tag {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.35), rgba(34, 211, 238, 0.22));
    border: 1px solid rgba(163, 230, 53, 0.45);
    color: #ecfccb;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.15);
}

.portal-theme-paramo .section-tag i {
    color: #a3e635;
}

.portal-theme-paramo .section-tag-steam {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.28), rgba(167, 139, 250, 0.22));
    border-color: rgba(34, 211, 238, 0.45);
    color: #e0f2fe;
}

.portal-theme-paramo .btn-primary {
    color: #0f172a;
    background: linear-gradient(135deg, #a3e635 0%, #22c55e 100%);
    border: none;
    box-shadow: 0 10px 26px rgba(163, 230, 53, 0.32);
}

.portal-theme-paramo .btn-primary:hover {
    filter: brightness(1.07);
    box-shadow: 0 14px 34px rgba(163, 230, 53, 0.42);
    transform: translateY(-2px);
}

.portal-theme-paramo .btn-secondary {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.28);
}

.portal-theme-paramo .btn-secondary:hover {
    color: #fff;
    border-color: #22d3ee;
    background: rgba(255, 255, 255, 0.16);
}

.portal-theme-paramo .nav-link:hover {
    border-color: rgba(34, 197, 94, 0.55);
    color: #15803d;
}

.portal-theme-paramo .steam-card:hover,
.portal-theme-paramo .pilar-card:hover,
.portal-theme-paramo .categoria-card:hover,
.portal-theme-paramo .project-card:hover {
    border-color: rgba(34, 197, 94, 0.45);
    box-shadow: 0 12px 32px rgba(34, 197, 94, 0.12), var(--sp-shadow-soft);
}

.portal-theme-paramo .project-card .project-status.active {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #15803d;
    border-color: rgba(34, 197, 94, 0.35);
}

.portal-theme-paramo .fase-banner {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, #ecfdf5 100%);
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.portal-theme-paramo .fase-banner-icon {
    background: linear-gradient(135deg, #a3e635, #22c55e);
    color: #0f172a;
}

/* —— Borde multicolor en recuadros —— */
.portal-theme-paramo {
    --portal-rainbow: linear-gradient(135deg, #a3e635 0%, #22d3ee 28%, #fbbf24 55%, #a78bfa 78%, #22c55e 100%);
}

.portal-theme-paramo .steam-card,
.portal-theme-paramo .pilar-card,
.portal-theme-paramo .categoria-card,
.portal-theme-paramo .project-card,
.portal-theme-paramo .kpi-card,
.portal-theme-paramo .inv-card,
.portal-theme-paramo .chart-card,
.portal-theme-paramo .inv-panel,
.portal-theme-paramo .contact-card,
.portal-theme-paramo .glass-card,
.portal-theme-paramo .stat-item,
.portal-theme-paramo .timeline-content,
.portal-theme-paramo .fase-banner,
.portal-theme-paramo .about-brand-logo,
.portal-theme-paramo .hero-v2__video-frame,
.portal-theme-paramo .hero-v2__info,
.portal-theme-paramo .detalle-panel,
.portal-theme-paramo .detalle-head,
.portal-theme-paramo .detalle-card {
    border: 2px solid transparent !important;
    background:
        linear-gradient(145deg, #ffffff 0%, #f8fafc 100%) padding-box,
        var(--portal-rainbow) border-box !important;
}

.portal-theme-paramo .about-text {
    border: 2px solid transparent !important;
    background:
        linear-gradient(145deg, #ffffff 0%, #f0fdf4 100%) padding-box,
        var(--portal-rainbow) border-box !important;
}

.portal-theme-paramo .fase-banner {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, #ecfdf5 100%) padding-box,
        var(--portal-rainbow) border-box !important;
}

.portal-theme-paramo .section-header,
.portal-theme-paramo .filter-bar,
.portal-theme-paramo .projects-note {
    border: 2px solid transparent !important;
    background:
        rgba(15, 23, 42, 0.68) padding-box,
        var(--portal-rainbow) border-box !important;
}

.portal-theme-paramo .hero-v2__stat {
    border: 2px solid transparent !important;
    background:
        rgba(15, 23, 42, 0.45) padding-box,
        var(--portal-rainbow) border-box !important;
}

.portal-theme-paramo .about-brand-logo {
    display: inline-block;
    padding: 20px 26px;
    border-radius: 18px;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        var(--portal-rainbow) border-box !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
}

.portal-theme-paramo .about-brand-logo img {
    max-width: 300px;
    width: 100%;
    height: auto;
    display: block;
}

.portal-theme-paramo .project-card.coming-soon {
    background:
        linear-gradient(165deg, #f8fbff 0%, #eef4fb 100%) padding-box,
        var(--portal-rainbow) border-box !important;
    border-style: solid !important;
}

.portal-theme-paramo .kpi-card {
    border-top: none;
    border-image: none;
}

.portal-theme-paramo .inv-panel {
    border: 2px solid transparent !important;
}

.portal-theme-paramo .chart-card h3 i {
    color: #22c55e;
}

.portal-theme-paramo .contact-card .btn-primary,
.portal-theme-paramo .detalle-main .btn-primary {
    color: #0f172a;
}

.page-detalle.portal-theme-paramo .detalle-head-icon,
.page-detalle.portal-theme-paramo .detalle-hero-icon {
    background: linear-gradient(145deg, #ecfdf5, #d1fae5);
    border-color: rgba(34, 197, 94, 0.35);
}

.page-detalle.portal-theme-paramo .detalle-panel,
.page-detalle.portal-theme-paramo .detalle-head,
.page-detalle.portal-theme-paramo .detalle-card {
    border-color: rgba(34, 197, 94, 0.2);
}

.portal-theme-paramo .footer-emblema-wrap {
    border-color: rgba(34, 197, 94, 0.3);
}

.portal-theme-paramo .section-header {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 44px;
    padding: 28px 32px;
    border-radius: 22px;
    text-align: center;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.28);
}

.portal-theme-paramo .section-header-light {
    max-width: 1200px;
    text-align: left;
    padding: 22px 26px;
}

.portal-theme-paramo .section-header .section-title,
.portal-theme-paramo .section-header .section-title-inline {
    background: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    -webkit-text-fill-color: #f8fafc !important;
    color: #f8fafc !important;
    text-shadow: 0 2px 14px rgba(15, 23, 42, 0.45);
}

.portal-theme-paramo .section-header .section-description {
    color: #e2e8f0 !important;
    text-shadow: 0 1px 10px rgba(15, 23, 42, 0.4);
}

.portal-theme-paramo .section-header .section-tag {
    margin-bottom: 16px;
}

/* Acerca de — tarjeta clara con texto oscuro legible */
.portal-theme-paramo .about-text {
    border-radius: 22px;
    padding: 32px 34px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
}

.portal-theme-paramo .about-text .section-title {
    background: linear-gradient(135deg, #0f172a 0%, #15803d 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent;
    text-shadow: none;
}

.portal-theme-paramo .about-text p {
    color: #475569 !important;
}

.portal-theme-paramo .about-text .section-tag {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 211, 238, 0.12));
    border-color: rgba(34, 197, 94, 0.35);
    color: #166534;
}

.portal-theme-paramo .about-text .section-tag i {
    color: #22c55e;
}

/* Roadmap — tarjetas en la línea de tiempo */
.portal-theme-paramo .timeline-content {
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}

.portal-theme-paramo .timeline-content h3 {
    color: #1e293b !important;
}

.portal-theme-paramo .timeline-content p {
    color: #64748b !important;
}

.portal-theme-paramo .timeline-fase {
    color: #059669 !important;
}

/* Filtros y notas sobre el fondo */
.portal-theme-paramo .filter-bar {
    padding: 14px 16px;
    border-radius: 18px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.portal-theme-paramo .filter-btn {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
    color: #e2e8f0;
    box-shadow: none;
}

.portal-theme-paramo .projects-note {
    color: #e2e8f0 !important;
    padding: 16px 22px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.portal-theme-paramo .projects-note i {
    color: #a3e635;
}

.portal-theme-paramo .contact-social-intro {
    color: #e2e8f0 !important;
}

.portal-theme-paramo .filter-btn:not(.active):hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: #a3e635;
    color: #ecfccb;
}

.portal-theme-paramo .filter-btn.active {
    color: #fff;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-color: #15803d;
    box-shadow: 0 6px 18px rgba(34, 197, 94, 0.35);
}
