/*
Theme Name: Torre BioMex (Ingeniería Pura)
Author: Salvador Torres
Description: Tema personalizado estilo E-commerce Mercado Libre.
Version: 1.0
*/

/* --- RESET & BASICS --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #ebebeb; /* El gris clásico de fondo */
}

/* --- BACKGROUND GRADIENT (Campaña San Valentín) --- */
.campaign-background {
    background: linear-gradient(90deg, #a90f90 0%, #d6266f 50%, #e05e5e 100%);
    height: 380px;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

/* --- LAYOUT CONTAINER --- */
.main-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding-top: 20px;
}

/* --- HERO SLIDER --- */
.slider-container {
    width: 100%;
    height: 340px;
    background-color: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    position: relative;
    margin-bottom: 40px;
}

.slide {
    width: 100%;
    height: 100%;
    display: none;
    background-size: cover;
    background-position: center;
}

.slide.active {
    display: block;
    animation: fadeIn 0.5s;
}

/* Botones del slider */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 40px;
    height: 80px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    color: #3483fa;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.slider-container:hover .slider-btn { opacity: 1; }
.prev { left: 0; border-radius: 0 4px 4px 0; }
.next { right: 0; border-radius: 4px 0 0 4px; }

/* Paginación (puntos) */
.dots-container {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
}
.dot.active { background-color: #fff; }

/* --- ANAQUEL / SHELF (GRID) --- */
.shelf-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-bottom: 40px;
}

.card {
    background: white;
    border-radius: 6px;
    padding: 15px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 260px;
    position: relative;
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.card-header {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    display: block;
}

.card-image-area {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.card-img {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
}

.price-container { margin-top: auto; }

.old-price {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

.current-price {
    font-size: 20px;
    font-weight: 400;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.discount {
    font-size: 12px;
    color: #00a650;
    font-weight: 600;
}

.shipping-info {
    font-size: 12px;
    color: #00a650;
    font-weight: 600;
    margin-top: 4px;
}

.brand-link {
    font-size: 14px;
    color: #3483fa;
    text-decoration: none;
    font-weight: 500;
}

/* Tarjeta Banner */
.card.banner-card { padding: 0; }
.banner-img-full {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Iconos circulares */
.circle-icon-bg {
    width: 80px;
    height: 80px;
    background-color: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

@keyframes fadeIn {
    from { opacity: 0.8; }
    to { opacity: 1; }
}

/* Responsive básico para móviles */
@media (max-width: 768px) {
    .shelf-container {
        grid-template-columns: repeat(2, 1fr);
    }
}