/* ── Sección catálogo ── */
#catalogo { padding: 80px 0; background: #0d0d0d; }
#catalogo .section-title { text-align: center; margin-bottom: 50px; }
#catalogo .section-title p { color: #e91e8c; font-size: 20px; font-weight: 200; }
#catalogo .section-title h2 { color: #fff; font-size: 36px; font-weight: 600; }

/* ── Tarjetas de categoría ── */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }
.cat-card {
    background: #1a1a1a; border: 1px solid #2a2a2a; border-radius: 10px;
    padding: 30px 20px; text-align: center; cursor: pointer;
    transition: all 0.3s ease; color: #fff;
}
.cat-card:hover, .cat-card.active {
    border-color: #e91e8c; background: #1f1f1f; transform: translateY(-4px);
}
.cat-card i { font-size: 32px; color: #e91e8c; margin-bottom: 15px; display: block; }
.cat-card span { font-size: 13px; line-height: 1.4; }

/* ── Sección productos ── */
#productos-section { margin-top: 60px; display: none; }
#productos-section h3 { color: #fff; font-size: 24px; margin-bottom: 30px; }
#productos-section h3 span { color: #e91e8c; }
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }

/* ── Tarjeta producto ── */
.prod-card {
    background: #1a1a1a; border: 1px solid #2a2a2a; border-radius: 12px;
    overflow: hidden; transition: all 0.3s ease; display: flex; flex-direction: column;
}
.prod-card:hover { border-color: #e91e8c; transform: translateY(-3px); box-shadow: 0 8px 24px rgba(233,30,140,0.15); }

.prod-img-wrap { position: relative; cursor: pointer; }
.prod-img-wrap img { width: 100%; height: 200px; object-fit: contain; background: #fff; padding: 12px; display: block; }
.sin-imagen { width: 100%; height: 200px; background: #111; display: flex; align-items: center; justify-content: center; }
.sin-imagen i { font-size: 40px; color: #333; }

/* Badge stock */
.badge-stock { position: absolute; top: 8px; right: 8px; font-size: 11px; padding: 3px 8px; border-radius: 20px; font-weight: 600; }
.en-stock { background: rgba(39,174,96,0.15); color: #27ae60; border: 1px solid #27ae60; }
.sin-stock { background: rgba(231,76,60,0.15); color: #e74c3c; border: 1px solid #e74c3c; }

/* Info producto */
.prod-info { padding: 15px; flex: 1; }
.marca-logo { max-height: 28px; max-width: 90px; object-fit: contain; filter: brightness(0) invert(1); margin-bottom: 8px; }
.prod-marca { color: #888; font-size: 12px; margin-bottom: 5px; display: block; }
.prod-titulo { color: #fff; font-size: 13px; line-height: 1.5; margin-bottom: 6px; min-height: 40px; }
.prod-modelo { color: #666; font-size: 11px; margin-bottom: 10px; }

/* Características */
.prod-caracteristicas { padding-left: 16px; margin: 8px 0; }
.prod-caracteristicas li { color: #aaa; font-size: 11px; line-height: 1.6; }

/* Precios */
.prod-precios { margin-top: 10px; }
.precio-lista { color: #e91e8c; font-size: 16px; font-weight: 700; }
.precio-especial { color: #27ae60; font-size: 14px; font-weight: 600; }
.precio-descuento { color: #f39c12; font-size: 12px; }

/* Botón WhatsApp */
.btn-cotizar {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin: 0 15px 15px; background: transparent; border: 1px solid #e91e8c;
    color: #e91e8c; border-radius: 20px; padding: 8px 0; font-size: 13px;
    text-align: center; cursor: pointer; transition: all 0.3s; text-decoration: none;
}
.btn-cotizar:hover { background: #e91e8c; color: #fff; text-decoration: none; }
.btn-cotizar.mt-3 { margin: 12px 0 0; }

/* Loaders */
#loader-cats, #loader-prods { text-align: center; padding: 40px; color: #888; display: none; }
#loader-cats i, #loader-prods i { font-size: 30px; color: #e91e8c; }

/* ── Modal ── */
#prod-modal {
    display: none; position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.85); align-items: center; justify-content: center; padding: 20px;
}
.modal-content {
    background: #1a1a1a; border: 1px solid #2a2a2a; border-radius: 16px;
    width: 100%; max-width: 900px; max-height: 90vh; overflow-y: auto; position: relative;
}
#modal-close {
    position: absolute; top: 15px; right: 20px; background: none; border: none;
    color: #fff; font-size: 24px; cursor: pointer; z-index: 10; line-height: 1;
}
#modal-close:hover { color: #e91e8c; }
#modal-body { padding: 30px; }

.modal-prod-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
@media (max-width: 600px) { .modal-prod-grid { grid-template-columns: 1fr; } }

.modal-img-principal { width: 100%; height: 260px; object-fit: contain; background: #fff; border-radius: 10px; padding: 10px; }
.galeria-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.galeria-thumb { width: 60px; height: 60px; object-fit: contain; background: #fff; border-radius: 6px; padding: 4px; cursor: pointer; border: 2px solid transparent; transition: border 0.2s; }
.galeria-thumb:hover { border-color: #e91e8c; }

.modal-titulo { color: #fff; font-size: 18px; font-weight: 600; margin: 10px 0 6px; line-height: 1.4; }
.modal-modelo { color: #888; font-size: 13px; margin-bottom: 12px; }
.modal-precios { margin-bottom: 12px; }
.modal-stock { margin-bottom: 15px; }
.modal-descripcion { color: #aaa; font-size: 13px; line-height: 1.7; margin-bottom: 15px; }
.modal-caracteristicas { padding-left: 18px; margin-bottom: 15px; }
.modal-caracteristicas li { color: #aaa; font-size: 13px; line-height: 1.8; }

.iva-label {
    font-size: 11px;
    color: #27ae60;
    font-weight: 400;
    margin-left: 4px;
}