/* ===== RESET ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: 'Segoe UI', Arial, sans-serif; 
    background: #f0f2f5; 
    color: #333; 
}

/* ===== HEADER ===== */
header { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.08); position: sticky; top: 0; z-index: 100; }
.header-top {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 30px; max-width: 1200px; margin: 0 auto; flex-wrap: wrap; gap: 10px;
}
.logo h1 { color: #1a1a2e; font-size: 22px; font-weight: 700; }
.logo h1 i { color: #ff6b00; margin-right: 8px; }
.busqueda { flex: 1; max-width: 600px; position: relative; min-width: 200px; }
.busqueda input {
    width: 100%; padding: 12px 50px 12px 20px;
    border: 2px solid #e0e0e0; border-radius: 30px; font-size: 15px;
    background: #f5f5f5; transition: 0.3s;
}
.busqueda input:focus { border-color: #ff6b00; background: #fff; outline: none; }
.busqueda button {
    position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
    background: none; border: none; font-size: 18px; cursor: pointer; padding: 10px 15px; color: #666;
}
.busqueda button:hover { color: #ff6b00; }
.header-acciones { display: flex; align-items: center; gap: 15px; }
.btn-oferta {
    background: #ff6b00; color: #fff; padding: 8px 20px; border-radius: 20px;
    text-decoration: none; font-weight: 600; font-size: 14px; transition: 0.3s;
}
.btn-oferta:hover { background: #e65a00; }
.btn-oferta i { margin-right: 6px; }
.carrito-icono { text-decoration: none; font-size: 20px; color: #333; font-weight: 600; }
.carrito-icono i { color: #1a1a2e; }
.carrito-icono span {
    background: #ff6b00; color: #fff; border-radius: 50%;
    padding: 2px 10px; font-size: 13px; margin-left: 5px;
}

.header-bottom {
    background: #1a1a2e; padding: 0 30px;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; max-width: 1200px; margin: 0 auto;
}
.header-bottom nav { display: flex; flex-wrap: wrap; gap: 5px; }
.header-bottom nav a {
    color: rgba(255,255,255,0.8); text-decoration: none;
    padding: 12px 16px; font-size: 14px; transition: 0.3s; border-radius: 4px;
}
.header-bottom nav a i { margin-right: 6px; font-size: 14px; }
.header-bottom nav a:hover { color: #fff; background: rgba(255,255,255,0.1); }
.nav-derecha { display: flex; gap: 10px; }
.nav-derecha a {
    color: rgba(255,255,255,0.8); text-decoration: none;
    padding: 12px 16px; font-size: 14px; font-weight: 500; transition: 0.3s;
}
.nav-derecha a i { margin-right: 6px; }
.nav-derecha a:hover { color: #fff; background: rgba(255,255,255,0.1); border-radius: 4px; }

/* ===== BANNER OFERTA ===== */
.banner-oferta {
    background: linear-gradient(135deg, #1a1a2e, #2d2d44);
    color: white;
    padding: 40px 20px;
    text-align: center;
    border-bottom: 4px solid #ff6b00;
    max-width: 1200px;
    margin: 20px auto 0 auto;
    border-radius: 12px;
}
.banner-texto h2 { font-size: 32px; margin-bottom: 10px; }
.banner-texto h2 i { color: #ff6b00; }
.banner-texto p { font-size: 18px; opacity: 0.9; margin-bottom: 20px; }
.btn-verde {
    background: #ff6b00; color: #fff; padding: 12px 35px; border-radius: 30px;
    text-decoration: none; font-weight: 600; font-size: 16px; display: inline-block; transition: 0.3s;
}
.btn-verde i { margin-right: 8px; }
.btn-verde:hover { transform: scale(1.05); box-shadow: 0 4px 15px rgba(255,107,0,0.4); }
.banner-beneficios {
    display: flex; justify-content: center; gap: 40px;
    margin-top: 25px; flex-wrap: wrap;
}
.beneficio { display: flex; align-items: center; gap: 10px; }
.beneficio i { font-size: 28px; color: #ff6b00; }
.beneficio p { font-size: 14px; margin: 0; }

/* ===== CATEGORÍAS RÁPIDAS ===== */
.categorias-rapidas {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 25px 20px;
    background: #fff;
    flex-wrap: wrap;
    border-bottom: 1px solid #e8e8e8;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 0 0 12px 12px;
    border-left: 1px solid #e8e8e8;
    border-right: 1px solid #e8e8e8;
}
.cat-item {
    display: flex; align-items: center; gap: 10px;
    background: #f5f5f5; padding: 12px 30px; border-radius: 30px;
    text-decoration: none; color: #333; font-weight: 500; transition: 0.3s;
}
.cat-item i { font-size: 20px; color: #ff6b00; }
.cat-item:hover { background: #ff6b00; color: #fff; transform: translateY(-3px); box-shadow: 0 4px 15px rgba(255,107,0,0.3); }
.cat-item:hover i { color: #fff; }
.cat-item span { margin: 0; }

/* ===== PRODUCTOS ===== */
.destacados { max-width: 1200px; margin: 30px auto; padding: 0 20px; }
.seccion-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 20px; background: #fff; border-radius: 8px; margin-bottom: 20px;
}
.seccion-header h2 { font-size: 24px; color: #1a1a2e; font-weight: 700; }
.seccion-header h2 i { color: #ff6b00; margin-right: 10px; }
.ver-todos { color: #ff6b00; text-decoration: none; font-weight: 600; }
.ver-todos i { margin-left: 6px; }
.ver-todos:hover { text-decoration: underline; }

.grid-productos {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px;
}

.producto-card {
    background: #fff; border-radius: 10px; padding: 18px 15px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: 0.3s; text-align: center;
    border: 1px solid #e8e8e8;
    display: flex; flex-direction: column;
    min-height: 380px;
}
.producto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border-color: #ff6b00;
}

.producto-card .imagen-container {
    width: 100%; height: 180px;
    display: flex; align-items: center; justify-content: center;
    background: #fafafa; border-radius: 6px; margin-bottom: 12px;
}
.producto-card img { max-width: 100%; max-height: 100%; object-fit: contain; }
.producto-card h3 {
    font-size: 15px; margin: 0 0 8px; color: #1a1a2e;
    font-weight: 600; min-height: 42px; line-height: 1.3;
}
.producto-card .precio-contado { font-size: 26px; font-weight: 700; color: #00a650; }
.producto-card .precio-tarjeta { font-size: 14px; color: #999; text-decoration: line-through; margin: 2px 0 8px; }
.producto-card .stock {
    display: inline-block; background: #e8f5e9; color: #2e7d32;
    padding: 3px 14px; border-radius: 20px; font-size: 12px;
    margin: 6px auto 10px; font-weight: 500;
}
.producto-card .stock i { margin-right: 4px; }
.producto-card .stock.agotado { background: #ffebee; color: #c62828; }
.producto-card .btn-comprar {
    background: #3483fa; color: #fff; border: none;
    padding: 11px; border-radius: 6px; font-weight: 600;
    cursor: pointer; width: 100%; transition: 0.3s;
    font-size: 14px; margin-top: auto;
}
.producto-card .btn-comprar i { margin-right: 6px; }
.producto-card .btn-comprar:hover { background: #2968c8; }
.producto-card .btn-comprar:disabled { background: #ccc; cursor: not-allowed; }

/* ===== VENTAJAS ===== */
.banner-pie {
    background: #fff; padding: 30px 20px; margin: 30px auto;
    max-width: 1200px; border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06); border: 1px solid #e8e8e8;
}
.info-ventajas {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 25px;
}
.info-ventajas > div { display: flex; align-items: center; gap: 15px; }
.info-ventajas > div i { font-size: 34px; color: #ff6b00; width: 50px; text-align: center; }
.info-ventajas h4 { font-size: 16px; color: #1a1a2e; margin-bottom: 3px; font-weight: 600; }
.info-ventajas p { font-size: 13px; color: #666; margin: 0; line-height: 1.4; }

/* ===== FOOTER ===== */
footer {
    background: #1a1a2e;
    color: #fff;
    padding: 40px 0 0 0;
    margin-top: 30px;
    width: 100%;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.footer-grid h3 { 
    color: #ff6b00; 
    margin-bottom: 12px; 
    font-size: 16px; 
    font-weight: 600; 
}
.footer-grid h3 i { margin-right: 8px; }
.footer-grid p { 
    font-size: 14px; 
    opacity: 0.8; 
    margin: 6px 0; 
}
.footer-grid p i { 
    width: 20px; 
    color: #ff6b00; 
}
.footer-grid a { 
    color: #fff; 
    text-decoration: none; 
    transition: 0.3s; 
}
.footer-grid a:hover { color: #ff6b00; }
.footer-grid a i { margin-right: 6px; }

.footer-bottom {
    max-width: 1200px;
    margin: 30px auto 0 auto;
    padding: 20px 20px 20px 20px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-bottom p { 
    font-size: 14px; 
    opacity: 0.6; 
    margin: 0; 
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header-top { flex-direction: column; align-items: stretch; }
    .busqueda { max-width: 100%; }
    .header-acciones { justify-content: center; }
    .header-bottom { flex-direction: column; padding: 5px; }
    .header-bottom nav { justify-content: center; }
    .header-bottom nav a { padding: 8px 10px; font-size: 12px; }
    .nav-derecha { display: none; }
    .banner-texto h2 { font-size: 24px; }
    .banner-beneficios { gap: 15px; }
    .grid-productos { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 15px; }
    .producto-card { min-height: 320px; padding: 12px; }
    .producto-card .imagen-container { height: 130px; }
    .producto-card h3 { font-size: 13px; min-height: 34px; }
    .producto-card .precio-contado { font-size: 20px; }
    .categorias-rapidas { gap: 10px; }
    .cat-item { padding: 10px 16px; font-size: 13px; }
    .info-ventajas > div { flex-direction: column; text-align: center; }
    .info-ventajas > div i { font-size: 28px; }
    .footer-grid { 
        grid-template-columns: 1fr 1fr; 
        text-align: left; 
    }
}

@media (max-width: 480px) {
    .grid-productos { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .producto-card { min-height: 280px; padding: 10px; }
    .producto-card .imagen-container { height: 100px; }
    .producto-card h3 { font-size: 12px; min-height: 30px; }
    .producto-card .precio-contado { font-size: 17px; }
    .producto-card .btn-comprar { font-size: 12px; padding: 8px; }
    .footer-grid { 
        grid-template-columns: 1fr; 
        text-align: center; 
    }
    .banner-oferta { margin: 10px auto 0 auto; border-radius: 8px; padding: 25px 15px; }
    .banner-texto h2 { font-size: 20px; }
    .banner-beneficios { gap: 10px; }
    .beneficio i { font-size: 20px; }
    .beneficio p { font-size: 12px; }
}