/**
 * ============================================================
 * ARCHIVO: estilo-publico.css
 * DESCRIPCIÓN: Estilos personalizados para el catálogo público
 * ============================================================
 * REQUISITOS CUBIERTOS:
 * - Diseño responsive
 * - Grid de productos (2/3/4 columnas)
 * - Slider con autoplay y controles
 * - Menú hamburguesa
 * - Imágenes en relación 3:4
 * - Banners horizontales
 * - Soporte táctil
 * ============================================================
 */

/* ============================================================
   VARIABLES GLOBALES
   ============================================================ */
:root {
    --primary-color:#1E364B;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --background-light: #f8f9fa;
    --text-dark: #2c3e50;
    --text-light: #ecf0f1;
    --shadow-default: 0 2px 10px rgba(0,0,0,0.1);
    --transition-default: all 0.3s ease;
}

/* ============================================================
   ESTILOS GENERALES
   ============================================================ */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-light);
    color: var(--text-dark);
}

/* ============================================================
   HEADER Y NAVEGACIÓN
   ============================================================ */
.navbar {
   /* background: linear-gradient(135deg, var(--primary-color) 0%, #34495e 100%); */
	background: var(--primary-color); 
    box-shadow: 0 2px 15px rgba(0,0,0,0.2);
    padding: 0.8rem 0;
}

.navbar-brand {
    font-weight: 700;
    color: var(--text-light) !important;
    font-size: 1.4rem;
}

.navbar-brand i {
    margin-right: 10px;
    color: var(--secondary-color);
}

/* ============================================================
   SLIDER HERO
   ============================================================ */
.slider-container {
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-default);
}

.slider-track {
    display: flex;
    transition: transform 0.8s ease;
    touch-action: pan-y;
}

.slider-slide {
    flex: 0 0 100%;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    padding: 3rem;
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
   /* background: linear-gradient(135deg, rgba(44,62,80,0.7) 0%, rgba(52,73,94,0.3) 100%);*/
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    color: var(--text-light);
    animation: slideIn 0.8s ease;
}

.slide-content h2 {
    font-size: 2.8rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Controles del slider */
.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    padding: 0 20px;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.slider-btn {
    background: rgba(255,255,255,0.3);
    backdrop-filter: blur(5px);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-default);
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: rgba(255,255,255,0.6);
    transform: scale(1.1);
}

.slider-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: var(--transition-default);
    padding: 0;
}

.slider-dot.active {
    background: white;
    transform: scale(1.2);
}

/* ============================================================
   CATEGORÍAS FILTER PILLS
   ============================================================ */
.categorias-filtro {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 2rem;
    justify-content: center;
}

.btn-pill {
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    background: white;
    border: 2px solid #ddd;
    color: var(--text-dark);
    transition: var(--transition-default);
    font-weight: 500;
}

.btn-pill:hover {
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-pill.active {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

/* ============================================================
   GRID DE PRODUCTOS
   ============================================================ */
.productos-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(4, 1fr);
}

.producto-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-default);
    transition: var(--transition-default);
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.producto-imagen {
    position: relative;
    padding-top: 133.33%; /* Relación 3:4 */
    overflow: hidden;
    background: #f0f0f0;
}

.producto-imagen img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-default);
}

.producto-card:hover .producto-imagen img {
    transform: scale(1.05);
}

.producto-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.producto-info {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.producto-modelo {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--text-dark);
}

.producto-modelo-relacionado {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--text-dark);
}



.producto-categoria {
    font-size: 0.8rem;
    color: #7f8c8d;
    margin-bottom: 0.5rem;
}

.producto-precio {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-top: auto;
}

.producto-precio-relacionado {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-top: auto;
}

.producto-precio .moneda {
    font-size: 0.9rem;
}

/* ============================================================
   BANNERS HORIZONTALES
   ============================================================ */
.banners-horizontales {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.banner-horizontal {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 350px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    transition: var(--transition-default);
}

.banner-horizontal:hover {
    transform: scale(1.02);
}

.banner-horizontal .banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(44,62,80,0.8) 0%, rgba(44,62,80,0.2) 100%);
}

.banner-horizontal .banner-content {
    position: relative;
    z-index: 2;
    color: white;
}

.banner-horizontal .banner-content h4 {
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.banner-horizontal .banner-content p {
    margin-bottom: 0;
    opacity: 0.9;
}

/* ============================================================
   DETALLE DE PRODUCTO
   ============================================================ */
.detalle-container {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-default);
}

.detalle-galeria {
    display: grid;
    gap: 1rem;
    grid-template-columns: 80px 1fr;
}

.detalle-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detalle-thumbnail {
    width: 100%;
    padding-top: 100%;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-default);
}

.detalle-thumbnail.active {
    border-color: var(--secondary-color);
}

.detalle-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detalle-imagen-principal {
    width: 100%;
    padding-top: 100%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f0f0f0;
}

.detalle-imagen-principal img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.detalle-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #25D366;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-default);
    margin-top: 1rem;
}

.detalle-whatsapp:hover {
    background: #1da851;
    color: white;
    transform: scale(1.05);
}

/* ============================================================
   PAGINACIÓN
   ============================================================ */
.pagination-container {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
}

.pagination .page-link {
    color: var(--secondary-color);
    border: none;
    margin: 0 3px;
    border-radius: 8px;
    transition: var(--transition-default);
}

.pagination .page-link:hover {
    background: var(--secondary-color);
    color: white;
}

.pagination .page-item.active .page-link {
    background: var(--secondary-color);
    color: white;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
    background: transparent;
    padding: 0.5rem 0;
    margin-bottom: 1.5rem;
}

.breadcrumb-item a {
    color: var(--secondary-color);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--text-dark);
}


/* ============================================================
   PIE DE PAGINA
   ============================================================ */

.pie-pagina {
    
	background: var(--primary-color); 
	color:#FFFFFF;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet (3 columnas) */
@media (max-width: 992px) {
    .productos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Móvil (2 columnas) */
@media (max-width: 576px) {
    .productos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .slide-content h2 {
        font-size: 1.8rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .slider-slide {
        min-height: 300px;
        padding: 1.5rem;
    }
    
    .banners-horizontales {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .banner-horizontal {
        height: 220px;
    }
    
    .detalle-galeria {
        grid-template-columns: 1fr;
    }
    
    .detalle-thumbnails {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .detalle-thumbnail {
        min-width: 60px;
        max-width: 60px;
        padding-top: 60px;
    }
    
    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .categorias-filtro {
        gap: 5px;
    }
    
    .btn-pill {
        padding: 0.3rem 1rem;
        font-size: 0.8rem;
    }
	
	.producto-precio-relacionado {
  /*  font-size: 0.2rem; */
    font-weight: 500;
    color: var(--secondary-color);
    margin-top: auto;
	font-size:0.8rem;
	margin-left: 1px;	
    }
	
	.producto-modelo-relacionado {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--text-dark);
    }
}

/* ============================================================
   ANIMACIONES
   ============================================================ */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.producto-card {
    animation: fadeInUp 0.6s ease forwards;
}

.producto-card:nth-child(2) { animation-delay: 0.1s; }
.producto-card:nth-child(3) { animation-delay: 0.2s; }
.producto-card:nth-child(4) { animation-delay: 0.3s; }
.producto-card:nth-child(5) { animation-delay: 0.4s; }
.producto-card:nth-child(6) { animation-delay: 0.5s; }
.producto-card:nth-child(7) { animation-delay: 0.6s; }
.producto-card:nth-child(8) { animation-delay: 0.7s; }