/* --- VARIABLES DE MARCA --- */
:root {
    --color-marca: #e31e24; /* Rojo MoliShop */
    --color-oscuro: #1a1a1a;
    --color-fondo: #f4f6f9;
    --color-texto: #333333;
}

html { scroll-behavior: smooth; }

body {
    padding-top: 76px;
    font-family: 'Poppins', sans-serif;
    background-color: var(--color-fondo);
    color: var(--color-texto);
}

/* --- NAVBAR --- */
.navbar-brand img { height: 40px; }
.nav-link { font-weight: 600; color: var(--color-oscuro) !important; transition: color 0.3s; }
.nav-link:hover { color: var(--color-marca) !important; }

/* --- HERO SLIDER --- */
.carousel-principal .carousel-item { height: 65vh; min-height: 400px; background-color: #000; }
.carousel-principal .carousel-item img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; animation: kenburns 20s infinite alternate; }
@keyframes kenburns { 0% { transform: scale(1); } 100% { transform: scale(1.15); } }
.carousel-caption { bottom: 30%; z-index: 10; }
.carousel-caption h2 { font-size: 3rem; font-weight: 800; text-shadow: 2px 2px 10px rgba(0,0,0,0.7); }

/* --- TARJETAS --- */
.card-producto { background: white; border-radius: 15px; border: none; transition: transform 0.3s; height: 100%; box-shadow: 0 5px 15px rgba(0,0,0,0.05); overflow: hidden; }
.card-producto:hover { transform: translateY(-5px); }
.img-contenedor { height: 250px; padding: 20px; display: flex; align-items: center; justify-content: center; background: white; }
.img-contenedor img { max-height: 100%; max-width: 100%; object-fit: contain; }
.info-producto { padding: 20px; border-top: 1px solid #f1f1f1; }
.precio { color: var(--color-marca); font-size: 1.25rem; font-weight: 800; }

.oferta-item { margin: 10px; border-radius: 15px; overflow: hidden; position: relative; box-shadow: 0 5px 15px rgba(0,0,0,0.1); transition: transform 0.3s; background: #000; }
.oferta-item:hover { transform: translateY(-5px); }
.oferta-item img { width: 100%; height: 250px; object-fit: cover; display: block; }
.oferta-content { position: absolute; bottom: 0; left: 0; width: 100%; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); color: white; padding: 20px; text-align: left; }
.oferta-content h4 { font-size: 1.2rem; font-weight: 700; margin-bottom: 5px; text-transform: uppercase; }

.experiencia-card { background: white; padding: 30px; border-radius: 15px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); height: 100%; border-bottom: 4px solid transparent; transition: all 0.3s; }
.experiencia-card:hover { transform: translateY(-5px); border-bottom-color: var(--color-marca); }
.cliente-foto { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; margin-bottom: 15px; border: 2px solid var(--color-marca); }

.unboxing-card { position: relative; border-radius: 15px; overflow: hidden; height: 100%; min-height: 250px; cursor: pointer; }
.unboxing-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.unboxing-card:hover img { transform: scale(1.1); }
.play-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 60px; height: 60px; background: rgba(227, 30, 36, 0.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 24px; animation: pulse-red 2s infinite; }
@keyframes pulse-red { 0% { box-shadow: 0 0 0 0 rgba(227, 30, 36, 0.7); } 70% { box-shadow: 0 0 0 15px rgba(227, 30, 36, 0); } 100% { box-shadow: 0 0 0 0 rgba(227, 30, 36, 0); } }

.social-item { position: relative; overflow: hidden; border-radius: 10px; margin-bottom: 30px; height: 200px; }
.social-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.social-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s; }
.social-item:hover .social-overlay { opacity: 1; }
.social-item:hover img { transform: scale(1.1); }

.ubicacion-card { background: white; border-radius: 15px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.08); transition: transform 0.3s ease; height: 100%; border: 1px solid #eee; display: flex; flex-direction: column; }
.ubicacion-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.12); }
.ubi-img-contenedor { width: 100%; aspect-ratio: 1 / 1; height: auto; background-color: #f8f9fa; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ubi-img-contenedor img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.ubicacion-card:hover .ubi-img-contenedor img { transform: scale(1.05); }
.ubi-info { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.border-left-marca { border-left: 5px solid var(--color-marca); }

.subscribe { background-color: white; padding: 80px 0; border-top: 1px solid #eee; }
.main-dark-button { display: inline-block; background-color: #2a2a2a; color: #fff; font-size: 13px; font-weight: 500; padding: 12px 25px; text-transform: uppercase; transition: all .3s; border: none; outline: none; }
.main-dark-button:hover { background-color: var(--color-marca); color: #fff; }
.btn-whatsapp-flotante { position: fixed; bottom: 30px; right: 30px; background-color: #25d366; color: white; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; box-shadow: 0 4px 10px rgba(0,0,0,0.3); z-index: 1000; text-decoration: none; }
.btn-whatsapp-flotante:hover { background-color: #128c7e; color: white; }

@media (max-width: 768px) { .carousel-principal .carousel-item { height: 50vh; min-height: 300px; } .carousel-caption h2 { font-size: 1.8rem; } .oferta-item img { height: 200px; } .oferta-content { padding: 15px; } .oferta-content h4 { font-size: 1rem; } }

/* --- MÓDULO PORTAFOLIO (ESTILO CORPORATIVO) --- */
.body-portafolio { padding-top: 0; background-color: #000; overflow-x: hidden; }

/* LOGO ESQUINA */
.brand-logo-portafolio { position: fixed; top: 30px; left: 30px; z-index: 1050; height: 50px; width: auto; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); transition: transform 0.3s; }
.brand-logo-portafolio:hover { transform: scale(1.05); }

/* --- NUEVO: CONTENEDOR LOGO BLANCO (BADGE/INSIGNIA) --- */
.logo-badge-white {
    background-color: #fff; /* Fondo blanco puro */
    padding: 20px 40px; /* Espacio interno generoso */
    border-radius: 20px; /* Bordes redondeados */
    display: inline-block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); /* Sombra elegante */
    margin-bottom: 30px;
    transition: transform 0.3s;
}
.logo-badge-white:hover { transform: translateY(-5px); }
.logo-badge-white img {
    max-height: 80px; /* Tamaño controlado del logo */
    width: auto;
    display: block;
}

.btn-salir-portafolio { position: fixed; top: 30px; right: 30px; z-index: 1050; color: white; background: rgba(0,0,0,0.5); padding: 10px 20px; border-radius: 50px; text-decoration: none; font-weight: 600; border: 1px solid rgba(255,255,255,0.2); transition: all 0.3s; backdrop-filter: blur(5px); }
.btn-salir-portafolio:hover { background: var(--color-marca); color: white; border-color: var(--color-marca); }

.nav-arrows { position: fixed; bottom: 30px; right: 30px; z-index: 1050; }
.nav-arrows button { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.3); color: white; width: 50px; height: 50px; border-radius: 50%; margin-left: 10px; cursor: pointer; transition: all 0.3s; backdrop-filter: blur(5px); outline: none; }
.nav-arrows button:hover { background: white; color: black; transform: scale(1.1); }

.slide-portafolio { height: 100vh; position: relative; overflow: hidden; }
.bg-portafolio { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.6; transform-origin: center; }
.active .bg-portafolio { animation: zoomInSlow 10s infinite alternate; }
@keyframes zoomInSlow { from { transform: scale(1); } to { transform: scale(1.1); } }

.overlay-contenido { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; z-index: 10; padding: 20px; }

/* Estilo para slides de texto/métricas */
.glass-card { 
    background: rgba(20, 20, 20, 0.7); 
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border: 1px solid rgba(255, 255, 255, 0.1); 
    padding: 60px; border-radius: 20px; color: white; max-width: 800px; width: 90%;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5); opacity: 0; transform: translateY(50px);
    overflow-y: auto; max-height: 85vh; 
}
.active .glass-card { animation: fadeInUp 0.8s forwards 0.3s; }

/* Estilo para slides de GALERÍA SUCURSALES (Fusión Slider) */
.slide-galeria-simple .glass-card {
    padding: 30px;
    background: rgba(0,0,0,0.6); /* Fondo más oscuro para resaltar foto */
    text-align: center;
    max-width: 90%;
    width: auto;
}
.img-galeria-slide {
    max-height: 60vh; /* Altura máxima controlada */
    width: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: 10px;
    cursor: zoom-in; /* Cursor lupa */
    transition: transform 0.3s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.img-galeria-slide:hover { transform: scale(1.02); }
.caption-galeria { font-size: 2rem; font-weight: 700; margin-top: 20px; color: white; letter-spacing: 1px; }

.titulo-portafolio { font-size: 3.5rem; font-weight: 800; margin-bottom: 10px; line-height: 1.1; }
.subtitulo-portafolio { font-size: 1.5rem; color: var(--color-marca); margin-bottom: 20px; letter-spacing: 2px; text-transform: uppercase; font-weight: 600; }
.texto-portafolio { font-size: 1.1rem; opacity: 0.9; margin-bottom: 40px; line-height: 1.6; }

.metricas-container { display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,0.2); padding-top: 30px; }
.metrica-box { text-align: center; opacity: 0; transform: scale(0.8); }
.active .metrica-box { animation: popIn 0.5s forwards; }
.active .metrica-box:nth-child(1) { animation-delay: 0.8s; }
.active .metrica-box:nth-child(2) { animation-delay: 1.0s; }
.active .metrica-box:nth-child(3) { animation-delay: 1.2s; }

.dato-numero { font-size: 2.5rem; font-weight: 700; color: white; display: block; }
.dato-label { font-size: 0.9rem; text-transform: uppercase; opacity: 0.7; letter-spacing: 1px; }

@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }
@keyframes popIn { to { opacity: 1; transform: scale(1); } }

.text-center .metricas-container { justify-content: center; }
.text-center .titulo-portafolio { font-size: 4.5rem; }

/* --- ESTILOS LIGHTBOX MODAL --- */
#modalGaleria .modal-content { background-color: transparent; border: none; }
#modalGaleria .modal-header { border: none; }
#modalGaleria .close { color: white; text-shadow: none; opacity: 1; font-size: 3rem; font-weight: bold; padding: 0; margin: 0; }
#img-lightbox { max-height: 90vh; width: auto; max-width: 100%; margin: 0 auto; display: block; border-radius: 5px; box-shadow: 0 10px 50px rgba(0,0,0,0.9); }

/* --- RESPONSIVIDAD DEL PORTAFOLIO (MÓVILES) --- */
@media (max-width: 768px) {
    .brand-logo-portafolio { height: 35px; top: 20px; left: 20px; }
    .btn-salir-portafolio { top: 20px; right: 20px; padding: 5px 15px; font-size: 0.8rem; }
    .nav-arrows { bottom: 20px; right: 20px; }
    .nav-arrows button { width: 40px; height: 40px; }
    
    .glass-card { padding: 30px 20px; width: 95%; border-radius: 15px; }
    
    .titulo-portafolio { font-size: 2rem; } 
    .text-center .titulo-portafolio { font-size: 2.5rem; }
    .subtitulo-portafolio { font-size: 1rem; margin-bottom: 15px; }
    .texto-portafolio { font-size: 0.95rem; margin-bottom: 20px; }
    
    .logo-badge-white { padding: 15px 25px; margin-bottom: 20px; }
    .logo-badge-white img { max-height: 50px; }

    .metricas-container { flex-direction: column; align-items: center; padding-top: 20px; }
    .metrica-box { margin-bottom: 15px; }
    .dato-numero { font-size: 2rem; }

    /* Ajuste para galería en móvil */
    .img-galeria-slide { max-height: 40vh; } 
    .caption-galeria { font-size: 1.5rem; margin-top: 15px; }
}/* --- NUEVOS ESTILOS PARA PRODUCTOS --- */
.badge-precio {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--color-marca);
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  animation: bounceIn 0.5s;
}

@keyframes bounceIn {
  0% {
    transform: scale(0);
  }
  80% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.table-sm th,
.table-sm td {
  padding: 0.5rem;
  vertical-align: middle;
  border-top: 1px solid #dee2e6;
}

.modal-content {
  border-radius: 15px;
  overflow: hidden;
}

.precio-producto {
  color: var(--color-marca);
}
