/* ============================================================
   estilos.css - HOLOGRAM & CYBERPUNK ULTRA PRO (BluePops) 🍿🥤
   Efectos Holográficos, Neon Cyberpunk, 3D Tilt y Glitch
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;600;700;800&family=Orbitron:wght@600;800;900&display=swap');

:root {
    --color-azul-principal: #00f0ff;
    --color-azul-oscuro: #0a0e17;
    --color-azul-cielo: #0088ff;
    --color-rosa-pop: #ff007f;
    --color-rosa-suave: #2a0820;
    --color-rojo-poporopo: #ff0055;
    --color-amarillo-poporopo: #ffe600;
    --color-texto: #e0f7fc;
    --color-fondo: #050811;
    --color-tarjeta: rgba(10, 20, 38, 0.75);
    --color-borde: rgba(0, 240, 255, 0.4);
    --color-exito: #00ff66;
    --color-peligro: #ff0033;
    --color-aviso: #ff9900;
    --radio: 20px;
    /* Sombras y Luces Holográficas */
    --sombra-3d: 0 15px 35px rgba(0, 240, 255, 0.25);
    --sombra-neon: 0 0 15px #00f0ff, 0 0 30px rgba(0, 240, 255, 0.6);
    --sombra-neon-rosa: 0 0 15px #ff007f, 0 0 30px rgba(ff, 0, 127, 0.6);
}

* {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Fredoka', sans-serif;
    background: radial-gradient(circle at 50% 0%, #0d1b2a 0%, #050811 70%, #000000 100%);
    background-attachment: fixed;
    color: var(--color-texto);
    min-height: 100vh;
    padding-bottom: 50px;
    overflow-x: hidden;
    position: relative;
}

    /* Efecto de Líneas de Escáner Holográfico en la Pantalla */
    body::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient( rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50% );
        background-size: 100% 4px;
        z-index: 999;
        pointer-events: none;
        opacity: 0.6;
    }

/* ---------- KEYFRAMES DE IMPACTO HOLOGRÁFICO ---------- */

@keyframes entradaUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
        filter: blur(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes floatSmooth {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        filter: drop-shadow(0 0 10px var(--color-azul-principal));
    }

    50% {
        transform: translateY(-10px) rotate(2deg);
        filter: drop-shadow(0 0 20px var(--color-rosa-pop));
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(255, 0, 127, 0.5), inset 0 0 15px rgba(255, 0, 127, 0.3);
    }

    50% {
        box-shadow: 0 0 35px rgba(255, 0, 127, 0.9), inset 0 0 25px rgba(255, 0, 127, 0.6);
    }
}

@keyframes holoScan {
    0% {
        top: -100%;
    }

    100% {
        top: 200%;
    }
}

@keyframes popIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    80% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ---------- BARRA SUPERIOR HOLOGRÁFICA ---------- */

.barra-superior {
    background: linear-gradient(-45deg, #0a0e17, #004499, #ff007f, #00f0ff);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    color: #fff;
    padding: 20px 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.3);
    border-bottom: 3px solid var(--color-azul-principal);
    position: relative;
    overflow: hidden;
}

    .barra-superior h1 {
        margin: 0;
        font-family: 'Orbitron', sans-serif;
        font-size: 2rem;
        font-weight: 900;
        letter-spacing: 1.5px;
        display: flex;
        align-items: center;
        gap: 12px;
        text-transform: uppercase;
        text-shadow: 0 0 10px var(--color-azul-principal), 0 0 20px var(--color-azul-principal);
    }

    .barra-superior img {
        animation: floatSmooth 4s ease-in-out infinite;
        transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

        .barra-superior img:hover {
            transform: scale(1.3) rotate(-12deg);
        }

/* ---------- NAVEGACIÓN FUTURISTA NEÓN ---------- */

.navegacion {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

    .navegacion a {
        color: var(--color-texto);
        text-decoration: none;
        background: rgba(0, 240, 255, 0.05);
        padding: 10px 24px;
        border-radius: 999px;
        font-size: 0.95rem;
        font-weight: 700;
        transition: all 0.3s ease;
        backdrop-filter: blur(12px);
        border: 1px solid var(--color-borde);
        box-shadow: inset 0 0 10px rgba(0, 240, 255, 0.1);
        position: relative;
        overflow: hidden;
    }

        .navegacion a:hover, .navegacion a.activo {
            background: var(--color-azul-principal);
            color: #000;
            font-weight: 800;
            transform: translateY(-3px);
            box-shadow: var(--sombra-neon);
            border-color: #fff;
        }

/* ---------- PANELES GLASSMORPHISM CON ESCÁNER ---------- */

.contenedor {
    max-width: 1280px;
    margin: 35px auto;
    padding: 0 24px;
    animation: entradaUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.panel {
    background: var(--color-tarjeta);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radio);
    box-shadow: var(--sombra-3d);
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid var(--color-borde);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

    /* Efecto Luz de Láser Holográfico cruzando el panel */
    .panel::after {
        content: '';
        position: absolute;
        top: -100%;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(180deg, transparent, rgba(0, 240, 255, 0.15), transparent);
        animation: holoScan 6s linear infinite;
        pointer-events: none;
    }

    .panel:hover {
        box-shadow: 0 20px 45px rgba(0, 240, 255, 0.35);
        border-color: var(--color-azul-principal);
        transform: translateY(-2px);
    }

    .panel h2 {
        margin-top: 0;
        font-family: 'Orbitron', sans-serif;
        color: var(--color-azul-principal);
        border-bottom: 2px solid var(--color-rosa-pop);
        padding-bottom: 12px;
        font-size: 1.5rem;
        font-weight: 800;
        display: flex;
        align-items: center;
        gap: 10px;
        text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
    }

/* ---------- CAMPOS E INPUTS FUTURISTAS ---------- */

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

label {
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--color-azul-principal);
    display: block;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

input, select, textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--color-borde);
    border-radius: 14px;
    font-size: 0.95rem;
    font-family: inherit;
    background: rgba(5, 12, 26, 0.8);
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

    input:focus, select:focus, textarea:focus {
        outline: none;
        border-color: var(--color-azul-principal);
        box-shadow: var(--sombra-neon);
        background: rgba(10, 20, 40, 0.9);
        transform: translateY(-2px);
    }

/* ---------- PESTAÑAS HOLOGRÁFICAS ---------- */

.pestanas-imagen {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.pestana-imagen {
    padding: 12px 24px;
    border-radius: 999px;
    background: rgba(10, 20, 38, 0.8);
    color: var(--color-texto);
    border: 1px solid var(--color-borde);
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 800;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    user-select: none;
}

    .pestana-imagen::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.4), transparent);
        transition: left 0.5s ease;
    }

    .pestana-imagen:hover::before {
        left: 100%;
    }

    .pestana-imagen:hover {
        transform: translateY(-3px) scale(1.03);
        border-color: var(--color-azul-principal);
        box-shadow: var(--sombra-neon);
        color: #fff;
    }

    .pestana-imagen.activa {
        background: linear-gradient(135deg, var(--color-azul-principal), #004499);
        color: #ffffff;
        border-color: #fff;
        box-shadow: var(--sombra-neon);
        animation: popIn 0.3s ease;
    }

.vista-previa-imagen {
    width: 100%;
    max-width: 220px;
    height: 150px;
    object-fit: cover;
    border-radius: 18px;
    border: 2px solid var(--color-azul-principal);
    margin-top: 12px;
    display: none;
    box-shadow: var(--sombra-neon);
    animation: popIn 0.4s ease;
}

    .vista-previa-imagen.mostrar {
        display: block;
    }

/* ---------- BOTONES CON EFECTO NEÓN CIBERNÉTICO ---------- */

.boton {
    border: none;
    border-radius: 999px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 800;
    font-family: 'Fredoka', sans-serif;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

    .boton:hover {
        transform: translateY(-4px) scale(1.05);
    }

    .boton:active {
        transform: translateY(-1px) scale(0.98);
    }

.boton-primario {
    background: linear-gradient(135deg, var(--color-azul-principal), #0055ff);
    color: #000;
    box-shadow: var(--sombra-neon);
}

.boton-secundario {
    background: linear-gradient(135deg, var(--color-rosa-pop), #ff0055);
    color: #fff;
    box-shadow: var(--sombra-neon-rosa);
}

.boton-exito {
    background: linear-gradient(135deg, var(--color-exito), #009933);
    color: #000;
    animation: pulseGlow 2s infinite;
}

.boton-peligro {
    background: linear-gradient(135deg, var(--color-peligro), #990022);
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 0, 51, 0.5);
}

.boton-aviso {
    background: linear-gradient(135deg, var(--color-aviso), var(--color-amarillo-poporopo));
    color: #000;
    box-shadow: 0 0 15px rgba(255, 230, 0, 0.5);
}

.boton-neutro {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-texto);
    border: 1px solid var(--color-borde);
}

    .boton-neutro:hover {
        background: rgba(255, 255, 255, 0.2);
        color: #fff;
    }

/* ---------- TARJETAS DE PRODUCTO CON EFECTO HOLO 3D ---------- */

.grilla-productos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
}

.tarjeta-producto {
    background: rgba(10, 20, 38, 0.7);
    border-radius: var(--radio);
    overflow: hidden;
    box-shadow: var(--sombra-3d);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-borde);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: entradaUp 0.5s ease forwards;
    backdrop-filter: blur(10px);
}

    .tarjeta-producto:hover {
        transform: translateY(-10px) scale(1.03);
        box-shadow: 0 20px 40px rgba(0, 240, 255, 0.4);
        border-color: var(--color-rosa-pop);
    }

    .tarjeta-producto img {
        width: 100%;
        height: 180px;
        object-fit: cover;
        background: #000;
        transition: transform 0.6s ease;
        border-bottom: 2px solid var(--color-borde);
    }

    .tarjeta-producto:hover img {
        transform: scale(1.1);
        filter: brightness(1.1);
    }

    .tarjeta-producto .contenido {
        padding: 20px;
        display: flex;
        flex-direction: column;
        gap: 10px;
        flex-grow: 1;
    }

    .tarjeta-producto h3 {
        margin: 0;
        font-size: 1.2rem;
        font-weight: 800;
        color: #fff;
    }

    .tarjeta-producto .precio {
        font-size: 1.4rem;
        font-weight: 800;
        color: var(--color-amarillo-poporopo);
        text-shadow: 0 0 8px rgba(255, 230, 0, 0.6);
    }

/* ---------- TABLAS MODERNAS ESTILO CYBER ---------- */

.tabla-contenedor {
    overflow-x: auto;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.15);
    border: 1px solid var(--color-borde);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(5, 12, 26, 0.6);
}

thead th {
    background: linear-gradient(135deg, #050d1a, #003366);
    color: var(--color-azul-principal);
    padding: 16px;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--color-azul-principal);
}

tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
    transition: background 0.2s ease;
}

tbody tr:hover {
    background: rgba(0, 240, 255, 0.15);
}

/* ---------- ADAPTACIÓN RESPONSIVA ---------- */

@media (max-width: 768px) {
    .barra-superior {
        flex-direction: column;
        align-items: flex-start;
    }

    .grilla-productos {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    }

    .contenedor {
        padding: 0 14px;
    }
}
