﻿:root {
    /* Paleta gaming futurista */
    --neon-primary: #9D00FF; /* Morado eléctrico */
    --neon-secondary: #00FFE0; /* Cian */
    --dark-bg: #0A0E17;
    --text-white: #FFFFFF;
    --content-width: 55%;
    --pixel-size: 2px; /* Tamaño del efecto pixelado */
}

/* Canvas Matrix */
#matrixCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    opacity: 0.4;
}

/* Estructura base con temática gaming */
.gaming-hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    color: var(--text-white);
    /*    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
*/
}

.hero-bg-media-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
    z-index: 1;
}

.hero-bg-media,
.hero-img-bg {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    background-size: cover;
    background-position: center;
}

/* Imagen de fondo con temática gaming */
.hero-img-bg {
    background-image: url('/img/tecnicaturas/videojuego_001.jpeg');
    background-position: center;
    filter: brightness(0.7);
}

/* Efecto grid pixelado */
.pixel-grid-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(157, 0, 255, 0.1) var(--pixel-size), transparent var(--pixel-size)), linear-gradient(90deg, rgba(157, 0, 255, 0.1) var(--pixel-size), transparent var(--pixel-size));
    background-size: calc(var(--pixel-size)*5) calc(var(--pixel-size)*5);
    z-index: 1;
    pointer-events: none;
}

/* Overlay con gradiente cyberpunk */
.hero-gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient( to right, rgba(10, 14, 23, 0.5) 20%, rgba(157, 0, 255, 0.3) 40%, transparent 60% );
    z-index: 2;
}

/* Contenido con estilo UI gaming */
.hero-content.left-bottom {
    position: absolute;
    left: 5%;
    bottom: 8%;
    width: var(--content-width);
    max-width: 650px;
    z-index: 3;
    text-align: left;
    padding-right: 2rem;
}

.title-wrapper {
    margin-bottom: 1.5rem;
}

.hero-title {
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
    letter-spacing: 0.5px;
}

.title-line {
    display: block;
    font-size: clamp(2.2rem, 3.4vw, 3.8rem);
    margin: 0.2rem 0;
    position: relative;
}

    .title-line.highlight {
        color: transparent;
        -webkit-text-stroke: 2px var(--neon-primary);
        text-shadow: 0 0 15px var(--neon-primary), 0 0 30px rgba(157, 0, 255, 0.5);
        animation: glitch-effect 3s infinite alternate;
    }

.hero-description {
    font-size: clamp(1rem, 2vw, 1.3rem);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    max-width: 90%;
}

/* Botón estilo pixel gaming */
/* Botón estilo videojuego retro */
.game-button {
    position: relative;
    display: inline-block;
    padding: 12px 30px;
    background-color: #2a2a72;
    background-image: linear-gradient(315deg, #2a2a72 0%, #009ffd 74%);
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    text-shadow: 1px 1px 0px #000;
    border: none;
    cursor: pointer;
    outline: none;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 4px #0ff, 0 0 0 6px #f0f, 0 0 20px rgba(0, 255, 255, 0.5);
    clip-path: polygon( 0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px) );
}

.button-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pixel-icon {
    font-size: 1rem;
    animation: pulse 1.5s infinite;
}

.button-text {
    letter-spacing: 2px;
}

.pixel-arrow {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

/* Bordes pixelados */
.button-border {
    position: absolute;
    background-color: #0ff;
    transition: all 0.3s ease;
}

.button-border-top {
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    transform: scaleX(0);
    transform-origin: left;
}

.button-border-right {
    top: 0;
    right: 0;
    width: 2px;
    height: 100%;
    transform: scaleY(0);
    transform-origin: top;
}

.button-border-bottom {
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    transform: scaleX(0);
    transform-origin: right;
}

.button-border-left {
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    transform: scaleY(0);
    transform-origin: bottom;
}

/* Efectos hover */
.game-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 0 4px #0ff, 0 0 0 6px #f0f, 0 5px 30px rgba(0, 255, 255, 0.8);
    background-image: linear-gradient(315deg, #1a1a4a 0%, #0077cc 74%);
}

    .game-button:hover .button-border-top,
    .game-button:hover .button-border-bottom {
        transform: scaleX(1);
    }

    .game-button:hover .button-border-right,
    .game-button:hover .button-border-left {
        transform: scaleY(1);
    }

    .game-button:hover .pixel-arrow {
        transform: translateX(5px);
    }

/* Efecto de glitch ocasional */
@keyframes glitch {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(-2px, -2px);
    }

    60% {
        transform: translate(2px, 2px);
    }

    80% {
        transform: translate(2px, -2px);
    }

    100% {
        transform: translate(0);
    }
}

.game-button:hover {
    animation: glitch 0.5s linear infinite;
}

/* Animación del icono */
@keyframes pulse {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

/* Efecto 8-bit al hacer clic */
.game-button:active {
    transform: translateY(1px);
    box-shadow: 0 0 0 4px #0ff, 0 0 0 6px #f0f, 0 2px 10px rgba(0, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .game-button {
        padding: 10px 20px;
        font-size: 1rem;
    }
}

/* Animación glitch para texto gaming */
@keyframes glitch-effect {
    0%, 100% {
        text-shadow: 0 0 10px var(--neon-primary), 0 0 20px rgba(157, 0, 255, 0.7), 0 0 5px rgba(0, 255, 224, 0.3);
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(2px, -2px);
    }

    60% {
        transform: translate(-2px, -2px);
        text-shadow: 0 0 15px var(--neon-primary), 0 0 25px rgba(157, 0, 255, 0.8), 0 0 10px rgba(0, 255, 224, 0.5), 2px 2px 0 #00FFE0;
    }

    80% {
        transform: translate(2px, 2px);
    }
}

/* Responsive gaming */
@media (max-width: 992px) {
    :root {
        --content-width: 65%;
        --pixel-size: 1.5px;
    }
}

@media (max-width: 768px) {
    :root {
        --content-width: 85%;
    }

    .hero-content {
        padding: 1.5rem;
    }

    .pixel-button {
        padding: 0.9rem 1.8rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    :root {
        --pixel-size: 1px;
    }

    .hero-content {
        width: 90%;
        padding: 1rem;
    }

    .title-line {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .pixel-button {
        box-shadow: 2px 2px 0 #000, 0 0 0 2px var(--neon-secondary);
    }
}
