/* ==========================================================================
   PLANTILLA MINIMALISTA PREMIUM - CORREGIDA
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #ffffff;
    color: #000000;
}

/* --- BARRA SUPERIOR DE ANUNCIOS --- */
.barra-anuncios {
    background-color: #f5f5f5;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    font-size: 0.75rem;
    color: #555555;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e5e5e5;
}

@media (max-width: 600px) {
    .barra-anuncios span:not(:first-child) { display: none; }
}

/* --- CABECERA (NAV) --- */
header {
    background-color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 5%;
    border-bottom: 1px solid #f0f0f0;
}

header nav a {
    color: #000000;
    text-decoration: none;
    font-size: 0.85rem;
    margin-right: 25px;
    font-weight: 400;
}

header nav a.active {
    border-bottom: 1px solid #000000;
    padding-bottom: 4px;
}

header .logo h1 {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.menu-der {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-buscar {
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
}

.carrito-icono {
    font-size: 1.1rem;
    cursor: pointer;
    position: relative;
}

#contador-carrito {
    position: absolute;
    top: -8px;
    right: -12px;
    background-color: #000000;
    color: #ffffff;
    font-size: 0.65rem;
    padding: 2px 5px;
    border-radius: 50%;
    font-weight: bold;
}

/* --- HERO BANNER --- */
.hero-banner {
    background-color: #f3f3f3;
    background-image: url('https://i.pinimg.com/originals/e2/c2/75/e2c275b6b2d338be77d08a4ef72c665f.jpg'); 
    background-size: cover;          
    background-position: center;     
    background-repeat: no-repeat;
    height: 520px; 
    display: flex;
    align-items: flex-start; 
    justify-content: center;
    text-align: center;
    margin-bottom: 60px;
}

.hero-contenido {
    margin-top: 50px; 
    background-color: rgba(255, 255, 255, 0.4); 
    padding: 20px 40px;
    border-radius: 8px;
    backdrop-filter: blur(4px); 
}

.hero-contenido h2 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
    font-size: 2.5rem;
    font-weight: 800; 
    letter-spacing: 2px;
    color: #000000;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.hero-contenido p {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: #222222;
    margin-bottom: 20px;
}

.btn-shop-now {
    background-color: #000000;
    color: #ffffff;
    border: none;
    padding: 12px 35px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-shop-now:hover {
    background-color: #333333;
}

/* --- CUADRÍCULA DE PRODUCTOS --- */
main {
    max-width: 1200px;
    margin: 0 auto 80px auto;
    padding: 0 20px;
}

.seccion-titulo {
    font-size: 1.4rem;
    font-weight: 500;
    text-align: center;
    letter-spacing: 1.5px;
    margin-bottom: 40px;
}

.productos-grid, #contenedor-productos {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 30px !important;
    width: 100% !important;
}

/* --- LA TARJETA --- */
.producto-tarjeta-moderna {
    background-color: #ffffff !important;
    border: 1px solid #eeeeee !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    width: 100% !important;
    border-radius: 4px !important;
    position: relative !important;
}

/* --- RECUADRO DE LA FOTO --- */
.producto-tarjeta-moderna .img-wrapper {
    background-color: #f7f7f7 !important;
    height: 250px !important; 
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    overflow: hidden !important;
    position: relative !important;
}

/* --- CONTROL TOTAL DE IMÁGENES --- */
.producto-tarjeta-moderna .img-wrapper img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important; 
    display: block !important;
}

/* --- INFORMACIÓN INFERIOR --- */
.producto-tarjeta-moderna .info-wrapper {
    padding: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    background-color: #ffffff !important;
    flex-grow: 1 !important;
}

.producto-tarjeta-moderna h4 {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: #000000 !important;
    text-transform: uppercase !important;
    line-height: 1.4 !important;
}

.producto-tarjeta-moderna .precio-contenedor {
    display: flex !important;
    gap: 10px !important;
    align-items: center !important;
}

.producto-tarjeta-moderna .precio {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
}

.producto-tarjeta-moderna .precio-antes {
    font-size: 0.85rem !important;
    color: #b5b5b5 !important;
    text-decoration: line-through !important;
}

/* --- BOTÓN --- */
.producto-tarjeta-moderna .btn-detalles {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #000000 !important;
    padding: 10px !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    width: 100% !important;
    display: block !important;
    text-align: center !important;
}

.producto-tarjeta-moderna .btn-add-cart {
    background-color: #000000 !important;
    color: #ffffff !important;
    margin-top: 5px !important;
}

.producto-tarjeta-moderna .btn-detalles:hover {
    background-color: #222222 !important;
    color: #ffffff !important;
}

/* ==========================================================================
   CARRITO Y OTROS COMPONENTES
   ========================================================================== */
.carrito-main { max-width: 1100px; margin: 40px auto 80px auto; padding: 0 20px; }
.carrito-titulo-pagina { font-size: 1.8rem; font-weight: 400; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 40px; }
.carrito-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 60px; align-items: flex-start; }
@media (max-width: 850px) { .carrito-layout { grid-template-columns: 1fr; gap: 40px; } }
.carrito-tabla-cabecera { display: grid; grid-template-columns: 3fr 1fr 1fr; font-size: 0.75rem; text-transform: uppercase; color: #888888; padding-bottom: 10px; }
.linea-fina { border: 0; height: 1px; background-color: #e5e5e5; margin-bottom: 25px; }
.item-carrito { display: grid; grid-template-columns: 3fr 1fr 1fr; align-items: center; padding: 25px 0; border-bottom: 1px solid #f0f0f0; }
.item-info h4 { font-size: 0.95rem; font-weight: 500; color: #000000; margin-bottom: 4px; }
.item-info p { color: #777777; font-size: 0.8rem; }
.item-controles { display: flex; align-items: center; border: 1px solid #e5e5e5; width: fit-content; padding: 4px; background-color: #ffffff; }
.item-controles button { background: none; border: none; color: #000000; font-size: 0.85rem; padding: 2px 10px; cursor: pointer; }
.item-subtotal { font-size: 0.95rem; font-weight: 600; color: #000000; text-align: right; }
.carrito-resumen-columna { background-color: #fafafa; padding: 35px; border: 1px solid #eeeeee; }
.carrito-resumen-columna h3 { font-size: 1.1rem; font-weight: 500; text-transform: uppercase; margin-bottom: 25px; }
.resumen-linea { display: flex; justify-content: space-between; font-size: 0.9rem; color: #555555; margin-bottom: 15px; }
.total-fila { font-size: 1.1rem; color: #000000; font-weight: 600; margin-top: 20px; }
#precio-total { font-size: 1.2rem; font-weight: 700; }
.btn-checkout-negro { background-color: #000000; color: #ffffff; border: 1px solid #000000; padding: 15px; font-size: 0.8rem; text-transform: uppercase; width: 100%; cursor: pointer; margin-top: 20px; }
.btn-checkout-negro:hover { background-color: #333333; }
.btn-vaciar-minimal { background: none; color: #999999; border: none; text-decoration: underline; font-size: 0.75rem; width: 100%; margin-top: 15px; cursor: pointer; }
.btn-vaciar-minimal:hover { color: #ff3333; }