/* =========================================
   ESTILOS EXCLUSIVOS NOMINATION ITALY (ACERO & PLATA)
   ========================================= */

/* 1. FONDO DE LA PÁGINA (blanco dominante) */
body {
    background: linear-gradient(180deg, #ffffff 0%, #f4f4f5 100%) !important;
    color: #27272a !important;
}

/* 2. BARRA DE NAVEGACIÓN BLANCA */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 2px solid #27272a !important;
    backdrop-filter: blur(10px);
}
.navbar a { color: #18181b !important; }
.logo span { color: #52525b !important; }
.burger div { background: #18181b !important; }

/* 3. HEADER DE MARCA (ACERO CEPILLADO SOBRE FONDO OSCURO) */
.brand-intro {
    background: radial-gradient(circle at center, #3f3f46 0%, #09090b 100%);
    padding: 5rem 2rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
/* Textura sutil de "acero cepillado" */
.brand-intro::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(100deg, transparent 0px, transparent 2px, rgba(255, 255, 255, 0.035) 3px, transparent 5px);
    pointer-events: none;
}

.texto-acero {
    background: linear-gradient(to right, #ffffff, #a1a1aa, #ffffff, #52525b, #ffffff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: flujo-acero 6s linear infinite;
    font-weight: 700;
    letter-spacing: 2px;
    position: relative;
}
@keyframes flujo-acero { to { background-position: 200% center; } }

/* Chapitas de especificaciones técnicas */
.specs-nomination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 1.8rem;
}
.badge-nomination {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #f4f4f5;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 7px 16px;
    border-radius: 30px;
    backdrop-filter: blur(4px);
}

/* 4. CONTROLES DEL CATÁLOGO CLAROS */
.catalog-controls {
    display: flex; justify-content: center; gap: 1rem; margin-bottom: 3rem; flex-wrap: wrap;
}
.catalog-controls input, .catalog-controls select {
    background: #fff !important;
    border: 1px solid #d4d4d8 !important;
    color: #3f3f46 !important;
    border-radius: 4px;
    padding: 12px 20px;
    font-family: 'Lato', sans-serif;
    transition: 0.3s;
}
.catalog-controls input:focus, .catalog-controls select:focus {
    border-color: #52525b !important;
    box-shadow: 0 0 0 3px rgba(82, 82, 91, 0.15) !important;
    outline: none;
}

/* 5. TARJETAS DE PRODUCTO (ANIMACIÓN DE BORDE ACERO) */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem; width: 100%; justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
}

@keyframes borde-acero {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.product-card {
    position: relative;
    padding: 1.5rem;
    border-radius: 8px;
    background: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    cursor: pointer;

    border: 2px solid transparent;
    background-image: linear-gradient(white, white),
                      linear-gradient(45deg, #a1a1aa, #27272a, #ffffff, #71717a);
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
    background-size: 100% 100%, 300% 300%;

    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(24, 24, 27, 0.15);
    animation: borde-acero 4s ease infinite;
}

.product-card img { width: 100%; height: 250px; object-fit: contain; margin-bottom: 1rem; }
.product-card h4 { color: #18181b; font-weight: bold; margin-bottom: 0.5rem; font-family: 'Cinzel', serif; }
.product-card .price { color: #27272a; font-size: 1.4rem; font-weight: 800; }
.category-tag {
    color: #71717a; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px;
    background: #f4f4f5; padding: 2px 8px; border-radius: 4px; display: inline-block; margin-bottom: 5px;
}

/* =========================================
   6. ESTRUCTURA BASE DEL MODAL
   ========================================= */

.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: 20px 0;
    -webkit-overflow-scrolling: touch;
}

.modal-content {
    position: relative;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    width: 92%;
    max-width: 420px;
    padding: 2.5rem 1rem 1rem 1rem;
    margin: auto;
}

.close-btn {
    position: absolute; top: 5px; right: 10px;
    font-size: 2.5rem; cursor: pointer; line-height: 1;
    z-index: 20; width: 35px; height: 35px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: 0.3s;
}

.galeria-container {
    position: relative; display: flex; align-items: center; justify-content: center;
    margin-bottom: 0.5rem;
    width: 100%;
}

.modal-content img {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: contain;
}

.nav-btn {
    border: none; padding: 10px; font-size: 1.2rem; cursor: pointer;
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
    transition: 0.3s;
}
.prev { left: -5px; }
.next { right: -5px; }

#modal-titulo { margin-bottom: 5px; font-size: 1.1rem; }
#modal-precio { margin: 0 0 5px 0 !important; font-size: 1.3rem !important; }
.modal-text { margin-bottom: 5px; font-size: 0.8rem; }

#modal-descripcion {
    margin: 0.5rem 0 !important;
    padding: 5px 0 !important;
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
    max-height: 65px;
    overflow-y: auto;
}

#modal-descripcion::-webkit-scrollbar { width: 3px; }
#modal-descripcion::-webkit-scrollbar-thumb { background: #52525b; border-radius: 10px; }

.privacy-wrapper {
    margin: 3px 0 !important;
    font-size: 0.75rem !important;
}

.btn-llamada-doble {
    background: linear-gradient(45deg, #18181b, #52525b);
    color: white;
    padding: 10px !important;
    width: 100%;
    border-radius: 8px;
    margin-top: 10px !important;
    display: block;
    text-decoration: none;
    text-align: center;
    transition: 0.3s;
}
.btn-llamada-doble:hover { transform: scale(1.02); box-shadow: 0 5px 15px rgba(24, 24, 27, 0.4); }
.btn-llamada-doble .texto-grande { font-size: 0.8rem; margin-bottom: 2px; display: block; opacity: 0.9; }

/* =========================================
   ADAPTACIÓN MÓVIL EXTREMA
   ========================================= */
@media (max-width: 768px) {
    .modal-content {
        padding: 2rem 0.8rem 1rem 0.8rem;
        margin: 2vh auto;
    }
    .modal-content img {
        max-height: 180px !important;
    }
    #modal-descripcion {
        max-height: 50px;
    }
}

/* =============================================================
   BOTÓN AÑADIR AL CARRITO (MODAL) — rojo universal SAKO
   ============================================================= */
.btn-core-cart {
    width: 100%;
    margin-top: 12px;
    padding: 12px 15px;
    background-color: #e63946;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-core-cart:hover {
    background-color: #d62828;
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.4);
}

/* NAV EN PANTALLAS MEDIAS Y MÓVIL PARA NOMINATION */
@media (max-width: 1100px) {
    .nav-links {
        background: rgba(255, 255, 255, 0.98) !important;
        border-left: 4px solid #27272a !important;
        overflow-y: auto;
    }
    .nav-links a { color: #111 !important; }
    .burger div { background: #111 !important; }
}

@media (max-width: 768px) {
    .brand-intro h1 { font-size: 2.2rem !important; }
    .badge-nomination { font-size: 0.72rem; padding: 6px 12px; }
}
