@layer EstiloEspecial {
    /* Este bloque se procesa como una unidad lógica distinta */
    
    :root {
        --borde-magico: 2px dashed #1c609f;
    }

    /* Estilo de "Modo Enfoque" para las secciones */
    .section {
        border: var(--borde-magico) !important;
        background-color: rgba(0, 0, 0, 0.8) !important; /* Fondo más oscuro */
        position: relative;
    }

    /* Añade un adorno visual único en la esquina de cada sección */
    .section::before {
        content: "*";
        position: absolute;
        top: 10px;
        right: 10px;
        color: #00f2ff;
        font-size: 20px;
    }

    /* Un estilo de texto con degradado solo para los subtítulos */
    h3 {
        background: linear-gradient(to right, #00f2ff, #ff00ff);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        font-weight: 900;
    }

    /* Animación de entrada única para este estilo */
    .page {
        animation: slideIn 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    }

    @keyframes slideIn {
        from { opacity: 0; transform: translateX(-50px); }
        to { opacity: 1; transform: translateX(0); }
    }
}
    body
  {
    background-image: url("https://img.freepik.com/vector-gratis/fondo-empresarial-moderno-diseno-tecnologia-digital_1361-3299.jpg?semt=ais_hybrid&w=740&q=80") !important;
    background-size: cover !important;
    background-attachment: fixed !important;
    min-height: 100vh !important;
    margin: 0;
  }
  a, button, input, [role="button"] 


        * { margin: 0; padding: 0; box-sizing: border-box; }

        html {
            scroll-behavior: smooth;
            overflow-y: scroll;
        }

        body {
            min-height: 100vh;
            font-family: system-ui, -apple-system, sans-serif;
            background-color: #245db3;
            color: #fafafa;
            line-height: 1.6;
        }

        .top-bar {
            background: linear-gradient(90deg, #1c0de6, #05bdae);
            color: rgb(7, 255, 214);
            text-align: center;
            padding: 2rem 1rem;
            font-size: 1.8rem;
            font-weight: bold;
        }

        .navbar {
            background-color: #48cff5;
            color: white;
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: 0 4px 12px rgb(10, 36, 237);
        }

        .nav-container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

        .nav-list {
            display: flex;
            list-style: none;
            justify-content: center;
            gap: 2.5rem;
        }

        .nav-list li a {
            display: block;
            padding: 1.2rem 0.8rem;
            color: #ffffff;
            text-decoration: none;
            font-weight: 500;
            transition: all 0.25s ease;
        }

        .nav-list li a:hover,
        .nav-list li a.active {
            color: rgb(4, 252, 244);
            background-color: #289fee;
            border-radius: 6px 6px 0 0;
        }

        .content {
            max-width: 1100px;
            margin: 3rem auto;
            padding: 0 2rem;
        }

        .section {
            background: rgb(5, 151, 231);
            padding: 2.5rem;
            margin-bottom: 2.5rem;
            border-radius: 12px;
            box-shadow: 0 4px 15px rgb(0, 107, 246);
        }

        h2 { color: #ebe9e9d5; margin-bottom: 1.2rem; }

        .dummy-text {
            height: 100vh;
            background: linear-gradient(to bottom, #464cfa, #0a9ff6);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 3rem;
            color: #6b7280;
            border-radius: 12px;
            margin: 2rem 0;
        }

        /* Contenedor alto que retrasa la aparición + fuerza alineación derecha */
        .back-to-top-wrapper {
            height: 120vh; /* Ajusta para controlar cuándo aparece */
            width: 100%;
            display: flex;
            justify-content: flex-end; /* Fuerza todo a la derecha */
            align-items: flex-end;
        }

        /* Botón sticky alineado a la derecha */
        .scroll-top-btn {
            position: sticky;
            bottom: 30px;
            right: 30px;
            width: 60px;
            height: 60px;
            background-color: #3b82f6;
            color: white;
            border: none;
            border-radius: 50%;
            font-size: 1.9rem;
            cursor: pointer;
            box-shadow: 0 6px 16px rgba(0,0,0,0.25);
            transition: all 0.3s ease;
            z-index: 999;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
        }

        .scroll-top-btn:hover {
            background-color: #1d4ed8;
            transform: translateY(-6px);
            box-shadow: 0 12px 24px rgba(0,0,0,0.35);
        }

        @media (max-width: 600px) {
            .scroll-top-btn {
                bottom: 20px;
                right: 20px;
                width: 55px;
                height: 55px;
                font-size: 1.7rem;
            }
            .back-to-top-wrapper {
                justify-content: flex-end;
            }
        }

        @import url("index.css");
        @import url("libreria.css");
        @import url("colecciones.css");
        @import url("juegos.css");
        @import url("ayuda.css");

body{
    background-color: black;
}

        .producto img{
            width: 240px;
            height: auto;
            max-width: 90%;
            border-radius: 10px;
        }
        
  /* 1. TIPOGRAFÍA CON EFECTO DE GRADIENTE */
  p {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.6;
    /* Este truco hace que el texto tenga un degradado */
    background: linear-gradient(90.18deg, #c9c5fe 0.15%, #8bbdf6 99.85%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 25px;
  }

  /* 2. CONTENEDOR CON "NEUMORPHISM" MODERNO */
  .contenedor {
    display: flex;
    gap: 40px;
    padding: 50px;
    background: #e0e0e0; /* Color base para que se note el relieve */
    min-height: 400px;
  }

  /* 3. TARJETAS CON EFECTO DE PROFUNDIDAD (Sombra Interna y Externa) */
  .item-nuevo {
    width: 250px;
    height: 250px;
    background: #e0e0e0;
    border-radius: 50px;
    /* Doble sombra para crear el efecto de relieve 3D */
    box-shadow: 20px 20px 60px #bebebe,
               -20px -20px 60px #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
  }

  /* 4. EFECTO DE BOTÓN PRESIONADO AL HACER HOVER */
  .item-nuevo:hover {
    box-shadow: inset 20px 20px 60px #bebebe,
                inset -20px -20px 60px #ffffff;
    transform: scale(0.98);
  }

  /* 5. DECORACIÓN: BORDES ANIMADOS */
  .borde-magico {
    border: 2px solid transparent;
    border-image: linear-gradient(to right, #00f2fe, #4facfe);
    border-image-slice: 1;
    padding: 15px;
  }
/* 1. Resaltar el foco para navegación por teclado */
button:focus, a:focus {
   outline: 3px solid #005fcc;
   outline-offset: 2px;
}

/* 2. Asegurar contraste en botones */
.boton-accesible {
   background-color: #222;
   color: #fff;
   padding: 10px 20px;
   border: none;
   cursor: pointer;
   font-weight: bold;
}

/* 3. Evitar texto justificado (es difícil de leer para personas con dislexia) */
p {
   text-align: left;
}
.alto-contraste {
   background-color: #000 !important;
   color: #fff !important;
}

.alto-contraste a {
   color: #ffff00 !important; /* Enlaces amarillos para resaltar */
}
.menu-navegacion {
   display: flex;
   list-style: none;
   gap: 2rem;
   padding: 0;
}

.menu-navegacion a {
   text-decoration: none;
   color: #004a99;
   font-weight: 600;
   padding: 10px;
   border-bottom: 2px solid transparent;
   transition: border-color 0.3s;
}

/* Indicador visual claro al pasar el mouse o usar teclado */
.menu-navegacion a:hover, 
.menu-navegacion a:focus {
   border-bottom: 2px solid #004a99;
   outline: none; /* Quitamos el default para poner uno mejor */
   background-color: #f0f7ff;
}
.nav-link {
   text-decoration: none;
   color: #333;
   position: relative;
   transition: color 0.3s;
}

.nav-link::after {
   content: '';
   position: absolute;
   width: 0;
   height: 2px;
   bottom: -5px;
   left: 0;
   background-color: #005fcc;
   /* Transición para la línea */
   transition: width 0.3s ease-in-out;
}

.nav-link:hover::after,
.nav-link:focus::after {
   width: 100%;
}
:root {
    --color-primario: #005fcc;
    --color-primario-dark: #003d82;
    --sombra-suave: 0 4px 6px rgba(0,0,0,0.1);
    --sombra-elevada: 0 10px 25px rgba(0, 95, 204, 0.3);
}

/* 1. Estilo base de los botones del menú */
.menu-btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    border-radius: 8px; /* Bordes redondeados para un look moderno */
    
    /* Transiciones: controlamos qué cambia y cómo */
    transition: 
        background-color 0.25s ease, 
        color 0.25s ease, 
        transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), /* Efecto elástico */
        box-shadow 0.25s ease;
    
    transform: translateY(0);
}

/* 2. Feedback al pasar el mouse (Hover) */
.menu-btn:hover {
    color: white;
    background-color: var(--color-primario);
    transform: translateY(-4px); /* Se eleva */
    box-shadow: var(--sombra-elevada);
}

/* 3. Feedback de Accesibilidad (Focus) 
   Es vital para quienes navegan con la tecla TAB */
.menu-btn:focus {
    outline: none; /* Quitamos el borde feo por defecto */
    box-shadow: 0 0 0 4px rgba(0, 95, 204, 0.4); /* Creamos un halo de luz */
    transform: translateY(-2px);
}

/* 4. Feedback de Clic (Active) 
   Simula que el botón se presiona físicamente */
.menu-btn:active {
    transform: translateY(-1px); /* Baja un poco respecto al hover */
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    filter: brightness(0.9); /* Se oscurece un poco al presionar */
}

/* 5. Estilo específico para el botón de "Volver arriba" */
.scroll-top-btn {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s;
}

.scroll-top-btn:hover {
    transform: scale(1.2) rotate(-10deg); /* Se agranda y gira un poco */
    background-color: var(--color-primario-dark);
}
/* --- BASE (Mobile-First: < 640px) --- */
.grid-productos {
    display: grid;
    grid-template-columns: 1fr; /* Una sola columna en móvil */
    gap: 20px;
    padding: 15px;
}

/* --- TABLETS PEQUEÑAS (min-width: 640px) --- */
@media (min-width: 640px) {
    .grid-productos {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas */
    }
}

/* --- TABLETS GRANDES / LAPTOPS (min-width: 1024px) --- */
@media (min-width: 1024px) {
    .grid-productos {
        grid-template-columns: repeat(3, 1fr); /* 3 columnas */
        gap: 30px;
        max-width: 1200px;
        margin: 0 auto; /* Centra el contenido en pantallas grandes */
    }
}

/* --- ESCRITORIO XL (min-width: 1440px) --- */
@media (min-width: 1440px) {
    .grid-productos {
        grid-template-columns: repeat(4, 1fr); /* 4 columnas para monitores pro */
    }
}
.nav-list {
    display: flex;
    flex-direction: column; /* Vertical por defecto (móvil) */
    align-items: center;
}

@media (min-width: 768px) {
    .nav-list {
        flex-direction: row; /* Horizontal en tablets y PC */
        justify-content: space-around;
    }
}
/* En tu archivo CSS principal */
@font-face {
  font-family: 'Montserrat';
  src: url('./fonts/montserrat-v25-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap; /* Muestra una fuente del sistema mientras descarga la tuya */
}

body {
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
}
/* Solo se activa cuando el usuario navega con teclado (Tab) */
:focus-visible {
  outline: 3px dashed var(--primary-color);
  outline-offset: 4px;
}

/* Evita que aparezca el borde feo cuando haces clic con el ratón */
:focus:not(:focus-visible) {
  outline: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}