/* ========================================================= */
/* MACANO: ESTILOS GLOBALES ARKA */
/* ========================================================= */

:root {
    --arka-gold: #d4af37;
    --arka-gold-soft: #c79b2f;
    --macano-primary: #0b1726;
    --macano-teal: #00e5ff;
    --arka-bg: #0d1b2a;
    --arka-bg-light: #1b263b;
}

/* ========================================================= */
/* MACANO: TOP BAR TRANSPARENTE + STICKY */
/* ========================================================= */

.arka-header {
    /* MACANO: Header transparente por defecto (comentario MACANO) */
    background: transparent !important;
    transition: background 0.35s ease, box-shadow 0.35s ease;
    backdrop-filter: none;
}

    .arka-header.scrolled {
        background: linear-gradient(90deg, #0b1726, #152a45, #0b1726) !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.6);
        backdrop-filter: blur(6px);
    }

    /* MACANO: menú siempre blanco */
    .arka-header .menu a {
        color: white !important;
        font-weight: 600;
    }

        .arka-header .menu a:hover {
            opacity: 0.75;
        }

/* MACANO: hamburguesa blanca */
.header-burger-left span {
    background: white !important;
}

/* ========================================================= */
/* MACANO: HERO FULL PAGE */
/* ========================================================= */

.arka-hero-title {
    font-family: var(--font-title, sans-serif);
}

.arka-hero-subtitle {
    opacity: 0.9;
}

/* MACANO: Texto hero desktop — solo lado izquierdo, sin tapar el grupo */
.hero-text-left {
    width: 48%;
    max-width: 48%;
    padding: 6rem 0 5rem 4rem;
}

@media (max-width: 1200px) {
    .hero-text-left {
        width: 55%;
        max-width: 55%;
        padding: 5rem 0 4rem 3rem;
    }
}

/* MACANO: Imagen grupo en el hero — anclada al fondo de la sección */
.hero-grupo-img {
    position: absolute;
    bottom: 0;
    object-fit: contain;
    object-position: bottom center;
    pointer-events: none;
    z-index: 15;
    filter: drop-shadow(0 -4px 30px rgba(0, 0, 0, 0.5));
}

/* MACANO: Grupo hero desktop — derecha, altura proporcional al viewport */
.hero-grupo-img--desktop {
    right: 2%;
    height: 82vh;
    max-height: 92%;
    width: auto;
    max-width: 55%;
}

/* MACANO: Grupo hero mobile — centrado abajo, más pequeño */
.hero-grupo-img--mobile {
    left: 50%;
    transform: translateX(-50%);
    height: 42vh;
    max-height: 50%;
    width: auto;
    max-width: 90%;
}

@media (max-width: 480px) {
    .hero-grupo-img--mobile {
        height: 36vh;
        max-height: 45%;
    }
}

/* MACANO: En mobile aumentamos el padding-bottom del contenido del hero
   para evitar que el texto y el CTA se solapen con la imagen del grupo */
@media (max-width: 639px) {
    /* MACANO: En mobile subir ligeramente el contenido del hero para evitar solapamiento
       con la imagen de grupo que está anclada al fondo. Ajustamos el padding-bottom.
    */
    .landing-hero-mobile .hero-content {
        /* Usar variable CSS que puede ser ajustada dinámicamente desde JS */
        padding-bottom: var(--landing-hero-padding-bottom, 60vh); /* empuja el contenido hacia arriba sobre la imagen */
    }

    /* Ajuste fino para pantallas muy pequeñas */
    @media (max-width: 380px) {
        .landing-hero-mobile .hero-content {
            padding-bottom: 66vh;
        }
    }
}

@media (min-width: 1600px) {
    .hero-grupo-img--desktop {
        height: 85vh;
        right: 5%;
    }
}

/* ========================================================= */
/* MACANO: CARRUSEL */
/* ========================================================= */

.no-scrollbar {
    scrollbar-width: none;
}

    .no-scrollbar::-webkit-scrollbar {
        display: none;
    }

/* ========================================================= */
/* MACANO: ARKA CAROUSEL HELPERS FOR TOUCH AND SNAP */
/* ========================================================= */
.arka-carousel {
    -webkit-overflow-scrolling: touch; /* momentum scrolling on iOS */
    /* let the browser handle touch gestures so horizontal swipes work naturally */
    scroll-snap-type: x mandatory;
}

.arka-carousel-item {
    scroll-snap-align: center;
}

/* show 4 items on desktop, 2 on tablet, 1 on mobile */

@media (min-width: 1024px) {
    .arka-carousel-item {
        flex: 0 0 25%; /* 4 items per view */
        max-width: 25%;
    }
}

@media (min-width: 640px) and (max-width: 1023px) {
    .arka-carousel-item {
        flex: 0 0 50%; /* 2 items per view */
        max-width: 50%;
    }
}

@media (max-width: 639px) {
    .arka-carousel-item {
        flex: 0 0 90%; /* 1 item per view */
        max-width: 90%;
    }
}

.arka-carousel {
    box-sizing: border-box;
}

/* MACANO: Cards de video del carrusel — borde dorado consistente con crafting */
.arka-video-card {
    background: rgba(11, 23, 38, 0.82);
    border: 1px solid rgba(219, 180, 74, 0.45);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
    transition: border-color 0.22s ease, transform 0.18s ease, box-shadow 0.22s ease;
}

    .arka-video-card:hover {
        border-color: rgba(219, 180, 74, 0.78);
        transform: scale(1.04);
        box-shadow: 0 8px 28px rgba(219, 180, 74, 0.12), inset 0 0 16px rgba(219, 180, 74, 0.04);
    }

/* ========================================================= */
/* FLECHAS PROFESIONALES DEL CARRUSEL */
/* ========================================================= */
.arka-carousel-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(199,155,47,0.12), rgba(199,155,47,0.06));
    color: var(--arka-gold);
    border: 1px solid rgba(199,155,47,0.18);
    backdrop-filter: blur(6px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.45);
    cursor: pointer;
}

.arka-carousel-arrow:hover {
    transform: translateY(-2px);
}

.arka-carousel-arrow svg {
    width: 20px;
    height: 20px;
    fill: var(--arka-gold);
}

/* ========================================================= */
/* TOP BAR LAYERS AND TRANSPARENCY FIXES */
/* ========================================================= */
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative; /* ensure centering works across browsers */
}

.header-logo-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* LOGO A LA IZQUIERDA (pegado a la hamburguesa) */
.header-logo-left {
    display: inline-flex;
    align-items: center;
}

.header-logo-left .logo {
    height: 40px; /* ensure consistent logo size in header */
}

/* Topbar fixed on top, transparent until scrolled */
/* MACANO: z-index 1300 = MudBlazor AppBar default, así Dialog (1400) queda por encima */
.arka-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1300;
    background: transparent !important;
}

/* MACANO: Forzar altura 80px en la toolbar interna del AppBar para alinear con el drawer */
.arka-header .mud-toolbar-appbar {
    min-height: 80px;
    height: 80px;
}

.arka-header.scrolled {
    background: linear-gradient(90deg, #0b1726, #152a45, #0b1726) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
}

/* Desktop menu aligned to the right (next to avatar) */
.menu {
    display: none;
}

@media (min-width: 768px) {
    .menu {
        display: flex !important;
        gap: 18px;
        align-items: center;
    }

    /* hide the left burger on desktop */
    .header-burger-left { display: none; }
}

/* ensure header does not block hero interaction visually */
.arka-header.transparent { background: transparent !important; box-shadow: none !important; }

.arka-header {
    background: transparent !important;
    transition: background 0.35s ease, box-shadow 0.35s ease;
}

.arka-header.scrolled {
    background: linear-gradient(90deg, #0b1726, #152a45, #0b1726) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

/* ========================================================= */
/* MACANO: BOTONES PREMIUM */
/* ========================================================= */

.bg-primary {
    background-color: var(--macano-primary) !important;
}

.bg-secondary {
    background-color: var(--arka-bg-light) !important;
}

/* ========================================================= */
/* MACANO: DRAWER HOLOGRÁFICO */
/* ========================================================= */

.arka-drawer {
    background: rgba(10, 20, 35, 0.95) !important;
    backdrop-filter: blur(8px);
    border-right: 2px solid var(--arka-gold-soft);
    /* MACANO: z-index por encima del AppBar (1300) para cubrir el topbar */
    z-index: 1350 !important;
}

.arka-drawer-link {
    color: white !important;
    font-weight: 600;
    padding: 6px 0;
}

    .arka-drawer-link:hover {
        color: var(--arka-gold) !important;
    }

/* ========================================================= */
/* MACANO: MENÚ USUARIO (AVATAR POPOVER)                     */
/* ========================================================= */

/* MACANO: Overlay invisible para cerrar menú al pinchar fuera — entre AppBar (1300) y popover (1400) */
.arka-user-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 1399;
    background: transparent;
    cursor: default;
}

/* MACANO: z-index 1400 para que el popover del usuario quede POR ENCIMA del AppBar (1300) */
.arka-user-popover {
    z-index: 1400 !important;
    border: 1px solid rgba(229,184,11,.25);
    background: radial-gradient(120% 120% at 50% 0%, rgba(229,184,11,.10), rgba(20,20,20,.88));
    backdrop-filter: blur(6px);
    border-radius: 14px;
}

.arka-user-menu {
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(40,81,172,0.78), rgba(0,0,0,0.88));
    border: 1px solid rgba(229,153,11,0.45);
    color: white;
    min-width: 180px;
    max-width: 220px;
}

.arka-user-header {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.arka-user-action {
    color: white !important;
    border-radius: 10px;
    padding: 0.55rem 0.75rem;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

    .arka-user-action:hover {
        background: rgba(255,255,255,0.06) !important;
        border-color: rgba(229,184,11,0.35);
        transform: translateY(-1px);
    }

/* ========================================================= */
/* MACANO: BOTÓN LOGIN TOPBAR                                */
/* ========================================================= */

/* MACANO: Botón login desktop — limpio con acento dorado */
.arka-login-btn {
    margin-left: 18px;
    color: #f6e27a !important;
    border-color: rgba(199, 155, 47, 0.5) !important;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 8px;
    padding: 6px 20px;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.2s ease;
}

    .arka-login-btn:hover {
        border-color: #f6e27a !important;
        background: rgba(199, 155, 47, 0.12) !important;
        transform: scale(1.04);
    }

/* MACANO: Botón login móvil — icono de usuario dorado */
.arka-login-mobile {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.85;
}

    .arka-login-mobile:hover {
        transform: scale(1.12);
        opacity: 1;
    }

/* ========================================================= */
/* MACANO: MODAL DE VIDEO */
/* ========================================================= */

.arka-video-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.arka-video-modal {
    background: #0d1b2a;
    border: 2px solid var(--arka-gold-soft);
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    padding: 20px;
    box-shadow: 0 0 25px rgba(0,0,0,0.6);
}

.arka-video-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.arka-video-modal-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
}

.arka-video-modal-body iframe {
    width: 100%;
    height: 450px;
    border-radius: 10px;
    border: none;
}

/* ========================================================= */
/* MACANO: FOOTER */
/* ========================================================= */

footer, .arka-footer {
    background: var(--macano-primary);
    color: white;
    padding: 20px 0;
    text-align: center;
}

/* ========================================================= */
/* MACANO: FOOTER — parallax + player central + redes        */
/* ========================================================= */

/* MACANO: Sección footer con efecto parallax — ancho completo */
.footer-parallax-section {
    position: relative;
    overflow: hidden;
}

/* MACANO: Fondo fijo parallax — cubre todo el ancho */
.footer-parallax-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center bottom;
    background-attachment: fixed;
    z-index: 0;
}

/* MACANO: Fila principal — Twitch | Player | YouTube pegados al fondo */
.footer-hero-row {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    max-width: 800px;
}

/* MACANO: Imagen player — elemento central, pies al borde inferior */
.footer-player-img {
    height: auto;
    max-height: 420px;
    width: auto;
    max-width: 50%;
    object-fit: contain;
    flex: 0 1 auto;
    display: block;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45));
}

/* MACANO: Enlace red social lateral */
.footer-social-link {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    transition: transform 0.2s ease;
    padding-bottom: 2rem;
}

    .footer-social-link:hover {
        transform: scale(1.1);
    }

/* MACANO: Icono red social — 25% más grande */
.footer-social-icon {
    width: 90px;
    height: 90px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

/* MACANO: Contenedor footbar decorativa */
.footer-footbar-wrap {
    width: 100%;
    max-width: 900px;
    margin-bottom: 1.25rem;
}

/* MACANO: Footer responsive — mobile */
@media (max-width: 767px) {
    .footer-parallax-bg {
        background-attachment: scroll;
    }

    .footer-hero-row {
        gap: 1rem;
        max-width: 100%;
        padding: 0 0.5rem;
    }

    .footer-player-img {
        max-height: 260px;
        max-width: 45%;
    }

    .footer-social-icon {
        width: 64px;
        height: 64px;
    }

    .footer-social-link {
        padding-bottom: 1rem;
    }

    .footer-footbar-wrap {
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 480px) {
    .footer-hero-row {
        gap: 0.75rem;
    }

    .footer-player-img {
        max-height: 200px;
        max-width: 42%;
    }

    .footer-social-icon {
        width: 50px;
        height: 50px;
    }

    .footer-social-link {
        padding-bottom: 0.5rem;
    }
}

/* ========================================================= */
/* MACANO: TRADUCCIÓN — efecto Matrix decode animado         */
/* ========================================================= */

/* MACANO: Sección base — fondo oscuro espacial */
.trad-matrix-section {
    background: linear-gradient(135deg, #060e18 0%, #0b1726 40%, #0f1f35 100%);
}

/* MACANO: Fondo con partículas sutiles — rojo Vanduul + dorado ARKA */
.trad-matrix-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 500px 250px at 15% 70%, rgba(180, 40, 40, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 600px 300px at 25% 85%, rgba(230, 200, 92, 0.03) 0%, transparent 70%),
        radial-gradient(ellipse 400px 200px at 75% 30%, rgba(100, 180, 255, 0.03) 0%, transparent 70%),
        radial-gradient(ellipse 350px 180px at 40% 20%, rgba(200, 60, 40, 0.04) 0%, transparent 70%);
}

/* MACANO: Rejilla holográfica HUD — pulsa suavemente */
.trad-matrix-grid {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image:
        linear-gradient(rgba(230, 200, 92, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(230, 200, 92, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    animation: trad-grid-pulse 4s ease-in-out infinite;
}

@keyframes trad-grid-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

/* MACANO: Contenedor de columnas de texto cayendo */
.trad-matrix-cols {
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
}

/* MACANO: Cada columna de texto — cae de arriba a abajo */
.trad-matrix-cols span {
    position: absolute;
    top: -100%;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: 'Rajdhani', var(--font-title), monospace;
    font-size: 2.2rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    color: rgba(230, 200, 92, 0.25);
    white-space: nowrap;
    animation: trad-col-fall var(--dur, 8s) linear var(--delay, 0s) infinite;
    text-shadow: 0 0 14px rgba(230, 200, 92, 0.25), 0 0 4px rgba(230, 200, 92, 0.12);
}

/* MACANO: Columnas Vanduul — texto alienígena con brillo carmesí */
.trad-col-vanduul {
    color: rgba(200, 60, 50, 0.30) !important;
    text-shadow: 0 0 18px rgba(200, 60, 50, 0.30), 0 0 6px rgba(255, 80, 60, 0.15) !important;
    letter-spacing: 0.3em !important;
    font-weight: 700 !important;
}

/* MACANO: Posición horizontal de cada columna (12 columnas en desktop) */
.trad-matrix-cols span:nth-child(1)  { left: 3%; }
.trad-matrix-cols span:nth-child(2)  { left: 10%; }
.trad-matrix-cols span:nth-child(3)  { left: 17%; }
.trad-matrix-cols span:nth-child(4)  { left: 24%; }
.trad-matrix-cols span:nth-child(5)  { left: 31%; }
.trad-matrix-cols span:nth-child(6)  { left: 38%; }
.trad-matrix-cols span:nth-child(7)  { left: 45%; }
.trad-matrix-cols span:nth-child(8)  { left: 55%; }
.trad-matrix-cols span:nth-child(9)  { left: 62%; }
.trad-matrix-cols span:nth-child(10) { left: 70%; }
.trad-matrix-cols span:nth-child(11) { left: 80%; }
.trad-matrix-cols span:nth-child(12) { left: 90%; }

@keyframes trad-col-fall {
    0% {
        top: -30%;
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    85% {
        opacity: 1;
    }
    100% {
        top: 110%;
        opacity: 0;
    }
}

/* MACANO: Línea de escaneo — barre la sección, decodifica Vanduul */
.trad-matrix-scanline {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    z-index: 3;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(200, 60, 50, 0.0) 5%,
        rgba(200, 60, 50, 0.5) 15%,
        rgba(230, 200, 92, 0.6) 30%,
        rgba(230, 200, 92, 0.9) 50%,
        rgba(230, 200, 92, 0.6) 70%,
        rgba(200, 60, 50, 0.5) 85%,
        rgba(200, 60, 50, 0.0) 95%,
        transparent 100%);
    box-shadow:
        0 0 12px 2px rgba(230, 200, 92, 0.2),
        0 0 30px 3px rgba(200, 60, 50, 0.12);
    animation: trad-scan-sweep 5s ease-in-out infinite;
}

@keyframes trad-scan-sweep {
    0%   { top: -2px; opacity: 0; }
    5%   { opacity: 1; }
    90%  { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* MACANO: Overlay con degradado para legibilidad del texto (derecha) */
.trad-matrix-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    background: linear-gradient(90deg,
        transparent 0%,
        transparent 30%,
        rgba(11, 23, 38, 0.55) 50%,
        rgba(11, 23, 38, 0.88) 70%,
        rgba(11, 23, 38, 0.95) 85%);
}

/* MACANO: Borde superior e inferior dorado sutil */
.trad-matrix-section::before,
.trad-matrix-section::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    z-index: 5;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(219, 180, 74, 0.4) 20%,
        rgba(219, 180, 74, 0.6) 50%,
        rgba(219, 180, 74, 0.4) 80%,
        transparent 100%);
}

.trad-matrix-section::before { top: 0; }
.trad-matrix-section::after  { bottom: 0; }

/* MACANO: Responsive mobile — overlay centrado, columnas reducidas */
@media (max-width: 767px) {
    .trad-matrix-overlay {
        background: radial-gradient(
            ellipse 80% 60% at 50% 50%,
            rgba(11, 23, 38, 0.7) 0%,
            rgba(11, 23, 38, 0.45) 60%,
            rgba(11, 23, 38, 0.25) 100%);
    }

    .trad-matrix-cols span {
        font-size: 1.6rem;
    }

    .trad-matrix-cols span:nth-child(n+7) {
        display: none;
    }
}

/* ========================================================= */
/* MACANO: TRADUCCIÓN — enlace sugerencias/bug               */
/* ========================================================= */

.traduccion-bug-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    border: 1px solid rgba(219, 180, 74, 0.3);
    border-radius: 0.5rem;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

    .traduccion-bug-link:hover {
        color: #e6c85c;
        border-color: rgba(219, 180, 74, 0.6);
        background: rgba(219, 180, 74, 0.06);
    }

/* ========================================================= */
/* MACANO: RESPONSIVE */
/* ========================================================= */

@media (max-width: 768px) {
    .arka-video-modal-body iframe {
        height: 250px;
    }
}
/* ========================================================= */
/* MACANO: HEADER LAYOUT HASTA LOS HUITOS */
/* ========================================================= */

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* LOGO CENTRADO EN MÓVIL, NORMAL EN DESKTOP */
.header-logo-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

@media (min-width: 768px) {
    .header-logo-center {
        position: static;
        transform: none;
    }
}

/* LOGO TAMAÑO CORRECTO */
.header-logo-center .logo {
    height: 40px;
}

/* HAMBURGUESA */
.header-burger-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.burger {
    width: 24px;
    height: 18px;
    position: relative;
}

    .burger span {
        position: absolute;
        left: 0;
        right: 0;
        height: 2px;
        background: white;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

        .burger span:nth-child(1) {
            top: 0;
        }

        .burger span:nth-child(2) {
            top: 8px;
        }

        .burger span:nth-child(3) {
            top: 16px;
        }

    .burger.open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .burger.open span:nth-child(2) {
        opacity: 0;
    }

    .burger.open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

/* ========================================================= */
/* MACANO: SECCIÓN COMUNIDAD — estilo RSI "New to the verse" */
/* ========================================================= */

.comunidad-section {
    background:
        linear-gradient(180deg, rgba(6, 12, 26, 0.72) 0%, rgba(10, 20, 44, 0.82) 100%),
        url('/Images/Fondos/comunidad_bg.jpg') center center / cover no-repeat;
}

.comunidad-char-col {
    width: 36%;
    min-height: 480px;
    flex-shrink: 0;
}

.comunidad-char-img {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 115%;
    max-height: 580px;
    object-fit: contain;
    object-position: bottom left;
    pointer-events: none;
    z-index: 10;
}

/* MACANO: Logo ARKA en la sección de comunidad — centrado en la columna del personaje */
.comunidad-logo-img {
    width: 80%;
    max-width: 320px;
    object-fit: contain;
    pointer-events: none;
    z-index: 10;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.4));
}

.comunidad-heading {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1.15;
}

.comunidad-subheading {
    font-size: 1.05rem;
    max-width: 520px;
    line-height: 1.6;
}

.comunidad-channel-card {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(219, 180, 74, 0.45);
    border-radius: 12px;
    background: rgba(11, 23, 38, 0.72);
    padding: 1.25rem;
    text-decoration: none;
    transition: border-color 0.22s ease, background 0.22s ease, transform 0.18s ease, box-shadow 0.22s ease;
    cursor: pointer;
}

    .comunidad-channel-card:hover {
        border-color: rgba(219, 180, 74, 0.78);
        background: rgba(11, 23, 38, 0.92);
        transform: translateY(-2px);
        box-shadow: 0 6px 24px rgba(219, 180, 74, 0.10), inset 0 0 16px rgba(219, 180, 74, 0.04);
        text-decoration: none;
    }

.comunidad-channel-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    font-family: var(--font-title, sans-serif);
}

.comunidad-channel-desc {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.60);
    line-height: 1.55;
    flex: 1;
    margin-bottom: 1rem;
}

.comunidad-channel-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--macano-teal);
    letter-spacing: 0.03em;
}

/* MACANO: Flechas del carrusel ocultas en mobile — el swipe táctil es suficiente */
@media (max-width: 767px) {
    .arka-carousel-arrow {
        display: none !important;
    }
}

/* MACANO: Cards comunidad en mobile — padding y tipografía reducidos para la cuadrícula 2×2 */
@media (max-width: 767px) {
    .comunidad-channel-card {
        padding: 0.6rem 0.5rem;
        border-radius: 8px;
    }

    .comunidad-channel-title {
        font-size: 0.75rem;
        margin-bottom: 0.25rem;
    }

    .comunidad-channel-desc {
        font-size: 0.65rem;
        line-height: 1.35;
        margin-bottom: 0.4rem;
    }

    .comunidad-channel-link {
        font-size: 0.65rem;
    }
}

/* ========================================================= */
/* MACANO: VIDEO PARALLAX — fondo de video en sección noticias */
/* ========================================================= */

.news-parallax-section {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* MACANO: Contenedor fijo del video — simula parallax al hacer scroll */
.news-parallax-bg {
    position: absolute;
    inset: -20% 0;
    z-index: 0;
    overflow: hidden;
    will-change: transform;
}

/* MACANO: Video autoplay — cubre toda la sección */
.news-parallax-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    filter: brightness(0.45) saturate(0.8);
}

/* MACANO: Overlay oscuro + gradientes de transición suave entre secciones */
.news-parallax-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(180deg,
            rgba(5, 10, 20, 0.95) 0%,
            rgba(5, 10, 20, 0.55) 12%,
            rgba(5, 10, 20, 0.30) 30%,
            rgba(5, 10, 20, 0.30) 70%,
            rgba(5, 10, 20, 0.55) 88%,
            rgba(5, 10, 20, 0.95) 100%
        );
}

/* MACANO: En mobile el video se ajusta y el parallax se suaviza */
@media (max-width: 767px) {
    .news-parallax-bg {
        inset: -10% 0;
    }

    .news-parallax-video {
        filter: brightness(0.35) saturate(0.7);
    }
}

/* ========================================================= */
/* MACANO: SECCIÓN NOTICIAS COMM-LINK RSI                    */
/* ========================================================= */

.commlink-card {
    background: rgba(11, 23, 38, 0.72);
    border: 1px solid rgba(219, 180, 74, 0.35);
    text-decoration: none;
    transition: border-color 0.22s ease, background 0.22s ease, transform 0.18s ease, box-shadow 0.22s ease;
    cursor: pointer;
}

    .commlink-card:hover {
        border-color: rgba(219, 180, 74, 0.72);
        background: rgba(11, 23, 38, 0.92);
        transform: translateY(-2px);
        box-shadow: 0 6px 24px rgba(219, 180, 74, 0.10), inset 0 0 16px rgba(219, 180, 74, 0.04);
        text-decoration: none;
    }

/* MACANO: Card destacada — borde dorado más visible */
.commlink-featured {
    border-color: rgba(219, 180, 74, 0.50);
}

    .commlink-featured:hover {
        border-color: rgba(219, 180, 74, 0.85);
    }

/* MACANO: Enlace "Leer más" en teal */
.commlink-read-more {
    color: var(--macano-teal);
    font-size: 0.75rem;
    font-weight: 600;
}

/* ========================================================= */
/* MACANO: OVERLAY CARDS — imagen de fondo + texto superpuesto */
/* ========================================================= */

.commlink-overlay-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(219, 180, 74, 0.35);
    text-decoration: none;
    cursor: pointer;
    flex: 1;
    min-height: 140px;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
    transform-style: preserve-3d;
    perspective: 600px;
}

    .commlink-overlay-card:hover {
        border-color: rgba(219, 180, 74, 0.72);
        box-shadow: 0 8px 30px rgba(219, 180, 74, 0.12), 0 0 20px rgba(219, 180, 74, 0.06);
        text-decoration: none;
    }

    .commlink-overlay-card:hover .commlink-overlay-img {
        transform: scale(1.08);
        filter: brightness(0.7);
    }

    .commlink-overlay-card:hover .commlink-overlay-shine {
        opacity: 1;
    }

    .commlink-overlay-card:hover .commlink-read-more {
        opacity: 1;
        transform: translateY(0);
    }

/* MACANO: Imagen de fondo */
.commlink-overlay-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.45s ease, filter 0.45s ease;
    filter: brightness(0.85);
}

/* MACANO: Gradiente sobre la imagen para legibilidad */
.commlink-overlay-gradient {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        0deg,
        rgba(6, 12, 26, 0.92) 0%,
        rgba(6, 12, 26, 0.55) 45%,
        rgba(6, 12, 26, 0.08) 100%
    );
}

/* MACANO: Contenido superpuesto — abajo a la izquierda */
.commlink-overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.commlink-overlay-time {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.commlink-overlay-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    line-height: 1.3;
    font-family: var(--font-title, sans-serif);
}

/* MACANO: "Leer más" oculto hasta hover */
.commlink-overlay-card .commlink-read-more {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    margin-top: 0.35rem;
}

/* MACANO: Brillo diagonal que se mueve en hover (efecto dorado) */
.commlink-overlay-shine {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(
        125deg,
        transparent 30%,
        rgba(219, 180, 74, 0.08) 45%,
        rgba(255, 236, 170, 0.06) 55%,
        transparent 70%
    );
    transition: opacity 0.4s ease;
}

/* MACANO: Overlay cards en mobile — más bajas */
@media (max-width: 767px) {
    .commlink-overlay-card {
        min-height: 120px;
        border-radius: 10px;
    }

    .commlink-overlay-content {
        padding: 0.65rem 0.75rem;
    }

    .commlink-overlay-title {
        font-size: 0.78rem;
    }

    /* MACANO: Siempre visible en mobile (no hay hover) */
    .commlink-overlay-card .commlink-read-more {
        display: none;
    }
}

/* MACANO: Limitar líneas de texto en noticias */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}