/* --- IMPORTACIÓN DE FUENTE PREMIUM (Montserrat) --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;800;900&display=swap');

/* --- ESTILOS GENERALES Y FONDO OSCURO --- */
body { 
    font-family: 'Montserrat', sans-serif; 
    background-color: #121212; 
    color: #f1f1f1; 
    margin: 0; 
    padding: 0; 
    -webkit-font-smoothing: antialiased;
    font-size: 16px; 
}

/* --- CABECERA PRINCIPAL --- */
.cabecera-principal { 
    text-align: center; 
    background-color: #050505; 
    padding: 50px 20px; 
    border-bottom: 4px solid #e50914; 
    position: relative; 
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.15); 
}

/* TÍTULO PRINCIPAL (EL FIGURÍN) */
.cabecera-principal h1 { 
    margin: 0; 
    text-transform: uppercase; 
    font-weight: 900;
    font-size: 4rem; 
    letter-spacing: 5px;
    background: linear-gradient(to bottom, #ffffff 20%, #777777 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(229, 9, 20, 0.6));
}

/* SUBTÍTULO (Tu tienda de coleccionismo...) */
.cabecera-principal h2 {
    font-size: 1.1rem !important; 
    font-weight: 600;
    letter-spacing: 8px; 
    margin-top: 20px !important;
    margin-bottom: 0 !important;
    text-transform: uppercase;
    background: none;
    -webkit-text-fill-color: #888; 
    color: #888;
    text-shadow: none;
}

/* --- TÍTULO DE LA SECCIÓN (FIGURAS DE COLECCIÓN PREMIUM) --- */
h2 {
    text-align: center;
    font-size: 2.5rem !important; 
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 50px !important;
    margin-bottom: 50px !important;
    color: #fff;
    text-shadow: 3px 3px 0px #e50914, 6px 6px 15px rgba(0,0,0,0.8);
}

/* --- CONTENEDOR DEL CATÁLOGO --- */
.catalogo-container { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 35px; 
    justify-content: center; 
    padding: 0 20px 50px 20px; 
    max-width: 1400px;
    margin: 0 auto;
}

/* --- TARJETAS DE PRODUCTO --- */
.tarjeta-producto { 
    background: #1a1a1a; 
    border: 1px solid #2a2a2a; 
    border-radius: 12px; 
    width: 280px; 
    padding: 20px; 
    text-align: center; 
    transition: all 0.3s ease; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.5); 
    display: flex;
    flex-direction: column;
}

.tarjeta-producto:hover { 
    transform: translateY(-10px); 
    border-color: #e50914; 
    box-shadow: 0 15px 30px rgba(229, 9, 20, 0.2); 
}

.tarjeta-producto img { 
    width: 100%; 
    height: 350px; 
    object-fit: cover; 
    border-radius: 8px; 
    margin-bottom: 15px;
}

.tarjeta-producto h3 {
    font-weight: 700;
    font-size: 1.3rem; 
    margin: 10px 0;
    color: #fff;
    flex-grow: 1; 
}

.precio { 
    font-size: 1.8rem; 
    font-weight: 900; 
    color: #e50914; 
    margin: 15px 0 25px 0;
}

/* --- BOTONES --- */
.btn-ver, .btn-comprar { 
    display: block; 
    background: linear-gradient(135deg, #e50914 0%, #b20710 100%); 
    color: #fff; 
    padding: 15px; 
    text-decoration: none; 
    border-radius: 6px; 
    font-weight: 800; 
    font-size: 1.1rem; 
    text-transform: uppercase;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
}

.btn-ver:hover, .btn-comprar:hover {
    transform: scale(1.03); 
    box-shadow: 0 5px 15px rgba(229, 9, 20, 0.4);
}

.btn-volver { 
    background: #2a2a2a; 
    color: #fff; 
    padding: 12px 25px; 
    text-decoration: none; 
    border-radius: 6px; 
    display: inline-block; 
    cursor: pointer; 
    border: 1px solid #444; 
    transition: all 0.3s;
    font-weight: 600;
}

.btn-volver:hover { background: #333; border-color: #fff; }

/* --- PANEL DE ADMIN Y DETALLES --- */
.contenedor-producto { max-width: 1000px; margin: 50px auto; padding: 20px; }
.detalle-producto { display: flex; gap: 50px; background: #1a1a1a; padding: 40px; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.galeria-imagenes img { width: 100%; border-radius: 10px; border: 2px solid #333; }
.tabla-admin { width: 100%; border-collapse: collapse; background: #1a1a1a; border-radius: 8px; overflow: hidden; font-size: 1.1rem; }
.tabla-admin th { background: #e50914; color: #fff; padding: 18px; font-weight: 700; text-transform: uppercase; }
.tabla-admin td { padding: 15px; border-bottom: 1px solid #2a2a2a; }
.formulario-admin { background: #1a1a1a; padding: 40px; border-radius: 10px; border: 1px solid #2a2a2a; box-shadow: 0 5px 20px rgba(0,0,0,0.3); }
.grupo-form { margin-bottom: 20px; display: flex; flex-direction: column; }
.grupo-form label { font-size: 1.1rem; margin-bottom: 8px; font-weight: 600; }
.grupo-form input, .grupo-form textarea { padding: 15px; background: #222; border: 1px solid #444; color: #fff; border-radius: 6px; font-family: 'Montserrat', sans-serif; font-size: 1.1rem; transition: border 0.3s; }
.grupo-form input:focus, .grupo-form textarea:focus { outline: none; border-color: #e50914; }
.form-fila { display: flex; gap: 20px; }
.form-fila .grupo-form { flex: 1; }

/* --- EXTRAS MAGIA VISUAL --- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #e50914; }
::selection { background-color: #e50914; color: #ffffff; }

@keyframes aparecerFlotando {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
.tarjeta-producto { animation: aparecerFlotando 0.6s ease-out forwards; }
.tarjeta-producto:nth-child(1) { animation-delay: 0.1s; }
.tarjeta-producto:nth-child(2) { animation-delay: 0.2s; }
.tarjeta-producto:nth-child(3) { animation-delay: 0.3s; }
.tarjeta-producto:nth-child(4) { animation-delay: 0.4s; }
.tarjeta-producto:nth-child(5) { animation-delay: 0.5s; }
.tarjeta-producto:nth-child(6) { animation-delay: 0.6s; }
.tarjeta-producto:nth-child(7) { animation-delay: 0.7s; }