:root {
    --bg-obsidian: #050505;
    --gold-electric: #F2C94C;
    --blue-cyber: #2D9CDB;
    --purple-neon: #9B51E0;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #FFFFFF;
    --text-muted: #A0A0A0;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* AGREGA ESTO EN TU CSS O EN LAS ETIQUETAS <style> */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-obsidian);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    display: block;
}

/* --- Utilidades --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.text-gradient {
    background: linear-gradient(90deg, var(--blue-cyber), var(--purple-neon));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(45, 156, 219, 0.3);
}

/* --- Botones --- */
.btn-glow {
    background: var(--gold-electric);
    color: #000;
    padding: 12px 30px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    clip-path: polygon(10% 0, 100% 0, 100% 80%, 90% 100%, 0 100%, 0 20%);
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(242, 201, 76, 0.4);
    text-decoration: none;
    display: inline-block;
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(242, 201, 76, 0.8);
}

/* --- Navbar & Header --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 0;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Logo */
.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 5px 0;
    flex-shrink: 0;
}

.logo-img {
    height: 70px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(45, 156, 219, 0.6));
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

/* Buscador */
.search-wrapper {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    max-width: 500px;
}

.search-box {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 12px 20px;
    padding-right: 50px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid var(--blue-cyber);
    border-radius: 30px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(45, 156, 219, 0.3);
}

.search-input:focus {
    border-color: var(--purple-neon);
    box-shadow: 0 0 20px var(--purple-neon);
    background: rgba(0, 0, 0, 0.8);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--blue-cyber);
    font-size: 1.1rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-btn:hover {
    color: #fff;
    text-shadow: 0 0 10px #fff;
    transform: translateY(-50%) scale(1.1);
}

/* Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-shrink: 0;
}

.nav-links a:not(.btn-login) {
    color: var(--text-main);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a:not(.btn-login)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--blue-cyber);
    box-shadow: 0 0 10px var(--blue-cyber);
    transition: width 0.3s ease;
}

.nav-links a:not(.btn-login):hover {
    color: var(--blue-cyber);
    text-shadow: 0 0 8px var(--blue-cyber);
}

.nav-links a:not(.btn-login):hover::after {
    width: 100%;
}

.btn-login {
    margin-left: 0;
    font-size: 0.9rem !important;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-obsidian) 90%);
    pointer-events: none;
    z-index: 1;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

/* --- HERO CANVAS (FONDO INTERACTIVO) --- */
#cyber-grid-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Detrás del texto */
    background: var(--bg-obsidian);
    background: radial-gradient(circle at center, #1a1a1a 0%, #050505 100%);
}

/* =========================================================
   TICKET SECTION (TARJETA HORIZONTAL + VIDEO DE FONDO)
   ========================================================= */

.ticket-section {
    padding: 100px 0;
    position: relative;
    /* Necesario para contener el video absoluto */
    overflow: hidden;
    /* ¡CLAVE! Corta el video exactamente al tamaño de la sección */
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 60px;
    text-align: center;
    position: relative;
    z-index: 2;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

/* --- ESTILOS DEL VIDEO DE FONDO --- */
.video-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Al fondo */
}

/* Busca y reemplaza solo esta clase */
.bg-video {
    width: 100%;
    height: 100%;
    /* 'cover' hace que el video llene todo el espacio sin deformarse */
    object-fit: cover;
    /* 'center' asegura que lo principal del video quede al medio */
    object-position: center;
    /* Brillo extra para que destaque */
    filter: brightness(1.1);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* ANTES ERA 0.7 (Muy oscuro). AHORA ES 0.2 (Muy suave) */
    /* Esto permite que el video se vea claro pero protege un poco el texto */
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

/* Asegurar que el contenido (la tarjeta) esté encima del video */
.ticket-section .container {
    position: relative;
    z-index: 2;
}

/* --- ESTILOS DE LA TARJETA (CYBER TICKET) --- */
.cyber-ticket {
    display: flex;
    max-width: 1000px;
    margin: 0 auto;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--blue-cyber);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(45, 156, 219, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    clip-path: polygon(20px 0, 100% 0,
            100% calc(100% - 20px), calc(100% - 20px) 100%,
            0 100%, 0 20px);
}

.cyber-ticket:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 50px rgba(45, 156, 219, 0.3);
}

/* Lado Izquierdo (Imagen Visual) */
.ticket-visual {
    width: 40%;
    position: relative;
    overflow: hidden;
    min-height: 300px;
}

.ticket-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cyber-ticket:hover .ticket-bg-img {
    transform: scale(1.1);
}

.ticket-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(45, 156, 219, 0.2));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
}

.ticket-type {
    font-family: var(--font-heading);
    color: var(--blue-cyber);
    letter-spacing: 2px;
    font-weight: 700;
    text-shadow: 0 0 10px var(--blue-cyber);
}

.ticket-qr {
    font-size: 4rem;
    color: #fff;
    opacity: 0.8;
    align-self: flex-end;
}

/* Línea de Corte (Rip) */
.ticket-rip {
    width: 2px;
    background-image: linear-gradient(to bottom, #333 33%, rgba(255, 255, 255, 0) 0%);
    background-position: right;
    background-size: 2px 20px;
    background-repeat: repeat-y;
    position: relative;
    /* Fondo para simular el corte sobre el cristal */
    background-color: rgba(0, 0, 0, 0.5);
}

/* Lado Derecho (Información) */
.ticket-info {
    width: 60%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Fondo oscuro semitransparente */
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6));
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.ticket-header h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: #fff;
    margin: 0;
    line-height: 1.1;
}

.status-badge {
    background: var(--purple-neon);
    color: #fff;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    white-space: nowrap;
    /* Evita que el badge se rompa en dos líneas */
}

.ticket-desc {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 25px;
    line-height: 1.6;
}

.ticket-specs {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.ticket-specs li {
    display: flex;
    align-items: center;
    color: #ddd;
    font-size: 0.95rem;
}

.ticket-specs li i {
    color: var(--blue-cyber);
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.ticket-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px 20px;
    border-radius: 10px;
}

.ticket-price {
    display: flex;
    flex-direction: column;
}

.ticket-price .label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.ticket-price .amount {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--gold-electric);
    text-shadow: 0 0 10px rgba(242, 201, 76, 0.4);
}

.btn-ticket {
    background: var(--blue-cyber);
    color: #fff;
    padding: 12px 30px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    border-radius: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(45, 156, 219, 0.4);
    white-space: nowrap;
}

.btn-ticket:hover {
    background: #fff;
    color: var(--blue-cyber);
    box-shadow: 0 0 25px rgba(45, 156, 219, 0.8);
    transform: scale(1.05);
}

/* Responsive Ticket (Móvil) */
@media (max-width: 768px) {
    .cyber-ticket {
        flex-direction: column;
    }

    .ticket-visual,
    .ticket-info {
        width: 100%;
    }

    .ticket-visual {
        height: 200px;
        min-height: auto;
    }

    /* Cambiar la línea de corte de vertical a horizontal */
    .ticket-rip {
        width: 100%;
        height: 2px;
        background-image: linear-gradient(to right, #333 33%, transparent 0%);
        background-size: 20px 2px;
        background-repeat: repeat-x;
    }

    .ticket-specs {
        grid-template-columns: 1fr;
    }

    .ticket-header {
        flex-direction: column;
        gap: 10px;
    }

    .ticket-footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* --- Process Section --- */
.process-section {
    padding: 80px 0;
    text-align: center;
}

.steps-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 50px;
}

.step {
    position: relative;
    max-width: 250px;
    margin-bottom: 30px;
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg-obsidian), #1a1a1a);
    border: 2px solid var(--purple-neon);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--purple-neon);
    box-shadow: 0 0 15px rgba(155, 81, 224, 0.3);
}

.step h4 {
    font-family: var(--font-heading);
    margin-bottom: 10px;
}

/* =========================================================
   FOOTER (CON VIDEO DE FONDO + LOGO)
   ========================================================= */
footer {
    position: relative;
    /* Necesario para el video de fondo */
    overflow: hidden;
    /* Corta el video si sobra */
    border-top: 1px solid var(--blue-cyber);
    padding-top: 80px;
    padding-bottom: 30px;
    background-color: #000;
    /* Fondo de respaldo */
}

/* Resplandor superior neón */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    box-shadow: 0 0 15px var(--blue-cyber), 0 0 30px var(--purple-neon);
    z-index: 3;
    /* Por encima de todo */
}

/* --- VIDEO DE FONDO FOOTER --- */
.footer-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Al fondo absoluto */
}

.footer-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
    /* Oscurecemos un poco el video para que el texto resalte */
}

.footer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    /* Capa oscura (85% opacidad) para máxima legibilidad */
    z-index: 1;
}

/* El contenido debe estar encima del video */
footer .container {
    position: relative;
    z-index: 2;
}

.footer-logo-link {
    display: block;
    /* Asegura que el enlace ocupe todo el ancho */
    width: 100%;
    margin-bottom: 10px;
    /* Un pequeño margen inferior si lo deseas */
}

.footer-logo-img {
    width: 100%;
    /* Ocupa el 100% del ancho disponible de la columna */
    height: auto;
    /* Mantiene la proporción correcta sin deformarse */
    max-width: 280px;
    /* Límite máximo para que no se vea gigante en pantallas muy anchas */

    filter: drop-shadow(0 0 8px rgba(45, 156, 219, 0.6));
    /* Brillo un poco más intenso */
    transition: transform 0.3s ease, filter 0.3s ease;
}

.footer-logo-img:hover {
    transform: scale(1.03);
    filter: drop-shadow(0 0 20px rgba(45, 156, 219, 0.9));
}

/* Grid y Columnas (Igual que antes) */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
}

.footer-col h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 20px;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--blue-cyber);
    margin-bottom: 25px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-desc {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
    max-width: 300px;
}

/* Enlaces */
.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--gold-electric);
    transform: translateX(5px);
    text-shadow: 0 0 8px rgba(242, 201, 76, 0.4);
}

/* Redes Sociales */
.social-icons {
    display: flex;
    gap: 15px;
}

.social-btn {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: var(--purple-neon);
    color: #fff;
    border-color: var(--purple-neon);
    box-shadow: 0 0 15px var(--purple-neon);
    transform: translateY(-3px);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright-text {
    color: #666;
    font-size: 0.85rem;
}

.footer-legal a {
    color: #666;
    text-decoration: none;
    font-size: 0.85rem;
    margin-left: 20px;
    transition: color 0.3s;
}

.footer-legal a:hover {
    color: var(--blue-cyber);
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal a {
        margin: 0 10px;
    }
}

/* --- Mouse Trail Effect --- */
#trail-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.trail-particle {
    position: absolute;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    animation: particleFall 0.8s ease-out forwards;
}

@keyframes particleFall {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0) rotate(0deg);
    }

    100% {
        opacity: 0;
        transform: scale(0.5) translateY(40px) rotate(90deg);
    }
}

/* Formas geométricas */
.shape-triangle {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='50 10, 90 90, 10 90' fill='none' stroke='%2339FF14' stroke-width='8' stroke-linejoin='round'/%3E%3C/svg%3E");
    filter: drop-shadow(0 0 6px #39FF14);
}

.shape-square {
    background: transparent;
    border: 3px solid #FAFF00;
    border-radius: 3px;
    box-shadow: 0 0 10px #FAFF00, inset 0 0 5px #FAFF00;
}

.shape-circle {
    background: transparent;
    border: 3px solid #FF003C;
    border-radius: 50%;
    box-shadow: 0 0 10px #FF003C, inset 0 0 5px #FF003C;
}

.shape-x {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M20 20 L80 80 M80 20 L20 80' stroke='%2300F3FF' stroke-width='8' stroke-linecap='round'/%3E%3C/svg%3E");
    filter: drop-shadow(0 0 6px #00F3FF);
}

/* --- PANTALLA DE CARGA (LOADER) --- */
#loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #050505;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

#loader-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-bg {
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(45, 156, 219, 0.1) 0%, transparent 60%), radial-gradient(circle, rgba(155, 81, 224, 0.05) 0%, transparent 40%);
    animation: rotateBg 10s linear infinite;
}

@keyframes rotateBg {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loader-content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loader-logo {
    width: 300px;
    max-width: 80%;
    height: auto;
    animation: neonBreath 2s ease-in-out infinite alternate;
}

@keyframes neonBreath {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(45, 156, 219, 0.4));
    }

    100% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 25px rgba(155, 81, 224, 0.8)) drop-shadow(0 0 50px rgba(45, 156, 219, 0.6));
    }
}

.loading-bar-container {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 30px;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.loading-bar {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--blue-cyber), var(--purple-neon));
    position: absolute;
    left: -100%;
    animation: loadProgress 2s ease-in-out infinite;
}

@keyframes loadProgress {
    0% {
        left: -100%;
    }

    50% {
        left: 0%;
    }

    100% {
        left: 100%;
    }
}

.loading-text {
    margin-top: 10px;
    color: var(--blue-cyber);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 3px;
    animation: blinkText 1s steps(2, start) infinite;
}

@keyframes blinkText {
    to {
        opacity: 0.3;
    }
}



/* --- Estilos específicos para la sección de Publicaciones (agregar a tu CSS existente) --- */
:root {
    --glitch-red: #FF003C;
    --glitch-blue: #00F3FF;
    --glitch-green: #39FF14;
    --neon-glow: 0 0 15px var(--purple-neon), 0 0 30px var(--blue-cyber);
    --mobile-padding: 16px; /* Padding consistente para móvil */
}

/* Sección principal - MOBILE FIRST */
.cyber-news-section {
    padding: 2rem 0;
    background: linear-gradient(to bottom, var(--bg-obsidian), #080808);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 901px) {
    .cyber-news-section {
        padding: 4rem 0;
    }
}

/* Grid principal - MOBILE FIRST */
.cyber-news-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 var(--mobile-padding);
    box-sizing: border-box;
}

@media (min-width: 901px) {
    .cyber-news-grid {
        display: grid;
        grid-template-columns: 1fr 2fr;
        gap: 40px;
        padding: 0;
        max-width: 1200px;
        margin: 0 auto;
    }
}

/* Panel izquierdo - Información estilizada */
.cyber-news-info {
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--neon-glow);
    box-sizing: border-box;
}

@media (min-width: 901px) {
    .cyber-news-info {
        position: sticky;
        top: 100px;
        height: fit-content;
        padding: 30px;
        border-radius: 20px;
    }
}

.news-main-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    line-height: 1.2;
    text-transform: uppercase;
    margin-bottom: 16px;
    word-break: break-word;
    overflow-wrap: break-word;
}

@media (min-width: 768px) {
    .news-main-title {
        font-size: 2rem;
    }
}

@media (min-width: 901px) {
    .news-main-title {
        font-size: 2.5rem;
    }
}

.neon-divider {
    width: 80px;
    height: 3px;
    background: var(--gold-electric);
    margin: 16px auto;
    box-shadow: 0 0 10px var(--gold-electric);
}

@media (min-width: 901px) {
    .neon-divider {
        width: 100px;
        height: 4px;
        margin: 20px auto;
    }
}

.news-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 24px;
}

/* Estadísticas responsivas */
.news-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
}

@media (max-width: 480px) {
    .news-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.stat-item {
    text-align: center;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.stat-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--blue-cyber);
    text-shadow: var(--neon-glow);
    margin-bottom: 4px;
}

@media (min-width: 901px) {
    .stat-value {
        font-size: 2rem;
    }
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Panel derecho - Carousel optimizado para móvil */
.cyber-image-display {
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.cyber-carousel {
    position: relative;
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--neon-glow);
    overflow: hidden;
    background: var(--glass-bg);
}

@media (min-width: 901px) {
    .cyber-carousel {
        border-radius: 20px;
    }
}

.cyber-slide {
    display: none;
    width: 100%;
    overflow: visible !important;
    box-sizing: border-box;
    padding: 0;
    background: transparent;
    
}

.cyber-slide.active {
    display: block;
}

/* Contenedor flexible para contenido del slide */
.slide-content-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden; /* Solo el wrapper recorta, no la imagen */
    border: 1px solid var(--glass-border);
}

@media (min-width: 768px) {
    .slide-content-wrapper {
        min-height: 350px;
    }
}

@media (min-width: 901px) {
    .slide-content-wrapper {
        flex-direction: row;
        min-height: 0; /* Remover altura mínima fija */
        align-items: stretch; /* Alinear elementos verticalmente */
    }
}

/* Marco neon glitch para imagen - optimizado */
.image-frame {
    position: relative;
    width: 100%;
    min-height: 200px; /* Altura mínima solo para mobile */
    border: none; /* Quitar borde que limita la imagen */
    box-shadow: none; /* Quitar sombra que puede interferir */
    overflow: visible !important; /* Importante: mostrar toda la imagen */
    clip-path: none; /* Quitar clip-path que recorta */
    animation: glitch-frame 4s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0; /* Sin padding interno */
    background: rgba(0, 0, 0, 0.2); /* Fondo sutil para imágenes transparentes */
}

@media (max-width: 900px) {
    .image-frame {
        max-height: 400px; /* Limitar altura máxima en mobile */
    }
    
    .image-frame img {
        max-width: 100%;
        max-height: 380px; /* Considerar el padding del marco */
    }
}

@media (min-width: 768px) {
    .image-frame {
        height: 280px;
    }
}

@media (min-width: 901px) {
    .image-frame {
        width: 50%;
        height: auto;
        min-height: 300px;
        max-height: 500px;
        flex-shrink: 0;
        clip-path: polygon(10% 0, 100% 0, 100% 90%, 90% 100%, 0 100%, 0 10%);
    }
    
    .image-frame img {
        max-width: 100%;
        max-height: 480px; /* Considerar el padding del marco */
    }
}

.image-frame img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain !important; /* CRUCIAL: mostrar imagen completa */
    display: block;
    position: relative;
    z-index: 0;
    border-radius: 8px; /* Bordes suaves internos */
}

/* Contenido informativo */
.image-content {
    width: 100%;
    padding: 24px;
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.8);
    box-sizing: border-box;
    border-top: 2px dashed var(--gold-electric);
}

.image-frame-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px; /* Espacio para el efecto neon */
}

.image-frame-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid transparent;
    border-image: linear-gradient(45deg, var(--glitch-red), var(--glitch-blue), var(--glitch-green)) 1;
    box-shadow: var(--neon-glow);
    z-index: 1;
    pointer-events: none; /* No interferir con la imagen */
    animation: neon-pulse 2s infinite alternate;
}

@media (min-width: 901px) {
    .image-content {
        width: 50%;
        border-left: 2px dashed var(--gold-electric);
        border-top: none;
        padding: 30px;
        justify-content: center;
    }
}

.content-category {
    display: inline-block;
    background: var(--purple-neon);
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-bottom: 12px;
    box-shadow: var(--neon-glow);
}

.content-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--text-main);
    margin-bottom: 12px;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

@media (min-width: 768px) {
    .content-title {
        font-size: 1.5rem;
    }
}

@media (min-width: 901px) {
    .content-title {
        font-size: 1.75rem;
    }
}

.content-resumen {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 16px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    flex-grow: 1; /* Ocupar espacio disponible */
}

/* ANIMACIONES AJUSTADAS */
@keyframes neon-pulse {
    0% { 
        opacity: 0.7;
        box-shadow: 0 0 10px var(--purple-neon);
    }
    100% { 
        opacity: 1;
        box-shadow: 0 0 20px var(--purple-neon), 0 0 30px var(--blue-cyber);
    }
}

@keyframes glitch-frame {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-1px, 1px); }
    40% { transform: translate(1px, -1px); }
    60% { transform: translate(-1px, 1px); }
    80% { transform: translate(1px, -1px); }
}

/* CLASE UTILITARIA para imágenes cuadradas/verticales */
.image-square .image-frame img {
    max-height: 400px; /* Más conservador para imágenes altas */
    object-fit: contain;
}

/* Para imágenes panorámicas */
.image-panoramic .image-frame img {
    max-height: 250px; /* Más bajo para imágenes muy anchas */
    object-fit: contain;
}

/* Estilos para cuando no hay imagen */
.image-frame:has(img[src*="default"]) {
    background: linear-gradient(135deg, var(--bg-obsidian), #1a1a2e);
}

.image-frame:has(img[src*="default"]) img {
    padding: 20px;
    opacity: 0.8;
}

.content-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Indicadores modernos */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 16px 0;
    flex-wrap: wrap;
}

.cyber-indicator {
    width: 10px;
    height: 10px;
    background: var(--text-muted);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .cyber-indicator {
        width: 12px;
        height: 12px;
    }
}

.cyber-indicator.active {
    background: var(--gold-electric);
    transform: scale(1.3);
    box-shadow: 0 0 15px var(--gold-electric);
}

/* Controles optimizados */
.cyber-controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    margin-top: 20px;
}

@media (min-width: 768px) {
    .cyber-controls {
        flex-direction: row;
        justify-content: space-between;
    }
}

.control-buttons {
    display: flex;
    gap: 12px;
    order: 2;
}

@media (min-width: 768px) {
    .control-buttons {
        order: 1;
    }
}

.control-btn {
    background: var(--blue-cyber);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--neon-glow);
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .control-btn {
        width: 40px;
        height: 40px;
    }
}

.slide-counter {
    color: var(--text-muted);
    font-family: var(--font-heading);
    order: 1;
}

@media (min-width: 768px) {
    .slide-counter {
        order: 2;
    }
}

/* Animaciones optimizadas */
@keyframes glitch-frame {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-1px, 1px); }
    40% { transform: translate(1px, -1px); }
    60% { transform: translate(-1px, 1px); }
    80% { transform: translate(1px, -1px); }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateX(30px);
    }
    to { 
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mejoras específicas para pantallas muy pequeñas */
@media (max-width: 360px) {
    .cyber-news-info,
    .image-content {
        padding: 16px;
    }
    
    .content-title {
        font-size: 1.1rem;
    }
    
    .content-resumen {
        font-size: 0.85rem;
    }
}

/* Prevenir desbordamientos horizontales */
* {
    max-width: 100%;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
}







/* --- ABOUT SECTION (SOBRE NOVA CON) --- */
.about-section {
    padding: 120px 0;
    text-align: center;
    background-color: #080808;
    border-bottom: 1px solid var(--glass-border);
    position: relative;
}

.about-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    text-transform: uppercase;
    margin-bottom: 30px;
    letter-spacing: 2px;
    color: #fff;
}

.about-text {
    max-width: 800px;
    margin: 0 auto 50px auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #cccccc;
}

.btn-blue-rounded {
    background-color: var(--blue-cyber);
    color: #fff;
    padding: 14px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(45, 156, 219, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-blue-rounded i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.btn-blue-rounded:hover {
    background-color: #fff;
    color: var(--blue-cyber);
    box-shadow: 0 0 30px rgba(45, 156, 219, 0.8);
    transform: translateY(-3px);
}

.btn-blue-rounded:hover i {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .about-title {
        font-size: 2.5rem;
    }

    .about-text {
        padding: 0 20px;
        font-size: 1rem;
    }
}

/* =========================
   MIS COMPRAS (CYBER)
========================= */
.page-pad {
    padding-top: 120px;
    /* navbar fixed */
    padding-bottom: 90px;
}

.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 22px;
    backdrop-filter: blur(14px);
    box-shadow: 0 0 30px rgba(45, 156, 219, 0.12);
}

.h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.muted {
    color: var(--text-muted);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 12px;
    border: 1px solid rgba(45, 156, 219, 0.35);
    color: #dbe9ff;
    background: rgba(45, 156, 219, 0.10);
}

/* Botones base para que NO se vean default */
.btn {
    border: 0;
    cursor: pointer;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 10px 14px;
    border-radius: 10px;
    transition: .2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(90deg, var(--blue-cyber), var(--purple-neon));
    color: #fff;
    box-shadow: 0 0 18px rgba(155, 81, 224, 0.18);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 28px rgba(155, 81, 224, 0.35);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: #fff;
}

.btn-ghost:hover {
    border-color: rgba(45, 156, 219, 0.45);
    box-shadow: 0 0 18px rgba(45, 156, 219, 0.18);
}

/* Cards de compras */
.compras-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.compra-card {
    grid-column: span 12;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 16px;
    overflow: hidden;
    position: relative;
}

.compra-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: radial-gradient(circle at 30% 20%, rgba(45, 156, 219, 0.22), transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(155, 81, 224, 0.18), transparent 45%);
    pointer-events: none;
    opacity: .8;
}

.compra-top {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.compra-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin: 0;
}

.compra-meta {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.kpi {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 10px 12px;
}

.kpi .k {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.kpi .v {
    font-family: var(--font-heading);
    font-size: 16px;
    margin-top: 3px;
    color: #fff;
}

.compra-actions {
    position: relative;
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .compra-meta {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
    }
}

/* ===== BOLETO (página ver) ===== */
.boleto-wrap {
    padding-top: 120px;
    padding-bottom: 90px;
}

.boleto-qrbox {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 16px;
    background: rgba(0, 0, 0, .25);
    box-shadow: 0 0 22px rgba(45, 156, 219, .12);
    overflow: hidden;
}

.boleto-code {
    margin-top: 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, .55);
    word-break: break-all;
    text-align: center;
}

.boleto-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.boleto-actions .btn-ticket {
    padding: 10px 16px;
}

.boleto-actions .btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    padding: 10px 16px;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: .2s ease;
}

.boleto-actions .btn-ghost:hover {
    border-color: rgba(45, 156, 219, 0.45);
    box-shadow: 0 0 18px rgba(45, 156, 219, 0.18);
    transform: translateY(-1px);
}
