body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: radial-gradient(circle at top, #0b0f1a, #05060a);
    color: white;
    overflow-x: hidden;
    padding-top: 10px;
    animation: pageIn 0.6s ease-out;
    text-align: center;
}

@keyframes pageIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

html {
    scroll-behavior: smooth;
}

/* contenedor visual del header */
.titulo2 {
    display: inline-block;

    font-size: 40px;
    font-weight: 900;

    margin: 12px 0;

    background: linear-gradient(90deg, #a855f7, #60a5fa, #ff3b3b);
    background-size: 300% 300%;

    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    letter-spacing: 1px;
    animation:
        rgbText 4s ease infinite,
        ecoGlowInicio 2.5s ease-in-out infinite alternate;
}

@keyframes ecoGlowInicio {
    0% { filter: drop-shadow(0 0 8px rgba(168,85,247,0.4)); }
    100% { filter: drop-shadow(0 0 18px rgba(168,85,247,0.8)); }
}

/* ANIMACIÓN RGB TEXTO */
@keyframes rgbText {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}


/* menú centrado limpio */
.menu {
    display: inline-flex;
    justify-content: center;
    gap: 8px;

    margin: 10px 0 10px 20px;
    padding: 10px 12px;

    width: fit-content;

    background: rgba(20, 20, 35, 0.6);
    backdrop-filter: blur(12px);

    border-radius: 14px;
    position: relative;
    border: 1px solid rgba(168,85,247,0.6);
    box-shadow: 0 0 25px rgba(168,85,247,0.5);
    
}


body {
    text-align: center;
}

.menu a {
    position: relative;
    text-decoration: none;
    color: #cbd5e1;

    padding: 10px 14px;
    border-radius: 10px;

    transition: 0.25s ease;
    font-weight: 600;
    
}

.menu::before {
    background: linear-gradient(
        120deg,
        transparent,
        rgba(168,85,247,0.35),
        transparent
    );
}


.menu a:hover {
    color: white;
    transform: translateY(-2px);

    box-shadow:
        0 0 10px rgba(168,85,247,0.6),
        0 0 20px rgba(96,165,250,0.4);
        
}

/* LINEA ANIMADA ABAJO */
.menu a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 5px;

    width: 0%;
    height: 2px;

    background: linear-gradient(90deg, #a855f7, #60a5fa, #ff3b3b);

    transition: 0.3s ease;
    transform: translateX(-50%);
    
}

/* CRECE LA LINEA */
.menu a:hover::after {
    width: 70%;
}

/* ACTIVO */
.menu .active {
    background: linear-gradient(90deg, #a855f7, #60a5fa);
    color: white;
    box-shadow: 0 0 15px rgba(168,85,247,0.4);
    
}


.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 20px 6%;

    min-height: 55vh;
}


/* TEXTO */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
}

.hero-contenido {
    max-width: 420px;
    text-align: left;
}

.hero-contenido h1 {
    font-size: 38px;
    margin-bottom: 10px;
    font-weight: 800;
}

.hero-contenido h1 span {
    background: linear-gradient(90deg, #a855f7, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-contenido p {
    font-size: 16px;
    color: #cbd5e1;
    margin-bottom: 10px;
}

.hero img {
    max-width: 400px;
    width: 100%;
}

/* BOTÓN */
.btn {
    display: inline-block;
    padding: 12px 22px;

    background: linear-gradient(90deg, #a855f7, #60a5fa);
    color: white;

    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;

    transition: 0.25s ease;
}

.btn:hover {
    transform: translateY(-3px);
}

/* IMAGEN */
.hero-img {
    display: flex;
    justify-content: center;
    flex: 1;
    margin-left: -20px;
}

.hero-img img {
    width: 420px;
    max-width: 100%;

    border-radius: 16px;

    animation: floatHero 4s ease-in-out infinite,
               glowHero 3s ease-in-out infinite alternate;

    transition: 0.3s ease;
}

/* HOVER IMAGEN (BRILLO SUAVE) */
.hero-img img:hover {
    transform: scale(1.05);
}

/* ANIMACIÓN FLOTAR */
@keyframes floatHero {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

/* GLOW */
@keyframes glowHero {
    0% { filter: drop-shadow(0 0 10px #a855f7); }
    100% { filter: drop-shadow(0 0 20px #60a5fa); }
}

/* =======================
   INFO SECTION
======================= */
.info {
    padding: 20px 8%;
    text-align: center;
}

.info h2 {
    font-size: 28px;
    margin-bottom: 25px;
    color: white;
}

/* GRID DE CARDS */
.inicio-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
}

/* =======================
   CARDS PRO
======================= */
.card {
    width: 220px;
    padding: 15px;
    margin: 5px 0;

    background: rgba(20, 20, 35, 0.7);
    border: 1px solid rgba(255,255,255,0.08);

    border-radius: 14px;
    text-align: center;

    opacity: 0;
    transform: translateY(20px);

    animation: fadeUp 0.6s ease forwards;

    transition: 0.25s ease;
    box-shadow: 0 0 10px rgba(168,85,247,0.15);

    position: relative;
    overflow: hidden;
}


.card:hover {
    transform: translateY(-6px);
    border-color: rgba(168,85,247,0.5);
    box-shadow:
        0 0 15px rgba(168,85,247,0.4),
        0 0 25px rgba(96,165,250,0.25);

}

/* IMAGEN CARD */
.card img {
    width: 100%;
    height: 120px;
    object-fit: cover;

    border-radius: 10px;
    margin-bottom: 10px;
}

/* =======================
   ANIMACIÓN ENTRADA
======================= */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* delays (entrada una por una) */
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }

.card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;

    width: 200%;
    height: 200%;

    background: linear-gradient(
        120deg,
        transparent,
        rgba(168,85,247,0.15),
        rgba(96,165,250,0.15),
        transparent
    );

    transform: rotate(25deg);
    animation: shineCard 4s linear infinite;
}

/* ANIMACIÓN DEL BRILLO */
@keyframes shineCard {
    0% { transform: translateX(-100%) rotate(25deg); }
    100% { transform: translateX(100%) rotate(25deg); }
}

-------------------------------------------------------------------------
/* =======================
   TEMA ECONÓMICAS
======================= */

body.economicas {
    background: radial-gradient(circle at top, #071a10, #05060a);
}

/* TITULO VERDE RGB */
body.economicas .titulo2 i {
    color: #22c55e;
}

body.economicas .titulo2 {
     background: linear-gradient(90deg, #22c55e, #a3ff12);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    font-weight: 800;

    animation: ecoGlow 2.5s ease-in-out infinite alternate;
}

@keyframes ecoGlow {
    0% {
        filter: drop-shadow(0 0 5px #22c55e);
    }
    100% {
        filter: drop-shadow(0 0 18px #a3ff12);
    }
}

/* =======================
   CARDS ECONÓMICAS (CUADRADOS)
======================= */
/* SOLO ECONOMICAS */
body.economicas .eco-card {
    width: 200px;
    max-width: 210px;
    position: relative;
    overflow: hidden;

    background: #0f172a;
    border: 1px solid #1f2937;

    border-radius: 14px;

    padding: 14px;

    text-align: center;

    color: white;
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: ecoFadeIn 0.5s ease forwards;
}

@keyframes ecoFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body.economicas .tag {
    position: absolute;
    top: 10px;
    left: 10px;

    background: linear-gradient(135deg, #22c55e, #4ade80);
    color: #022c22;

    font-size: 11px;
    padding: 4px 8px;

    border-radius: 8px;

    font-weight: bold;
    z-index: 10; /* 🔥 importante */
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}


/* HOVER */
body.economicas .eco-card:hover {
    transform: scale(1.08);
    box-shadow: 
        0 0 10px #22c55e,
        0 0 20px #4ade80,
        0 0 35px #86efac;
    border-color: #22c55e;
    transform: scale(1.08) translateY(-5px);
    z-index: 5;
}

/* IMAGEN */
body.economicas .eco-card img {
    width: 100%;
    height: 140px;
    transition: none;
    transform: scale(1.08);

    object-fit: contain;
    
    border-radius: 10px;
    display: block;
    margin: 0 auto 10px;
}

body.economicas .eco-card:hover img {
    transform: scale(1.15);

    box-shadow: 
        0 0 10px #22c55e,
        0 0 20px #4ade80,
        0 0 30px #86efac;
}


body.economicas .carrito {
    margin-top: 8px;

    width: 100%;
    padding: 10px;

    background: #22c55e;
    color: #022c22;

    border: none;
    border-radius: 8px;

    font-weight: bold;

    cursor: pointer;
    transition: 0.2s;
}

/* hover botón */
body.economicas .carrito:hover {
    background: #22c55e;
    color: black;

    box-shadow: 0 0 12px rgba(34,197,94,0.5);
    transform: scale(1.05);
}

/* MENÚ VERDE */
body.economicas .menu .active {
    background: linear-gradient(90deg, #22c55e, #a3ff12);
    color: black;
    box-shadow: 0 0 15px rgba(34,197,94,0.4);
}

body.economicas .menu {
    border: 1px solid rgba(34,197,94,0.3);
    box-shadow: 0 0 15px rgba(34,197,94,0.1);
}

body.economicas .contenedor {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    gap: 20px;
    padding: 30px 8%;
}

body.economicas .eco-card:nth-child(1) { animation-delay: 0.1s; }
body.economicas .eco-card:nth-child(2) { animation-delay: 0.2s; }
body.economicas .eco-card:nth-child(3) { animation-delay: 0.3s; }
body.economicas .eco-card:nth-child(4) { animation-delay: 0.4s; }
body.economicas .eco-card:nth-child(5) { animation-delay: 0.5s; }
body.economicas .eco-card:nth-child(6) { animation-delay: 0.6s; }
body.economicas .eco-card:nth-child(7) { animation-delay: 0.7s; }
body.economicas .eco-card:nth-child(8) { animation-delay: 0.8s; }
body.economicas .eco-card:nth-child(9) { animation-delay: 0.9s; }
body.economicas .eco-card:nth-child(10) { animation-delay: 1.0s; }

body.economicas .eco-card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;

    width: 200%;
    height: 200%;

    background: linear-gradient(
        120deg,
        transparent,
        rgba(34,197,94,0.08),
        transparent
    );

    transform: rotate(25deg);
    animation: ecoShine 5s linear infinite;
}

@keyframes ecoShine {
    0% { transform: translateX(-100%) rotate(25deg); }
    100% { transform: translateX(100%) rotate(25deg); }
}

body.economicas .eco-card span {
    display: block;
    margin: 6px 0;

    font-size: 20px;
    font-weight: bold;

     color: #4ade80;
}


/* texto */
body.economicas .eco-card h3 {
    font-size: 15px;
    margin: 5px 0;
}

body.economicas .eco-card p {
    font-size: 12px;
    color: #9ca3af;
}

/* boton click */
body.economicas .carrito:active {
    transform: scale(0.95);
}

body.economicas .eco-card h3 {
    font-size: 15px;
    margin: 6px 0;
}

body.economicas .eco-card p {
    font-size: 12px;
    color: #94a3b8;
}

body.economicas .eco-card:hover {
    transform: translateY(-5px);
}


/* =======================
   CONTENEDOR GAMING
======================= */
body.gaming .contenedor {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    gap: 22px;
    padding: 30px 8%;
}

/* =======================
   CARD GAMING
======================= */
.gaming-card {
    width: 210px;
    position: relative;

    background: #0b0b0f;
    border: 1px solid #1f1f1f;

    border-radius: 14px;

    padding: 12px;
    text-align: center;

    transition: 0.3s ease;
}

/* =======================
   HOVER PRO 🔥
======================= */
.gaming-card:hover {
    transform: scale(1.08) translateY(-5px);

    box-shadow: 
        0 0 10px #ff3b3b,
        0 0 25px #ff0000,
        0 0 40px rgba(255,0,0,0.6);

    border-color: #ff3b3b;
}


/* =======================
   IMAGEN
======================= */
.gaming-card img {
    width: 100%;
    height: 140px;

    object-fit: contain;

    border-radius: 10px;
}

/* =======================
   TEXTO
======================= */
.gaming-card h3 {
    font-size: 15px;
    margin: 6px 0;
}

.gaming-card p {
    font-size: 12px;
    color: #9ca3af;
}



/* =======================
   PRECIO
======================= */
.gaming-card span {
    display: block;
    margin-top: 6px;

    font-size: 18px;
    font-weight: bold;

    color: #ff3b3b;
}

/* =======================
   BOTÓN GAMING
======================= */
body.gaming .carrito {
    margin-top: 8px;
    width: 100%;
    padding: 10px;

    background: #ff3b3b;
    color: white;

    border: none;
    border-radius: 8px;

    font-weight: bold;
    cursor: pointer;

    transition: 0.2s;
}

body.gaming .carrito:hover {
    background: #ff0000;
}

body.gaming .carrito:active {
    transform: scale(0.95);
}

body.gaming .menu {
    background: rgba(20, 0, 0, 0.6);
    border: 1px solid rgba(255, 0, 0, 0.25);
    box-shadow: 0 0 25px rgba(255,0,0,0.15);
    position: relative;
    overflow: hidden;
}

body.gaming .menu a {
    color: #fca5a5;
    position: relative;
}

body.gaming .menu a:hover {
    background: #ff3b3b;
    color: white;
    box-shadow: 0 0 10px #ff0000;
}

body.gaming .menu .active {
    background: linear-gradient(90deg, #ff0000, #ff3b3b);
    color: white;

    box-shadow: 0 0 15px rgba(255,0,0,0.6);
}

body.gaming .titulo2 i {
    color: #ff3b3b;
}

body.gaming .menu::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;

    width: 100%;
    height: 100%;

    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,0,0,0.2),
        transparent
    );

    animation: slideGlow 3s infinite;
}

@keyframes slideGlow {
    0% { left: -100%; }
    100% { left: 100%; }
}

body.gaming .tag-gaming {
    position: absolute;
    top: 10px;
    left: 10px;

    background: linear-gradient(135deg, #ff0000, #ff3b3b);
    color: white;

    font-size: 11px;
    padding: 4px 8px;

    border-radius: 6px;

    font-weight: bold;

    z-index: 10;
}

body.inicio .menu {
    border: 1px solid rgba(168,85,247,0.6);
    box-shadow: 0 0 25px rgba(168,85,247,0.5);
}

body.economicas .menu {
    border: 1px solid rgba(34,197,94,0.6);
    box-shadow: 0 0 25px rgba(34,197,94,0.5);
}

body.laptops .menu {
    border: 1px solid rgba(59,130,246,0.6);
    box-shadow: 0 0 25px rgba(59,130,246,0.5);
}

body.componentes .menu {
    border: 1px solid rgba(251,146,60,0.6);
    box-shadow: 0 0 25px rgba(251,146,60,0.5);
}

body.gaming .titulo2 {
    animation:
        rgbText 4s ease infinite,
        ecoGlowGame 2.5s ease-in-out infinite alternate;
}

@keyframes ecoGlowGame {
    0% { filter: drop-shadow(0 0 8px rgba(255,59,59,0.4)); }
    100% { filter: drop-shadow(0 0 20px rgba(255,0,0,0.9)); }
}

body.gaming .titulo2 {
    animation:
        rgbText 4s ease infinite,
        ecoGlowGame 2.5s ease-in-out infinite alternate;
}

@keyframes ecoGlowGame {
    0% { filter: drop-shadow(0 0 8px rgba(255,59,59,0.4)); }
    100% { filter: drop-shadow(0 0 20px rgba(255,0,0,0.9)); }
}

body.componentes .titulo2 {
    animation:
        rgbText 4s ease infinite,
        ecoGlowComp 2.5s ease-in-out infinite alternate;
}

@keyframes ecoGlowComp {
    0% { filter: drop-shadow(0 0 8px rgba(251,146,60,0.4)); }
    100% { filter: drop-shadow(0 0 18px rgba(251,146,60,0.8)); }
}

body.laptops .titulo2 {
    animation:
        rgbText 4s ease infinite,
        ecoGlowLaptop 2.5s ease-in-out infinite alternate;
}

@keyframes ecoGlowLaptop {
    0% { filter: drop-shadow(0 0 8px rgba(59,130,246,0.4)); }
    100% { filter: drop-shadow(0 0 18px rgba(59,130,246,0.8)); }
}

body.laptops .titulo2 {
    background: none !important;
    -webkit-text-fill-color: unset !important;

    color: #3b82f6;

    text-shadow: 0 0 15px rgba(59,130,246,0.6);
}

body.componentes .titulo2 {
    background: none !important;
    -webkit-text-fill-color: unset !important;

    color: #fb923c;

    text-shadow: 0 0 15px rgba(251,146,60,0.6);
}

body.gaming .titulo2 {
    background: none !important;
    -webkit-text-fill-color: unset !important;

    color: #ff3b3b;

    text-shadow: 0 0 18px rgba(255,59,59,0.7);
}

.menu {
    position: relative;
    overflow: hidden;
}

@keyframes menuShine {
    0% { left: -120%; }
    100% { left: 120%; }
}


.menu::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;

    width: 60%;
    height: 100%;

    transform: skewX(-20deg);
    animation: menuShine 3.5s infinite;
    opacity: 0.6;
}


body.economicas .menu::before {
    background: linear-gradient(
        120deg,
        transparent,
        rgba(34,197,94,0.35),
        transparent
    );
}

body.laptops .menu::before {
    background: linear-gradient(
        120deg,
        transparent,
        rgba(59,130,246,0.35),
        transparent
    );
}

body.componentes .menu::before {
    background: linear-gradient(
        120deg,
        transparent,
        rgba(251,146,60,0.35),
        transparent
    );
}


body.gaming .gaming-card {
    opacity: 0;
    transform: translateY(25px) scale(0.95);
    animation: gamingEnter 0.6s ease forwards;
}

@keyframes gamingEnter {
    from {
        opacity: 0;
        transform: translateY(25px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

body.gaming .gaming-card:nth-child(1) { animation-delay: 0.1s; }
body.gaming .gaming-card:nth-child(2) { animation-delay: 0.2s; }
body.gaming .gaming-card:nth-child(3) { animation-delay: 0.3s; }
body.gaming .gaming-card:nth-child(4) { animation-delay: 0.4s; }
body.gaming .gaming-card:nth-child(5) { animation-delay: 0.5s; }
body.gaming .gaming-card:nth-child(6) { animation-delay: 0.6s; }
body.gaming .gaming-card:nth-child(7) { animation-delay: 0.7s; }
body.gaming .gaming-card:nth-child(8) { animation-delay: 0.8s; }
body.gaming .gaming-card:nth-child(9) { animation-delay: 0.9s; }
body.gaming .gaming-card:nth-child(10) { animation-delay: 1.0s; }



----------------Laptop-----------------------
/* =======================
   LAPTOPS FIX FINAL
======================= */


/* =======================
   HOVER PRO 🔵
======================= */
body.laptops .laptop-card:hover {
    transform: scale(1.08) translateY(-5px);

    box-shadow: 
        0 0 10px #3b82f6,
        0 0 25px #2563eb,
        0 0 40px rgba(59,130,246,0.5);

    border-color: #3b82f6;
}

/* =======================
   IMG BOX (IMPORTANTE)
======================= */
body.laptops .img-box {
    position: relative;
    overflow: hidden;

    border-radius: 10px;
}

/* =======================
   IMAGEN
======================= */
body.laptops .img-box img {
    width: 100%;
    height: 140px;

    object-fit: contain;

    transition: 0.3s ease;
}

/* =======================
   EFECTO IMAGEN (suave)
======================= */
body.laptops .laptop-card:hover .img-box img {
    transform: scale(1.05);
}

/* =======================
   TAG (LAPTOP 💎)
======================= */
body.laptops .tag {
    position: absolute;
    top: 8px;
    left: 8px;

    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;

    font-size: 11px;
    font-weight: bold;

    padding: 4px 8px;
    border-radius: 6px;

    box-shadow: 0 0 10px rgba(59,130,246,0.4);

    z-index: 2;
}

/* =======================
   TEXTO
======================= */
body.laptops .laptop-card h3 {
    font-size: 15px;
    margin: 8px 0 4px;
}

body.laptops .laptop-card p {
    font-size: 12px;
    color: #9ca3af;
}

body.laptops .laptop-card {
    position: relative;
    overflow: hidden; /* 🔥 CLAVE: evita que el brillo se salga */

    width: 220px;
    background: #0b0f1a;
    border: 1px solid rgba(59,130,246,0.2);
    border-radius: 14px;

    padding: 12px;
    text-align: center;

    transition: 0.25s ease;
}
/* =======================
   PRECIO
======================= */
body.laptops .laptop-card span {
    display: block;
    margin-top: 6px;

    font-size: 18px;
    font-weight: bold;

    color: #3b82f6;
}

/* =======================
   BOTÓN
======================= */
body.laptops .carrito {
    margin-top: 10px;
    width: 100%;
    padding: 10px;

    background: #3b82f6;
    color: white;

    border: none;
    border-radius: 8px;

    font-weight: bold;
    cursor: pointer;

    transition: 0.2s;
}

body.laptops .carrito:hover {
    background: #2563eb;
    transform: scale(1.06);
}

body.gaming .contenedor,
body.laptops .contenedor {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    gap: 30px; /* 🔥 más espacio real */
    padding: 40px 8%;
}

body.laptops .laptop-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;

    width: 50%;
    height: 100%;

    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.12),
        transparent
    );

    transform: skewX(-20deg);

    pointer-events: none; /* 🔥 evita bugs de hover */
}

body.laptops .laptop-card:hover::before {
    left: 120%;
    transition: 0.6s ease;
}

body.laptops .laptop-card:hover {
    transform: scale(1.05);

    border-color: rgba(59,130,246,0.9);

    box-shadow:
        0 0 10px rgba(59,130,246,0.6),
        0 0 22px rgba(59,130,246,0.45),
        0 0 38px rgba(59,130,246,0.25);
}

body.laptops .laptop-card:hover {
    box-shadow:
        0 0 12px rgba(59,130,246,0.65),
        0 0 26px rgba(59,130,246,0.5),
        0 0 45px rgba(59,130,246,0.3);
}


body.laptops .laptop-card:hover::before {
    animation: shineMove 0.8s ease;
}

@keyframes shineMove {
    0% { left: -120%; }
    100% { left: 120%; }
}


body.laptops .laptop-card::after {
    position: absolute;
    inset: 0;
     content: "";
    flex: 0 0 460px; /* 2 cards = 2 x 220px */

    border-radius: 14px;
    pointer-events: none;

    box-shadow: 0 0 0 rgba(59, 130, 246, 0);
    transition: 0.3s ease;
}

body.laptops .laptop-card:hover::after {
    box-shadow: 0 0 18px rgba(59, 130, 246, 0.2);
}



.gaming-card {
    position: relative;
    overflow: hidden;

    border: 1px solid rgba(255, 59, 59, 0.15);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.gaming-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;

    width: 60%;
    height: 100%;

    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.15),
        transparent
    );

    transform: skewX(-20deg);
}

.gaming-card:hover::before {
    animation: shineMove 0.7s ease;
}

.laptop-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.laptop-card:hover {
    transform: scale(1.06);

    box-shadow:
        0 0 8px #3b82f6,
        0 0 18px rgba(59,130,246,0.6),
        0 0 35px rgba(59,130,246,0.4);

    animation: cardPop 0.35s ease;
}

body.laptops .menu {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(59, 130, 246, 0.25);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}


body.laptops .menu .active {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    color: white;

    box-shadow: 0 0 12px rgba(59,130,246,0.4);
}

body.laptops .menu a:hover {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;

    transform: translateY(-2px);
}


/* =======================
   FONDO
======================= */
body.componentes {
    background: #070a12;
    color: white;
}

/* =======================
   MENU (simple pro)
======================= */
body.componentes .menu {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(249, 115, 22, 0.2);
    backdrop-filter: blur(8px);
}

body.componentes .menu .active {
    background: linear-gradient(90deg, #f97316, #fb923c);
    color: white;
}

/* =======================
   GRID BIEN ACOMODADO
======================= */
body.componentes .contenedor {
    display: flex;
    flex-direction: column;
    gap: 20px;

    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}


/* =======================
   CARD LIMPIA Y CENTRADA
======================= */
body.componentes .comp-card {
    display: flex;
    align-items: center;
    gap: 20px;

    width: 100%;

    background: #0b0f1a;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;

    padding: 18px;

    transition: transform 0.25s ease, box-shadow 0.25s ease;
}


body.componentes .comp-card::before {
    content: "";
    position: absolute;
    inset: -2px;

    background: linear-gradient(
        90deg,
        #f97316,
        #22c55e,
        #3b82f6,
        #a855f7,
        #f97316
    );

    background-size: 300% 300%;

    z-index: 0;

    animation: rgbMove 4s linear infinite;

    opacity: 0.6;

    filter: blur(6px);
}
    body.componentes .comp-card::after {
    content: "";
    position: absolute;
    inset: 2px;

    background: #0b0f1a;
    border-radius: 16px;

    z-index: 1;
}

body.componentes .comp-card img {
    width: 140px;
    height: 110px;
    object-fit: contain;

    flex-shrink: 0;
}



body.componentes .comp-card * {
    position: relative;
    z-index: 2;
}

/* hover suave */
body.componentes .comp-card:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 30px rgba(249,115,22,0.18);
}

/* TEXTO */
body.componentes .comp-card h3 {
    margin: 0;
    font-size: 16px;
}

body.componentes .comp-card p {
    margin: 4px 0;
    font-size: 13px;
    color: #9ca3af;
}

body.componentes .comp-card span {
    display: block;
    margin-top: 6px;
    font-weight: bold;
    color: #f97316;
}

/* texto */
body.componentes .comp-card h3 {
    margin: 0;
    font-size: 18px;
}

body.componentes .comp-card p {
    margin: 4px 0;
    font-size: 13px;
    color: #9ca3af;
}

body.componentes .comp-card span {
    display: block;
    margin-top: 6px;

    font-size: 16px;
    font-weight: bold;
    color: #f97316;
}

/* botón */
body.componentes .carrito {
    margin-left: auto;

    padding: 10px 16px;
    border: none;
    border-radius: 10px;

    background: linear-gradient(90deg, #f97316, #fb923c);
    color: white;

    cursor: pointer;

    transition: 0.2s ease;
}

body.componentes .carrito:hover {
    transform: scale(1.05);
}

/* ANIMACIÓN RGB */
@keyframes rgbMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
/* =======================
   CONTACTO LIMPIO PRO
======================= */
body.componentes .contacto-modern {
    width: 420px;
    margin: 60px auto;

    padding: 25px;

    background: #0b0f1a;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;

    text-align: center;
}

/* formulario */
body.componentes .formulario-modern {
    display: flex;
    flex-direction: column;
    gap: 12px;

    margin-top: 15px;
}

/* inputs */
body.componentes .formulario-modern input,
body.componentes .formulario-modern textarea {
    padding: 12px;

    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);

    background: #111827;
    color: white;

    outline: none;
}

/* botón contacto */
body.componentes .formulario-modern button {
    padding: 12px;

    border: none;
    border-radius: 10px;

    background: #f97316;
    color: white;

    cursor: pointer;
}

body.laptops .laptop-card {
    animation: fadeUp 0.6s ease both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body.laptops .laptop-card:nth-child(1) { animation-delay: 0.1s; }
body.laptops .laptop-card:nth-child(2) { animation-delay: 0.2s; }
body.laptops .laptop-card:nth-child(3) { animation-delay: 0.3s; }
body.laptops .laptop-card:nth-child(4) { animation-delay: 0.4s; }
body.laptops .laptop-card:nth-child(5) { animation-delay: 0.5s; }
body.laptops .laptop-card:nth-child(6) { animation-delay: 0.6s; }
body.laptops .laptop-card:nth-child(7) { animation-delay: 0.7s; }
body.laptops .laptop-card:nth-child(8) { animation-delay: 0.8s; }
body.laptops .laptop-card:nth-child(9) { animation-delay: 0.9s; }
body.laptops .laptop-card:nth-child(10) { animation-delay: 1.0s; }


body.componentes .card:nth-child(1) { animation-delay: 0.1s; }
body.componentes .card:nth-child(2) { animation-delay: 0.2s; }
body.componentes .card:nth-child(3) { animation-delay: 0.3s; }
body.componentes .card:nth-child(4) { animation-delay: 0.4s; }
body.componentes .card:nth-child(5) { animation-delay: 0.5s; }
body.componentes .card:nth-child(6) { animation-delay: 0.6s; }
body.componentes .card:nth-child(7) { animation-delay: 0.7s; }
body.componentes .card:nth-child(8) { animation-delay: 0.8s; }
body.componentes .card:nth-child(9) { animation-delay: 0.9s; }
body.componentes .card:nth-child(10) { animation-delay: 1.0s; }



body.componentes .comp-card {
    position: relative;
    overflow: hidden;

    display: flex;
    align-items: center;
    gap: 20px;

    width: 100%;

    background: #0b0f1a;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;

    padding: 18px;

    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* hover con “vida” */
body.componentes .comp-card:hover {
    transform: scale(1.03) translateY(-4px);

    box-shadow:
        0 0 10px rgba(249,115,22,0.25),
        0 15px 35px rgba(0,0,0,0.4);
}

/* =======================
   RGB LATERAL SUAVE
======================= */
body.componentes .comp-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;

    width: 4px;
    height: 100%;

    background: linear-gradient(
        180deg,
        #f97316,
        #22c55e,
        #3b82f6,
        #a855f7,
        #f97316
    );

    background-size: 300% 300%;

    animation: rgbFlow 4s linear infinite;

    opacity: 0.8;
}

/* brillo interior suave */
body.componentes .comp-card::after {
    content: "";
    position: absolute;
    inset: 0;

    background: radial-gradient(
        circle at left,
        rgba(249,115,22,0.08),
        transparent 60%
    );

    opacity: 0;
    transition: 0.3s ease;
}

/* activar glow al hover */
body.componentes .comp-card:hover::after {
    opacity: 1;
}

/* =======================
   IMAGEN
======================= */
body.componentes .comp-card img {
    width: 140px;
    height: 110px;
    object-fit: contain;

    transition: transform 0.3s ease;
}

body.componentes .comp-card:hover img {
    transform: scale(1.05);
}

/* =======================
   BOTÓN VIDA
======================= */
body.componentes .carrito {
    margin-left: auto;

    padding: 10px 16px;
    border: none;
    border-radius: 10px;

    background: linear-gradient(90deg, #f97316, #fb923c);
    color: white;

    cursor: pointer;

    transition: 0.2s ease;
}

body.componentes .carrito:hover {
    transform: scale(1.05);
}

/* =======================
   ANIMACIÓN RGB
======================= */
@keyframes rgbFlow {
    0% { background-position: 0% 0%; }
    50% { background-position: 0% 100%; }
    100% { background-position: 0% 0%; }
}



body.componentes .contacto-modern {
    position: relative;
    overflow: hidden;

    width: 420px;
    margin: 60px auto;

    padding: 30px;

    background: #0b0f1a;
    border-radius: 16px;

    border: 1px solid rgba(255,255,255,0.08);

    text-align: center;
}

/* RGB lados */
body.componentes .contacto-modern::before,
body.componentes .contacto-modern::after {
    content: "";
    position: absolute;
    top: 0;

    width: 3px;
    height: 100%;

    background: linear-gradient(
        180deg,
        #f97316,
        #22c55e,
        #3b82f6,
        #a855f7,
        #f97316
    );

    background-size: 300% 300%;

    animation: rgbFlow 4s linear infinite;
}

body.componentes .contacto-modern::before {
    left: 0;
}

body.componentes .contacto-modern::after {
    right: 0;
}

#carrito-burbuja {
    position: fixed;
    bottom: 22px;
    right: 22px;

    width: 65px;
    height: 65px;
    border-radius: 50%;

    background: #0a0a0a;
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    z-index: 9999;

    overflow: visible; /* 🔥 IMPORTANTE */
}

@keyframes rgbMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}


#carrito-burbuja::before {
    content: "";
    position: absolute;
    inset: -40%;

    background: radial-gradient(
        circle,
        rgba(255,255,255,0.18),
        transparent 60%
    );

    animation: luzFlotante 6s ease-in-out infinite;

    z-index: 0;
}

@keyframes luzFlotante {
    0% {
        transform: translate(-10%, -10%);
    }
    25% {
        transform: translate(20%, -5%);
    }
    50% {
        transform: translate(10%, 25%);
    }
    75% {
        transform: translate(-15%, 10%);
    }
    100% {
        transform: translate(-10%, -10%);
    }
}


#carrito-burbuja:hover {
    transform: scale(1.1);
}

/* contador limpio */
#contador-carrito {
    position: absolute;
    top: -6px;
    right: -6px;

    background: red;
    color: white;
    font-size: 12px;
    padding: 5px 8px;

    border-radius: 50%;
    font-weight: bold;

    box-shadow: 0 0 10px red;
}

#carrito-burbuja:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.5);
}



/* CONTADOR */
#contador-carrito {
    position: absolute;
    top: -5px;
    right: -5px;
    background: red;
    color: white;
    font-size: 12px;
    padding: 4px 7px;
    border-radius: 50%;
}

#carrito-panel {
    position: fixed;
    bottom: 90px;
    right: 22px;
    width: 360px;
    max-height: 450px;
    overflow-y: auto;

    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(14px);

    border-radius: 18px;
    padding: 18px;

    color: white;
    display: none;

    z-index: 9998;

    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);

    transform: translateY(20px);
    opacity: 0;
    transition: all 0.25s ease;
}

#carrito-panel.show {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

#carrito-panel h3 {
    position: relative;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 14px;
    color: #fff;
    text-transform: uppercase;
    padding-bottom: 8px;
}

#carrito-panel h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;

    width: 100%; /* 🔥 ahora ocupa todo el título */
    height: 2px;

    background: linear-gradient(
        90deg,
        rgba(255,255,255,0.8),
        rgba(255,255,255,0.1)
    );

    border-radius: 2px;
}



#carrito-panel p {
    margin-top: 12px;
    padding-top: 10px;

    border-top: 1px solid rgba(255,255,255,0.1);

    font-size: 15px;
    font-weight: 700;

    color: #fff;

    text-shadow: 0 0 8px rgba(255,255,255,0.25);
}



.item-carrito {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 12px;
    margin-bottom: 10px;

    border-radius: 14px;

    background: rgba(255,255,255,0.06);

    transition: 0.25s;

    font-family: "Segoe UI", sans-serif;
}

.item-carrito:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-2px);
}

/* botones pequeños */
.item-carrito button {
    border: none;
    background: #111;
    color: white;
    padding: 4px 7px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
}

.item-carrito button:hover {
    background: #333;
}

.item-carrito button:hover {
    background: #ddd;
}

.item-carrito div {
    flex: 1;
}



.btn-finalizar {
    width: 100%;
    margin-top: 12px;
    padding: 12px;

    background: linear-gradient(135deg, #111, #333);
    color: white;

    border: none;
    border-radius: 10px;

    font-weight: bold;
    cursor: pointer;

    transition: 0.25s;
}

.btn-finalizar:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.img-carrito {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
}

.nombre-producto {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.precio-producto {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    margin-top: 2px;
}



#historial-burbuja {
    position: fixed;
    bottom: 22px;
    left: 22px;

    width: 65px;
    height: 65px;

    border-radius: 50%;
    background: #0a0a0a;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    z-index: 9999;

    box-shadow: 0 10px 30px rgba(0,0,0,0.6);

    overflow: hidden; /* 🔥 importante */
}


#historial-burbuja:hover {
    transform: scale(1.08);
}

#historial-burbuja::before {
    content: "";
    position: absolute;
    inset: -40%;

    background: radial-gradient(
        circle,
        rgba(255,255,255,0.15),
        transparent 60%
    );

    animation: luzFlotante 6s ease-in-out infinite;

    z-index: 0;
}

#historial-panel {
    position: fixed;
    bottom: 90px;
    left: 22px;

    width: 320px;
    max-height: 420px;
    overflow-y: auto;

    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(12px);

    color: white;

    border-radius: 15px;
    padding: 15px;

    z-index: 9998;

    display: none;

    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: 0.25s ease;
}

#historial-panel.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}


.hist-item {
    position: relative;
    padding-left: 20px;
    margin-bottom: 15px;
    border-left: 2px solid rgba(255,255,255,0.2);
}

.hist-item .linea {
    position: absolute;
    left: -6px;
    top: 5px;

    width: 10px;
    height: 10px;
    border-radius: 50%;

    background: white;
}

.hist-item .contenido {
    padding-left: 10px;
}

.hist-item p {
    margin: 0;
    font-size: 12px;
    color: #aaa;
}

.hist-item strong {
    font-size: 14px;
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}