:root {
    --bg-principal: #121214;
    --bg-tarjetas: #1a1a1e;
    --texto-blanco: #ffffff;
    --texto-mutado: #a0a0a5;
    --color-geek: #ffcc00;
    --color-geek-hover: #ff9900;
    --fuente-base: 'Montserrat', system-ui, -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Cursor personalizado de espada corregido (sin guiones bajos) */
    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, auto !important;
}

body {
    background-color: var(--bg-principal);
    color: var(--texto-blanco);
    font-family: var(--fuente-base);
    line-height: 1.6;
}

/* Accesibilidad lector de pantalla */
.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;
}

.top-bar {
    background-color: #000000;
    color: var(--color-geek);
    text-align: center;
    padding: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
}

.navbar {
    background-color: #09090b;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid #27272a;
}

.nav-list {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
}

.menu-btn {
    display: block;
    color: var(--texto-blanco);
    text-decoration: none;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.3s, color 0.3s;
}

.menu-btn:hover, .menu-btn.active {
    background-color: var(--color-geek);
    color: #000000;
}

.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.hero-section {
    text-align: center;
    margin-bottom: 50px;
    background: linear-gradient(135deg, #1e1e24 0%, #09090b 100%);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #27272a;
}

.hero-section h2 {
    font-size: 32px;
    color: var(--color-geek);
    margin-bottom: 15px;
}

.hero-section p {
    color: var(--texto-mutado);
    max-width: 800px;
    margin: 0 auto;
}

.section {
    margin-bottom: 60px;
}

.section h2 {
    font-size: 24px;
    border-left: 4px solid var(--color-geek);
    padding-left: 15px;
    margin-bottom: 10px;
}

.section-context {
    color: var(--texto-mutated);
    margin-bottom: 30px;
    font-style: italic;
}

.grid-productos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.producto {
    background-color: var(--bg-tarjetas);
    border: 1px solid #27272a;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, border-color 0.3s;
}

.producto:hover {
    transform: translateY(-5px);
    border-color: var(--color-geek);
}

.producto img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 15px;
    cursor: zoom-in;
    transition: transform 0.2s;
}

.producto img:hover {
    transform: scale(1.03);
}

.producto h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--texto-blanco);
}

.categoria-tag {
    background-color: #27272a;
    color: var(--color-geek);
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    width: fit-content;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.desc-producto {
    font-size: 13px;
    color: var(--texto-mutado);
    line-height: 1.5;
}

.seccion-nota {
    background-color: #141416;
    border-left: 3px solid var(--texto-mutado);
    padding: 15px;
    font-size: 13px;
    color: var(--texto-mutado);
    border-radius: 0 8px 8px 0;
}

/* Pantalla oscura/Modal creada vía JS */
.modal-oscuro {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    cursor: zoom-out;
}

.modal-oscuro img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.1);
    transform: scale(0); 
    animation: aparecerModal 0.3s forwards ease-out;
}

@keyframes aparecerModal {
    to { transform: scale(1); }
}

/* Barra de progreso interactiva */
.barra-progreso {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 5px;
    background: linear-gradient(to right, #ffcc00, #ff5500);
    z-index: 10000;
    transition: width 0.1s ease;
}

/* Enfoques interactivos */
.seccion-enfocada {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-color: #ffcc00 !important;
}

.badge-check {
    background: #00ff88;
    color: #000;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    margin-left: 10px;
    font-weight: bold;
    vertical-align: middle;
}

/* Botón flotante para regresar arriba */
.back-to-top-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.scroll-top-btn {
    background-color: var(--bg-tarjetas);
    color: var(--color-geek);
    border: 1px solid #27272a;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
}

.scroll-top-btn:hover {
    background-color: var(--color-geek);
    color: #000000;
}

.main-footer {
    background-color: #09090b;
    border-top: 2px solid #27272a;
    padding: 40px 20px;
    margin-top: 50px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-brand h3, .footer-links h4, .footer-team h4 {
    color: var(--color-geek);
    margin-bottom: 15px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-brand p, .footer-links p, .footer-team p {
    color: var(--texto-mutado);
    font-size: 13px;
    line-height: 1.6;
}