:root {
    --primary: #d10000;
    --primary-glow: rgba(209, 0, 0, 0.4);
    --bg: #0a0a0a;
    --card: #151515;
    --text: #ffffff;
    --gray: #777;
    --border: #222;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Poppins', sans-serif; 
}

body {
    background-color: var(--bg);
    background-image: radial-gradient(circle at 50% 50%, #1a0000 0%, #0a0a0a 100%);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text);
    overflow: hidden;
}

/* --- CONTENEDOR PRINCIPAL --- */
.login-box {
    background: var(--card);
    padding: 50px 40px;
    width: 90%;
    max-width: 400px;
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.login-box:hover {
    transform: translateY(-5px);
    border-color: #333;
}

/* --- LOGO Y TÍTULOS --- */
.logo h1 { 
    color: var(--primary); 
    font-size: 2.8rem; 
    font-weight: 700;
    letter-spacing: -1px;
    text-shadow: 0 0 20px var(--primary-glow);
}

.logo span { 
    font-size: 0.75rem; 
    color: var(--gray); 
    letter-spacing: 5px; 
    text-transform: uppercase;
}

p { margin-bottom: 10px; font-size: 0.9rem; color: var(--gray); }

/* --- CAMPOS DE ENTRADA --- */
.form-group { 
    position: relative; 
    margin: 35px 0; 
    display: flex;
    flex-direction: column;
}

.form-group input {
    width: 100%;
    padding: 12px 10px;
    background: transparent;
    border: none;
    border-bottom: 2px solid #333;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

/* Ajuste específico para que el texto no tape el ojo */
.form-group input#pass {
    padding-right: 40px !important;
}

.form-group input:focus {
    border-bottom-color: var(--primary);
}

.form-group label {
    position: absolute;
    left: 10px; 
    top: 12px;
    color: var(--gray);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.form-group input:focus ~ label,
.form-group input:valid ~ label {
    top: -22px;
    left: 0;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
}

/* --- BOTÓN MOSTRAR CONTRASEÑA --- */
.toggle-pass {
    position: absolute !important;
    right: 5px !important;
    top: 12px !important; /* Alineado con el texto del input */
    background: none !important;
    border: none !important;
    color: var(--gray);
    cursor: pointer;
    padding: 5px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    width: auto !important;
    height: auto !important;
    transition: color 0.3s ease;
}

.toggle-pass:hover {
    color: var(--primary);
}

.toggle-pass svg {
    width: 18px;
    height: 18px;
}

/* --- BOTÓN DE ACCESO --- */
button#loginBtn {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--primary-glow);
    margin-top: 10px;
}

button#loginBtn:hover {
    background: #ff0000;
    transform: scale(1.02);
    box-shadow: 0 6px 20px var(--primary-glow);
}

button#loginBtn:active {
    transform: scale(0.98);
}

button:disabled { 
    background: #2a2a2a; 
    color: #555;
    cursor: not-allowed; 
    box-shadow: none;
}

/* --- MENSAJES DE ERROR --- */
.error-msg { 
    color: #ff3333; 
    margin-top: 20px; 
    font-size: 0.9rem;
    display: none; 
}

/* --- ESTILO PARA EL MÓDULO DE CATÁLOGO I-RUN --- */
#sec-catalogo {
    padding: 20px;
    color: white;
}

/* Encabezado del Catálogo */
.catalog-header {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Buscador */
.search-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
}

#catalog-search {
    width: 100%;
    padding: 12px 15px;
    background: #000;
    border: 1px solid #444;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
}

#catalog-search:focus {
    border-color: #d10000; /* Rojo I-Run */
    outline: none;
}

/* Botones de Filtro (M, F, N) */
.filter-wrapper {
    display: flex;
    gap: 10px;
}

.filter-btn {
    padding: 8px 20px;
    background: #222;
    border: 1px solid #444;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
    font-weight: bold;
    text-transform: uppercase;
}

.filter-btn:hover, .filter-btn.active {
    background: #d10000;
    border-color: #d10000;
}

/* Grid de Productos */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

/* Card del Zapato */
.shoe-card {
    background: #111;
    border-radius: 15px;
    border: 1px solid #333;
    overflow: hidden;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.shoe-card:hover {
    transform: translateY(-10px);
    border-color: #d10000;
    box-shadow: 0 10px 20px rgba(209, 0, 0, 0.2);
}

.image-container {
    background: white; /* Resalta el calzado */
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.card-info {
    padding: 15px;
}

.card-info h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #fff;
}

.price-tag {
    color: #00ff00;
    font-weight: bold;
    font-size: 1.2rem;
    margin: 10px 0;
}

.add-btn {
    width: 100%;
    background: #d10000;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}