
:root {
    --adu-primary: #0046ad;
    --adu-secondary: #f89406;
    --bg-body: #f4f7fa;
}

body {
    background-color: var(--bg-body);
}

/* --- Header y Buscador --- */
.catalog-header {
    background: linear-gradient(135deg, var(--adu-primary) 0%, #002d70 100%);
    color: white;
    padding: 2.5rem 0;
    border-radius: 0 0 2rem 2rem;
    margin-bottom: 2rem;
}

.cp-badge {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 18px;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

    .cp-badge:hover {
        background: rgba(255,255,255,0.25);
    }

/* --- Alerta de Sesión --- */
.login-alert {
    background: #fff9eb;
    border-left: 5px solid var(--adu-secondary);
    border-radius: 1rem;
    color: #856404;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* --- Sidebar --- */
.catalog-sidebar {
    background: white;
    border-radius: 1.25rem;
    position: sticky;
    top: 20px;
    border: 1px solid #e2e8f0;
}

.accordion-button:not(.collapsed) {
    background-color: #f0f7ff;
    color: var(--adu-primary);
    font-weight: bold;
}

/* --- Card de Producto (Imágenes Controladas) --- */
.product-card {
    border: none;
    border-radius: 1.25rem;
    background: white;
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid #edf2f7;
}

    .product-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 30px rgba(0,0,0,0.1);
    }

.product-img-wrapper {
    width: 100%;
    height: 180px; /* Altura fija para que todas sean iguales */
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    position: relative;
}

@media (min-width: 768px) {
    .product-img-wrapper {
        height: 220px;
        padding: 1rem;
    }
}

.product-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Evita que la imagen se deforme o se vea gigante */
    transition: transform 0.5s ease;
}

.product-card:hover .product-img {
    transform: scale(1.1);
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.6rem;
    line-height: 1.3rem;
    font-size: 0.88rem;
}

/* --- Efecto Precio Bloqueado --- */
.price-locked {
    filter: blur(4px);
    font-weight: 800;
    color: #a0aec0;
    user-select: none;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.btn-request {
    background-color: var(--adu-secondary);
    color: white;
    border: none;
    font-weight: 700;
    transition: 0.3s;
}

    .btn-request:hover {
        background-color: #d98205;
        color: white;
    }