/* ===== HERO TIENDA ===== */
#tiendaHero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url("https://images.unsplash.com/photo-1472851294608-062f824d29cc?w=1600");
    background-size: cover;
    background-position: center;
    padding: 50px 40px;
    color: white;
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: auto;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 30px;
}

.hero-contenido {
    flex: 1;
    min-width: 280px;
}

.titulo-small {
    display: inline-block;
    background: #e94560;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.titulo-principal {
    font-size: 48px;
    color: white;
    margin-bottom: 15px;
}

.subtitulo {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 25px;
}

.btn-tienda {
    display: inline-block;
    padding: 14px 35px;
    background: #e94560;
    color: white;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.btn-tienda:hover {
    background: #d63851;
}

/* ===== TIENDA CONTENEDOR ===== */
.tienda-contenedor {
    display: flex;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px;
    align-items: flex-start;
}

.layout {
    flex: 1;
    min-width: 0;
}

.cabecera-seccion {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.cabecera-seccion h2 {
    font-size: 32px;
    color: #1a1a2e;
}

#buscarInput {
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    width: 250px;
    transition: border-color 0.3s;
}

#buscarInput:focus {
    border-color: #e94560;
}

.filtros {
    display: flex;
    gap: 10px;
    margin: 15px 0 30px;
    flex-wrap: wrap;
}

.tag {
    padding: 10px 22px;
    border: 2px solid #1a1a2e;
    background: transparent;
    color: #1a1a2e;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.tag:hover {
    background: #1a1a2e;
    color: white;
}

/* ===== PRODUCTOS === */
.productos-scroll {
    overflow-x: auto;
    padding-bottom: 10px;
}

.productos-grid {
    display: flex;
    gap: 25px;
}

.tarjeta-producto {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: box-shadow 0.3s;
    min-width: 200px;
    flex: 0 0 auto;
}

.tarjeta-producto:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

.producto-img {
    height: 150px;
    background: #e0e0e0;
}

.producto-info {
    padding: 15px;
}

.producto-info h4 {
    font-size: 16px;
    color: #1a1a2e;
    margin-bottom: 5px;
}

.producto-info p {
    font-size: 18px;
    font-weight: bold;
    color: #e94560;
    margin-bottom: 10px;
}

.btn-agregar {
    width: 100%;
    padding: 8px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-agregar:hover {
    background: #e94560;
}

/* ===== CARRITO ===== */
.cart-panel {
    width: 320px;
    flex-shrink: 0;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    top: 100px;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cart-header h3 {
    font-size: 22px;
    color: #1a1a2e;
}

#vaciarBtn {
    padding: 8px 20px;
    background: #e94560;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s;
}

#vaciarBtn:hover {
    background: #d63851;
}

.cart-items {
    min-height: 100px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
    padding-bottom: 20px;
}

.cart-summary {
    margin-top: 20px;
}

.fila-carrito {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.fila-carrito label {
    display: flex;
    align-items: center;
    gap: 5px;
}

.fila-carrito-total {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    background: #fff3cd;
    padding: 8px 5px;
    border-radius: 5px;
}

#costoEnvio {
    width: 60px;
    padding: 5px 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: center;
}

/* ===== BOTON COMPRAR ===== */
.btn-comprar {
    width: 100%;
    margin-top: 15px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #e94560, #c23152);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.btn-comprar:hover {
    background: linear-gradient(135deg, #d63851, #a82842);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(233, 69, 96, 0.5);
}

.btn-comprar:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(233, 69, 96, 0.3);
}

.pago-seguro {
    text-align: center;
    margin-top: 10px;
    font-size: 12px;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.pago-seguro i {
    color: #27ae60;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .tienda-contenedor {
        flex-direction: column;
        padding: 40px 20px;
    }
    .cart-panel {
        width: 100%;
        position: static;
    }
    .titulo-principal {
        font-size: 36px;
    }
    .cabecera-seccion h2 {
        font-size: 26px;
    }
}

@media (max-width: 900px) {
    .tienda-contenedor {
        flex-direction: column;
        padding: 40px 20px;
    }

    .cart-panel {
        width: 100%;
        position: static;
    }
}

@media (max-width: 768px) {
    #tiendaHero {
        padding: 40px 20px;
    }
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .titulo-principal {
        font-size: 28px;
    }
    .titulo-small {
        font-size: 12px;
    }
    .subtitulo {
        font-size: 15px;
    }

    .cabecera-seccion {
        flex-direction: column;
        align-items: stretch;
    }
    .cabecera-seccion h2 {
        font-size: 22px;
    }

    #buscarInput {
        width: 100%;
    }

    .productos-grid {
        flex-wrap: wrap;
    }
    .tarjeta-producto {
        min-width: 160px;
        flex: 1 1 calc(50% - 15px);
        max-width: 200px;
    }
    .filtros {
        justify-content: center;
    }
    .tag {
        padding: 8px 16px;
        font-size: 12px;
    }
}
