
/* ═══════════════════════════════════
   EXTINWEB — ESTILO ML PROFESIONAL
   ═══════════════════════════════════ */

/* ANIMACIONES */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulseYellow {
    0%,100% { box-shadow: 0 0 0 0 rgba(255,230,0,0.5); }
    50%      { box-shadow: 0 0 0 8px rgba(255,230,0,0); }
}

/* RESET */
* { box-sizing: border-box; }

body {
    background: #fff9a0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #333;
    padding-top: 108px;
}

/* LOGO */
.header-brand-img {
    height: 44px !important;
    width: auto !important;
    border-radius: 8px;
    object-fit: contain;
}

/* BOTÓN FLOTANTE CARRITO */
.btn-flotante {
    font-size: 13px;
    font-weight: 700;
    color: #111;
    border-radius: 50px;
    background: #FFE600;
    padding: 11px 20px;
    position: fixed;
    bottom: 24px;
    right: 20px;
    transition: all .25s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    z-index: 990;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: pulseYellow 3s infinite;
}
.btn-flotante:hover {
    filter: brightness(.95);
    transform: translateY(-2px);
    animation: none;
    color: #111;
}

/* CARDS DE PRODUCTOS */
.prod-card, .card {
    background: #fff !important;
    border: 1px solid #e8e8e8 !important;
    border-radius: 10px !important;
    overflow: hidden;
    transition: all .25s;
    animation: fadeUp .5s ease both;
    cursor: pointer;
}
.prod-card:nth-child(1),.card:nth-child(1){ animation-delay:.05s }
.prod-card:nth-child(2),.card:nth-child(2){ animation-delay:.10s }
.prod-card:nth-child(3),.card:nth-child(3){ animation-delay:.15s }
.prod-card:nth-child(4),.card:nth-child(4){ animation-delay:.20s }
.prod-card:nth-child(5),.card:nth-child(5){ animation-delay:.25s }
.prod-card:nth-child(6),.card:nth-child(6){ animation-delay:.30s }

.prod-card:hover, .card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.10) !important;
    transform: translateY(-4px) !important;
    border-color: #ddd !important;
}

.prod-img-wrap {
    background: linear-gradient(180deg, #fffde7 0%, #fff 60%);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 190px;
    border-bottom: 1px solid #f5f5f5;
}
.prod-img-wrap img {
    max-height: 158px;
    max-width: 100%;
    object-fit: contain;
    transition: transform .25s;
}
.prod-card:hover .prod-img-wrap img {
    transform: scale(1.05);
}

.card-img-top {
    height: 180px;
    object-fit: contain;
    padding: 16px;
    background: #fff;
    transition: transform .25s;
}
.card:hover .card-img-top {
    transform: scale(1.04);
}

.prod-body, .card-body {
    padding: 12px !important;
    background: #fff;
}

.prod-categoria, .card-title small {
    font-size: 10px !important;
    font-weight: 700;
    color: #3483FA;
    text-transform: uppercase;
    letter-spacing: .5px;
    display: block;
    margin-bottom: 3px;
}

.prod-nombre, .card-title {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #333;
    line-height: 1.4;
    margin-bottom: 8px;
}

.prod-precio-final, .precioVenta {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #111 !important;
    display: block;
    margin-bottom: 2px;
}

.prod-precio-sub, .precioIva, .precioFF {
    font-size: 10px !important;
    color: #bbb !important;
    display: block;
    margin-bottom: 8px;
}

/* BOTÓN AGREGAR — AZUL ML */
.btn-agregar-card,
.btn-outline-success,
.btn-agregar {
    width: 100% !important;
    background: #3483FA !important;
    color: #fff !important;
    border: none !important;
    border-radius: 7px !important;
    padding: 9px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: all .2s !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    text-decoration: none;
}
.btn-agregar-card:hover,
.btn-outline-success:hover,
.btn-agregar:hover {
    background: #2968c8 !important;
    transform: scale(1.01) !important;
    color: #fff !important;
}

/* GRID PRODUCTOS */
.productos-grid, .grid-productos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 12px;
    padding: 12px 16px 32px;
}

/* SECCIÓN FONDO */
.prod-section, section.py-3, .bsection {
    background: transparent !important;
    padding: 12px 0 !important;
}

.container.px-4 {
    background: #fff9a0;
}

/* BREADCRUMB */
.breadcrumb-bar {
    background: #fff;
    padding: 8px 20px;
    font-size: 11px;
    color: #999;
    border-bottom: 1px solid #f0f0f0;
}
.breadcrumb-bar a { color: #3483FA; text-decoration: none; }

/* HERO COMPACTO */
.page-header {
    background: #fff !important;
    padding: 14px 20px !important;
    border-bottom: 1px solid #f0f0f0 !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.page-header h1 {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #111 !important;
    margin: 0 0 3px !important;
}
.page-header h1 span { color: #111 !important; }
.page-header p {
    font-size: 11px !important;
    color: #999 !important;
    margin: 0 !important;
}

/* FILTROS CHIPS */
.filtros-bar {
    background: #fafafa !important;
    padding: 8px 16px !important;
    border-bottom: 1px solid #f0f0f0 !important;
}
.chip {
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    color: #555 !important;
    border-radius: 20px !important;
    padding: 5px 14px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    transition: all .15s !important;
    text-decoration: none;
    display: inline-block;
}
.chip:hover { border-color: #999 !important; color: #111 !important; }
.chip.active {
    background: #FFE600 !important;
    border-color: #FFE600 !important;
    color: #111 !important;
}

/* CONTADOR */
.productos-count {
    font-size: 11px;
    color: #999;
    margin-bottom: 10px;
    font-weight: 500;
    padding: 0 4px;
}

/* EMPTY STATE */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #bbb;
    grid-column: 1/-1;
}

/* LOGIN */
.form-login, .login-card {
    max-width: 420px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    padding: 32px 28px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    border: 1px solid #e8e8e8;
}
.btn-login, .form-login .btn-primary {
    background: #3483FA !important;
    border-color: #3483FA !important;
    color: #fff !important;
    font-weight: 700;
    border-radius: 8px;
    padding: 12px;
    font-size: 15px;
    width: 100%;
}
.btn-login:hover, .form-login .btn-primary:hover {
    background: #2968c8 !important;
    border-color: #2968c8 !important;
}

/* FOOTER */
footer, .foTodo {
    background: #111 !important;
    margin-top: 0;
}
.foCopy { font-size: 12px !important; }
.imgredes { width: 28px; height: 28px; }

/* HERO HOME */
.hero-section {
    background: #111 !important;
    border-bottom: 3px solid #FFE600 !important;
    animation: slideDown .4s ease;
}
.hero-title { color: #fff !important; }
.hero-title span { color: #FFE600 !important; }
.hero-subtitle { color: #666 !important; }
.btn-hero-primary {
    background: #FFE600 !important;
    color: #111 !important;
    animation: pulseYellow 3s infinite;
}
.btn-hero-primary:hover { animation: none; filter: brightness(.95); }
.btn-hero-secondary {
    border-color: #333 !important;
    color: #ccc !important;
}
.hero-stat strong { color: #FFE600 !important; }

/* CATEGORIAS HOME */
.cat-item {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    transition: all .2s;
}
.cat-item:hover {
    border-color: #FFE600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.cat-label { color: #555; }

/* BANNER ENVIOS */
.banner-envios {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    margin: 0 16px 16px;
    padding: 14px 18px;
}

/* MOBILE */
@media (max-width: 768px) {
    body { padding-top: 76px; }
    .productos-grid, .grid-productos {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 8px;
    }
    .prod-img-wrap { height: 130px; }
    .prod-precio-final { font-size: 16px !important; }
}
