@layer EstiloEspecial {
    /* Este bloque se procesa como una unidad lógica distinta */
    
    :root {
        --borde-magico: 2px dashed #ff00ff;
    }

    /* 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 
  {
    alt: calc(image fondo de pagina);
    background-image: url("https://t4.ftcdn.net/jpg/03/95/37/19/360_F_395371923_x2IUqSOYDCQeBCx3auKcK3EbyzNjhlNV.jpg") !important;
    background-size: cover !important;
    background-attachment: fixed !important;
    min-height: 100vh !important;
    margin: 0;
  }
  a, button, input, [role="button"] 
{
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'><path d='M16 4 L19 11 L16 24 L13 11 Z' fill='silver' stroke='black' stroke-width='1'/><path d='M11 24 L21 24 L21 26 L11 26 Z' fill='peru'/><rect x='14' y='26' width='4' height='5' fill='black'/></svg>") 16 4, pointer !important;
}

/* Si la pantalla es pequeña (celular) */
@media (max-width: 500px) {
  h1 {
    font-size: 16px;
  }
}

/* Si la pantalla es grande (PC) */
@media (min-width: 1000px) {
  h1 {
    font-size: 48px;
  }

}
 
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: system-ui;
            background: #dae5f5;
            color: #f3f0f0;
        }

        /* BARRA SUPERIOR */
        .top-bar {
            background: linear-gradient(90deg, #1e3a8a, #55136b);
            color: white;
            text-align: center;
            padding: 2rem;
            font-size: 1.8rem;
            font-weight: bold;
        }

        /* NAV */
        .navbar {
            background: #111827;
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        /* BOTON HAMBURGUESA OCULTO */
        #menu-toggle {
            display: none;
        }

        .menu-icon {
            display: none;
            font-size: 1.8rem;
            color: white;
            padding: 1rem;
            cursor: pointer;
        }

        /* LISTA NAV */
        .nav-list {
            display: flex;
            justify-content: center;
            list-style: none;
        }

        .nav-list a {
            display: block;
            padding: 1.2rem 1.5rem;
            color: #edf1f5;
            text-decoration: none;
        }

        .nav-list a:hover {
            background: #1e72f9f8;
            color: rgb(233, 233, 239);
        }

        /* RESPONSIVE */
        @media (max-width: 768px) {
            .menu-icon {
                display: block;
                text-align: right;
            }

            .nav-list {
                flex-direction: column;
                display: none;
            }

            #menu-toggle:checked + .menu-icon + .nav-list {
                display: flex;
            }
        }

        /* CONTENEDOR */
        .content {
            max-width: 1000px;
            margin: 20px 60px 20px;
            padding: 2rem;
        }

        /* SECCIONES */
        .page {
            display: none;
            animation: fade .4s ease;
        }

        .page:target {
            display: block;
        }

        #inicio {
            display: block;
        }

        @keyframes fade {
            from {
                opacity: 0;
                transform: translateY(15px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .section {
            background: rgb(32, 28, 146);
            padding: 2rem;
            margin-bottom: 2rem;
            border-radius: 12px;
            box-shadow: 0 4px 15px rgb(208, 1, 255);
        }

        h2 {
            color: #e8eaf1;
            margin-bottom: 1rem;
        }

        /* LOGIN */
        .login {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }

        input {
            width: 100%;
            padding: 10px;
            margin: 10px 0;
        }

        button {
            width: 100%;
            padding: 12px;
            background: #10b981;
            border: none;
            color: white;
            font-size: 16px;
            border-radius: 8px;
        }

        button:hover {
            background: #059669;
        }

        /* tarjetas */
        .card {
            background: #03498e;
            padding: 15px;
            margin: 15px 0;
            border-radius: 10px;
        }

        /* botones ayuda */
        .option {
            display: block;
            margin: 15px 0;
            padding: 15px;
            background: #1166e6;
            color: white;
            text-decoration: none;
            border-radius: 10px;
            text-align: center;
        }

        .option:hover {
            background: #4c79f5;
        }
          
.contenedor-elegante {
   font-family: 'Montserrat', 'Segoe UI', Tahoma, sans-serif;
   font-size: 18px;
   letter-spacing: 0.5px;

   display: flex;
   justify-content: space-around;
   align-items: center;
}
/* 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;
}
.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;
}