
/* ==================================================
   EL PUENTE - MATERIALES PARA CONSTRUCCIÓN
   Variables de Marca
================================================== */
:root {
  --azul-puente: #1b475e;
  --rojo-puente: #c90104;
  --negro-puente: #040606;
}
/* ==========================================================================
         --- Barra de Redes Sociales Flotante --- 
         ==========================================================================*/

      /* ==================================================
   Botones Sticky Redes Sociales
================================================== */
.sticky-social-bar {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 2px; /* Espacio sutil entre botones */
}

.sticky-social-bar .social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  color: #fff;
  font-size: 22px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: -2px 2px 5px rgba(0,0,0,0.1);
  border-radius: 5px 0 0 5px; /* Bordes redondeados sutiles */
}

/* Colores oficiales y de la marca */
.sticky-social-bar .phone { background-color: var(--azul-puente); }
.sticky-social-bar .whatsapp { background-color: #25D366; }
.sticky-social-bar .facebook { background-color: #1877F2; }
.sticky-social-bar .instagram { background-color: #E4405F; }
.sticky-social-bar .tiktok { background-color: var(--negro-puente); }

/* Efecto Hover (al pasar el ratón) */
.sticky-social-bar .social-btn:hover {
  width: 65px; /* Se expande un poco hacia la izquierda */
  background-color: var(--rojo-puente); /* Se unifican al rojo de la marca al tocarlos */
}

/* Ajuste para dispositivos móviles */
@media (max-width: 768px) {
  .sticky-social-bar .social-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  .sticky-social-bar .social-btn:hover {
    width: 50px;
  }
}
       /*======= --- Barra de Redes Sociales Flotante end ======================--- */

/* ==================================================
   Typography & Global
================================================== */
body {
  background: #fff;
  color: #555;
  border: 0;
  margin: 0;
  padding: 0;
  overflow-x: hidden !important;
  -webkit-font-smoothing: antialiased;
}

body, p, a, span, li, label, input {
  font-family: "Helvetica Now Condensed", "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-rendering: optimizeLegibility;
  font-weight: 400; /* light = 300, regular = 400, bold = 700 */
  line-height: 26px;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--negro-puente);
  font-weight: 700;
  font-family: "Helvetica Now Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-rendering: optimizeLegibility;
  margin-top: 0;
}

a { color: inherit; transition: .2s ease; text-decoration: none; }
a:hover { text-decoration: none; color: var(--rojo-puente); }
a:focus { outline: 0; }

section, .section-padding { padding: 10px 0; position: relative; }
.no-padding { padding: 0; }
.body-inner { position: relative; overflow: hidden; }

/* ==================================================
   Botones
================================================== */
.btn-primary, .btn-dark {
  border: 0;
  border-radius: 3px;
  padding: 12px 20px 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  font-family: "Helvetica Now Display", sans-serif;
  transition: 350ms;
  font-size: 14px;
}
.btn-primary { background: var(--rojo-puente); }
.btn-dark { background: var(--negro-puente); }

.btn-primary:hover, .btn-dark:hover { background: var(--azul-puente); color: #fff; }

.general-btn { margin-top: 50px; }

/* ==================================================
   Top Bar & Header
================================================== */
.top-bar {
  padding: 8px 0;
  background: var(--azul-puente);
  color: #fff;
}
ul.top-info { list-style: none; margin: 0; padding: 0; }
ul.top-info li { display: inline-block; padding-right: 15px; }
ul.top-info li i { font-size: 18px; color: var(--rojo-puente); margin-right: 5px; }
ul.top-info li p.info-text { margin: 0; display: inline-block; }

.top-social ul { list-style: none; padding: 0; margin: 0; }
.top-social ul li { display: inline-block; }
.top-social ul li a { color: #fff; font-size: 14px; transition: 400ms; padding: 9px 12px; }
.top-social ul li a:hover { color: var(--rojo-puente); }

.header-one { background: var(--azul-puente); box-shadow: 0px 3px 3px rgba(0,0,0,0.1); }
.header-one .logo-area { padding: 20px 0; background: #fff; }

ul.top-info-box { list-style: none; margin: 0; padding: 0; float: right; }
ul.top-info-box li { float: left; border-right: 1px solid #dedede; padding-right: 25px; margin-right: 25px; }
ul.top-info-box li:last-child { margin-right: 0; padding-right: 0; border-right: 0; }
ul.top-info-box li .info-box .info-box-title { font-size: 14px; margin-bottom: 8px; font-family: "Helvetica Now Display", sans-serif; }
ul.top-info-box li .info-box .info-box-subtitle { margin: 0; font-size: 15px; font-weight: 700; color: var(--negro-puente); }

/* Navegación */
.site-navigation { background: var(--azul-puente); }
ul.navbar-nav > li > a {
  font-family: "Helvetica Now Display", sans-serif;
  color: #fff !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  font-size: 14px;
  padding: 25px 0;
  transition: 350ms;
}
ul.navbar-nav > li:hover > a, ul.navbar-nav > li.active > a { color: var(--rojo-puente) !important; }

/* Dropdown */
.dropdown-menu { border-top: 2px solid var(--rojo-puente); border-radius: 0; padding: 0 20px; box-shadow: 0 6px 12px rgba(0,0,0,0.175); }
.dropdown-menu li a { font-family: "Helvetica Now Display", sans-serif; display: block; text-transform: uppercase; font-weight: 700; padding: 15px 0; border-bottom: 1px solid #e5e5e5; color: var(--negro-puente); }
.dropdown-menu li a:hover { color: var(--rojo-puente); }

/* ==================================================
   Slider Elegante
================================================== */
.banner-carousel .banner-carousel-item {
  height: 650px;
  color: #fff;
  background-position: 50% 50%;
  background-size: cover;
}
.slider-content { position: relative; height: 100%; width: 100%; background: rgba(0,0,0,0.4); } /* Oscurece la imagen para destacar texto */

.slide-title {
  font-size: 3.5rem;
  line-height: 1.1;
  font-weight: 700;
  color: #fff;
  margin: 20px 0 10px;
  text-transform: uppercase;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.slide-sub-title {
  font-size: 1.8rem;
  margin: 20px 0;
  color: #fff;
  font-weight: 400;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.slider.btn { margin: 15px 5px 0; }
.slider.border { background: none; border: 2px solid var(--rojo-puente) !important; }
.slider.border:hover { background: var(--rojo-puente); border: 2px solid transparent; }

/* Controles Slider */
.banner-carousel .carousel-control {
  position: absolute; top: 50%; z-index: 5;
  background-color: transparent; opacity: 0; transition: all .25s ease; border: 0;
}
.banner-carousel:hover .carousel-control { opacity: 1; }
.banner-carousel .carousel-control.left { left: 20px; }
.banner-carousel .carousel-control.right { right: 20px; }
.banner-carousel .carousel-control i { background: rgba(0,0,0,0.5); color: #fff; width: 60px; height: 60px; line-height: 60px; font-size: 22px; transition: all 500ms ease; }
.banner-carousel .carousel-control i:hover { background: var(--rojo-puente); }

/* ==================================================
   Llamada a la Acción & Secciones
================================================== */
.call-to-action-box { margin-top: -50px; position: relative; z-index: 10; }
.action-style-box { background: var(--azul-puente); padding: 30px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.action-title { color: #fff; margin: 0; font-size: 20px; text-transform: uppercase; }

.section-title { font-size: 18px; text-transform: uppercase; font-weight: 700; color: var(--rojo-puente); margin-bottom: 5px; }
.section-sub-title { font-weight: 900; font-size: 36px; color: var(--negro-puente); margin-bottom: 40px; }

/* Tarjetas de Producto */
.product-card { border: none; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; margin-bottom: 30px; border-radius: 8px; overflow: hidden; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.15); }
.product-card img { height: 220px; object-fit: cover; }
.product-title { color: var(--azul-puente); font-size: 1.25rem; margin-top: 15px; font-family: "Helvetica Now Display", sans-serif; }

/* ==================================================
   Footer
================================================== */
.footer { background-color: var(--negro-puente); color: #999; }
.footer-main { padding: 80px 0 60px; }
.footer .widget-title { font-size: 16px; font-weight: 700; margin: 0 0 30px; padding-left: 15px; text-transform: uppercase; color: #fff; border-left: 3px solid var(--rojo-puente); }
.footer-logo { margin-bottom: 25px; max-height: 60px; }
.footer-social ul { list-style: none; margin: 0; padding: 0; margin-left: -13px; }
.footer-social ul li { display: inline-block; }
.footer-social ul li a i { color: #999; transition: 400ms; padding: 10px 13px; font-size: 18px; }
.footer-social ul li:hover a i { color: #fff; }
.footer-widget ul.list-arrow li { border-bottom: 1px solid rgba(255,255,255,0.07); padding: 8px 0; }
.footer-widget ul.list-arrow li a { color: #747474; }
.footer-widget ul.list-arrow li:hover a { color: var(--rojo-puente); }

.copyright { background: var(--rojo-puente); color: #fff; padding: 25px 0; font-weight: 600; font-size: 14px; }

#back-to-top { right: 40px; bottom: 20px; z-index: 10; display: none; }
#back-to-top .btn.btn-primary { width: 40px; height: 40px; line-height: 40px; background: var(--negro-puente); color: #fff; padding: 0; font-size: 18px; }
#back-to-top .btn.btn-primary:hover { background: var(--azul-puente); }


/* ==================================================
   Módulos de Productos Individuales (Estilo Minimalista)
================================================== */
/* Separador de 3 puntos rojos */
.dots-separator {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 25px 0 40px;
}
.dots-separator span {
  width: 8px;
  height: 8px;
  background-color: var(--rojo-puente);
  border-radius: 50%;
}

/* Tarjetas de Producto Elegantes (Imágenes cuadradas con hover) */
.category-card-link {
  text-decoration: none !important;
  display: block;
}

.category-card {
  text-align: center;
  cursor: pointer;
}

.category-card .img-container {
  overflow: hidden;
  margin-bottom: 25px;
  /* El aspect-ratio asegura que las imágenes sean perfectamente cuadradas sin importar su tamaño original */
  aspect-ratio: 1 / 1; 
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Transición muy suave y elegante */
}

.category-card:hover img {
  transform: scale(1.08); /* Efecto de zoom */
}

.category-card h4 {
  color: var(--negro-puente);
  font-family: 'Helvetica Now Display', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.category-card .ver-mas {
  color: #888;
  font-family: 'Helvetica Now Condensed', sans-serif;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

/* Al pasar el mouse, el título y el "ver más" cambian a rojo */
.category-card:hover h4,
.category-card:hover .ver-mas {
  color: var(--rojo-puente);
}

/* --- Módulo Pisos Laminados (Ovalado) --- */
.flooring-module {
    padding: 5rem 0;
    text-align: center;
    background-color: #fff;
}

/* Botón flotante de cotización estilo píldora */
.cotiza-badge {
    display: inline-flex;
    align-items: center;
    background-color: #ffffff;
    border: 2px solid #e5e7eb;
    padding: 8px 25px;
    border-radius: 50px;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-decoration: none !important;
    font-family: 'Helvetica Now Condensed', sans-serif;
    font-weight: 700;
    gap: 12px;
    transition: all 0.3s ease;
}

.cotiza-badge:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    border-color: #25D366; /* Verde WhatsApp */
}

.cotiza-badge .wa-circle { 
    background-color: #25D366; 
    color: white; 
    width: 35px; 
    height: 35px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 1.2rem; 
}

.cotiza-badge span { 
    color: var(--negro-puente); 
    font-size: 1.1rem; 
    text-transform: uppercase;
}

/* Títulos del Módulo */
.flooring-module h2 { 
    font-family: 'Helvetica Now Display', sans-serif;
    color: var(--azul-puente); 
    font-size: 3rem; 
    font-weight: 700; 
    margin-bottom: 15px; 
}

.flooring-module p.subtitle { 
    color: #666; 
    max-width: 700px; 
    margin: 0 auto 50px; 
    font-size: 1.1rem; 
    font-family: 'Helvetica Now Condensed', sans-serif;
}

/* Grid de las tarjetas ovaladas */
.flooring-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.flooring-card-link {
    text-decoration: none !important;
    display: block;
}

.flooring-card { text-align: center; cursor: pointer; }

/* El contenedor ovalado */
.oval-img-wrapper { 
    width: 100%; 
    max-width: 320px; /* Limita el ancho máximo para que no crezca infinito */
    margin: 0 auto 25px auto; /* Centra el contenedor */
    aspect-ratio: 0.75; /* Relación de aspecto tipo "cápsula" o "espejo" */
    border-radius: 200px; /* Hace la forma ovalada/píldora */
    overflow: hidden; 
    border: 1px solid #eee; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
}

.oval-img-wrapper img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
}

/* Hover de la tarjeta */
.flooring-card:hover .oval-img-wrapper img { transform: scale(1.08); }

.flooring-card h4 { 
    font-family: 'Helvetica Now Display', sans-serif;
    font-size: 1.5rem; 
    color: var(--negro-puente); 
    font-weight: 700; 
    margin-bottom: 15px; 
    transition: color 0.3s ease;
}

.flooring-card:hover h4 { color: var(--rojo-puente); }

.btn-ver-mas { 
    background-color: var(--azul-puente); 
    color: white; 
    padding: 10px 30px; 
    border-radius: 4px; 
    font-family: 'Helvetica Now Condensed', sans-serif;
    text-transform: uppercase;
    font-weight: 700; 
    display: inline-block; 
    transition: background 0.3s; 
}

.flooring-card:hover .btn-ver-mas { background-color: var(--rojo-puente); color: white; }

/* RESPONSIVO: Aquí está la corrección para móviles */
@media (max-width: 991px) { 
    .flooring-grid { grid-template-columns: repeat(2, 1fr); } 
}

@media (max-width: 767px) { 
    .flooring-grid { 
        grid-template-columns: 1fr; /* Una columna en móviles */
        gap: 50px; /* Un poco más de espacio hacia abajo */
    } 
    .flooring-module h2 { font-size: 2.2rem; } 
    /* El truco: Limitamos aún más el ancho del óvalo en celulares */
    .oval-img-wrapper { max-width: 250px; } 
}

/* ==================================================
   MÓDULO DE DETALLE DE PRODUCTO (Individual)
================================================== */
.product-details-container {
    padding: 60px 0;
}

/* --- Galería --- */
.gallery-wrapper {
    max-width: 500px; /* Evita que la foto se haga gigante en pantallas grandes */
    margin: 0 auto;
}

.main-image-wrapper {
    position: relative;
    background: #f9f9f9;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    cursor: zoom-in;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.main-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.main-image-wrapper:hover img {
    transform: scale(1.08); /* Zoom sutil al pasar el mouse */
}

/* Miniaturas */
.thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
    justify-content: center;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    object-fit: cover;
    transition: all 0.3s;
    opacity: 0.6;
}

.thumbnail:hover { opacity: 1; }

.thumbnail.active {
    border-color: var(--rojo-puente);
    opacity: 1;
    transform: scale(0.95);
}

/* --- Información del Producto --- */
.info-section {
    padding: 10px 20px;
}

.category-tag {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--rojo-puente);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Helvetica Now Condensed', sans-serif;
    margin-bottom: 5px;
}

.product-title {
    font-size: 1.8rem;
    font-family: 'Helvetica Now Display', sans-serif;
    color: var(--azul-puente);
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.sku-share {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 1.5rem;
}

.sku { 
    color: #666; 
    font-size: 0.95rem; 
    font-family: 'Helvetica Now Condensed', sans-serif;
}

.description-title {
    font-weight: 700;
    font-family: 'Helvetica Now Display', sans-serif;
    color: var(--negro-puente);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.description-text {
    color: #555;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.features-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 2rem;
    padding: 0;
}

.features-list li {
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    color: var(--negro-puente);
}

.features-list li::before {
    content: "\f00c"; /* Icono de check de FontAwesome */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--rojo-puente);
    margin-right: 10px;
}

/* Botón WhatsApp Producto */
.btn-whatsapp-product {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: #25D366;
    color: #fff !important;
    text-decoration: none !important;
    padding: 15px 30px;
    border-radius: 8px;
    font-family: 'Helvetica Now Display', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    transition: all 0.3s;
    width: 100%;
}

.btn-whatsapp-product:hover {
    background-color: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

/* --- Lightbox --- */
.lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(4, 6, 6, 0.95);
    z-index: 99999; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center;
}
.lightbox-img { max-width: 90%; max-height: 80vh; border-radius: 5px; }
.lightbox-close { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 3rem; cursor: pointer; transition: 0.3s; }
.lightbox-close:hover { color: var(--rojo-puente); }
.lightbox-nav { position: absolute; top: 50%; width: 100%; display: flex; justify-content: space-between; padding: 0 40px; transform: translateY(-50%); pointer-events: none; }
.lightbox-nav .nav-btn { background: rgba(255,255,255,0.2); color: white; border: none; width: 60px; height: 60px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; pointer-events: auto; transition: 0.3s; }
.lightbox-nav .nav-btn:hover { background: var(--rojo-puente); }

/* ==================================================
   Buscador Dinámico en Navegación
================================================== */
.nav-search {
    position: relative;
}

.search-input {
    border-radius: 20px 0 0 20px !important;
    border: none !important;
    padding-left: 15px;
    height: 38px;
    width: 200px !important;
    font-family: 'Helvetica Now Condensed', sans-serif;
    transition: width 0.4s ease;
}

.search-input:focus {
    box-shadow: none !important;
    outline: none !important;
    width: 250px !important; /* Se expande un poco al hacer clic */
}

.search-btn {
    border-radius: 0 20px 20px 0 !important;
    background-color: var(--white) !important;
    border: none !important;
    color: var(--rojo-puente) !important;
    height: 38px;
    padding: 0 15px;
    transition: 0.3s;
}

.search-btn:hover {
    background-color: var(--rojo-puente) !important;
    color: #fff !important;
}

/* Caja de Resultados Desplegable */
.search-results-dropdown {
    position: absolute;
    top: 45px;
    right: 0;
    width: 100%;
    min-width: 250px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    display: none; /* Oculto por defecto */
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.search-result-item {
    display: block;
    padding: 10px 15px;
    color: var(--negro-puente);
    text-decoration: none;
    font-family: 'Helvetica Now Condensed', sans-serif;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: var(--rojo-puente);
    color: #fff;
    text-decoration: none;
}

.search-no-results {
    padding: 10px 15px;
    color: #888;
    font-size: 0.9rem;
    text-align: center;
    font-family: 'Helvetica Now Condensed', sans-serif;
}

/* Ajuste móvil para el buscador responsive */
@media (max-width: 991px) {
    .search-input { 
        width: 140px !important; 
        font-size: 0.9rem; 
    }
    .search-input:focus { 
        width: 180px !important; 
    }
    .search-results-dropdown { 
        width: 280px; 
        right: -40px; /* Centra un poco la cajita de resultados en móvil */
    }
}

/* Ajuste extra para celulares muy pequeños (ej. iPhone SE) */
@media (max-width: 380px) {
    .search-input { width: 110px !important; }
    .search-input:focus { width: 140px !important; }
    .search-results-dropdown { right: -50px; }
}

/* Estilo para el botón de expandir */
.img-container .btn-expand {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(27, 71, 94, 0.8); /* Azul puente con transparencia */
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
}

/* Mostrar botón al hacer hover en el contenedor */
.category-card:hover .btn-expand {
    opacity: 1;
    transform: scale(1.1);
}

.btn-expand:hover {
    background: var(--rojo-puente) !important;
}

/* Estilo de los botones de categoría */
.btn-pill {
    background-color: #f8f9fa;
    color: var(--azul-puente) !important;
    font-weight: bold;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-pill.active {
    background-color: var(--rojo-puente) !important;
    color: white !important;
    border-color: var(--rojo-puente) !important;
    box-shadow: 0 4px 10px rgba(201, 1, 4, 0.2);
}

.tab-content .list-group-item {
    font-family: 'Helvetica Now Condensed', sans-serif;
    border: none;
    padding: 10px 0;
}

.tab-content h5 {
    font-size: 1.1rem;
    margin-top: 10px;
}

/* Estilos para el Módulo de Pisos */
.icon-box {
    transition: transform 0.3s ease;
}

.category-card {
    transition: all 0.3s ease-in-out;
    border-top: 4px solid transparent !important; /* Borde superior dinámico */
}

.category-card:hover {
    transform: translateY(-10px);
    border-top: 4px solid var(--rojo-puente) !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

.category-card:hover .icon-box {
    transform: scale(1.1);
}

.category-card h4 {
    font-size: 1.25rem;
    color: var(--negro-puente);
    font-family: 'Helvetica Now Display', sans-serif;
}

.category-card ul li {
    padding: 4px 0;
    font-family: 'Helvetica Now Condensed', sans-serif;
}

.btn-outline-primary {
    color: var(--azul-puente);
    border-color: var(--azul-puente);
    font-family: 'Helvetica Now Display', sans-serif;
    font-weight: bold;
}

.btn-outline-primary:hover {
    background-color: var(--azul-puente);
    border-color: var(--azul-puente);
    color: white;
}

/* Ajustes para el Módulo de Pisos con Imágenes */
.category-card {
    transition: all 0.4s ease;
    border: 1px solid #eee !important;
}

.category-card .img-wrapper {
    width: 100%;
    aspect-ratio: 16 / 10; /* Formato panorámico elegante */
    overflow: hidden;
}

.category-card .img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* Efectos al pasar el mouse */
.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.12) !important;
    border-color: var(--rojo-puente) !important;
}

.category-card:hover .img-wrapper img {
    transform: scale(1.1);
}

.category-card h4 {
    font-family: 'Helvetica Now Display', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--azul-puente);
}

/* Botón estilo Materiales El Puente */
.btn-outline-danger {
    color: var(--rojo-puente);
    border-color: var(--rojo-puente);
    font-family: 'Helvetica Now Condensed', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
}

.btn-outline-danger:hover {
    background-color: var(--rojo-puente);
    border-color: var(--rojo-puente);
    color: #fff;
}

/* Ajustes para el Módulo de Pisos con Imágenes */
.category-card {
    transition: all 0.4s ease;
    border: 1px solid #eee !important;
}

.category-card .img-wrapper {
    width: 100%;
    aspect-ratio: 16 / 10; /* Formato panorámico elegante */
    overflow: hidden;
}

.category-card .img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* Efectos al pasar el mouse */
.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.12) !important;
    border-color: var(--rojo-puente) !important;
}

.category-card:hover .img-wrapper img {
    transform: scale(1.1);
}

.category-card h4 {
    font-family: 'Helvetica Now Display', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--azul-puente);
}

/* Botón estilo Materiales El Puente */
.btn-outline-danger {
    color: var(--rojo-puente);
    border-color: var(--rojo-puente);
    font-family: 'Helvetica Now Condensed', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
}

.btn-outline-danger:hover {
    background-color: var(--rojo-puente);
    border-color: var(--rojo-puente);
    color: #fff;
}

/* Estado normal del título dentro de la tarjeta */
.product-card .product-title {
    color: var(--azul-puente); /* O el color que tengas por defecto */
    transition: color 0.3s ease; /* Hace que el cambio sea suave */
    text-decoration: none;
}

/* Efecto al pasar el mouse por la tarjeta (Hover) */
.product-card:hover .product-title {
    color: var(--rojo-puente) !important;
}

/* Quitar subrayado de los enlaces si los hubiera */
.product-card a:hover {
    text-decoration: none;
}

/* ==================================================
   Efectos Hover para Product Cards
================================================== */

/* 1. Preparar el contenedor de la imagen */
.product-card .img-container {
    overflow: hidden; /* Importante: oculta lo que sobresale al hacer zoom */
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3; /* Proporción fija para que todas las fotos midan igual */
}

/* 2. Preparar la imagen para la transición */
.product-card .img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ajusta la imagen sin deformarla */
    transition: transform 0.5s ease; /* Duración y suavidad del zoom */
}

/* 3. Preparar el título para la transición de color */
.product-card .product-title {
    color: var(--azul-puente); /* Color inicial */
    transition: color 0.3s ease; /* Duración y suavidad del cambio de color */
    font-weight: 700;
    font-family: 'Helvetica Now Display', sans-serif;
}

/* ==================================================
   ESTILOS ESPECÍFICOS MÓDULO ACERO (Hardware Grid)
================================================== */

/* Contenedor de la imagen: Fuerza proporción 1:1 (cuadrada) para ferretería */
.product-card .img-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1; /* Proporción cuadrada limpia */
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px; /* Espacio para que la imagen no toque los bordes */
}

/* Imagen dentro del contenedor */
.product-card .img-container img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* No corta la imagen, la ajusta */
    transition: transform 0.5s ease; /* Suavidad del zoom */
}

/* Estilo Base del Título */
.product-card .product-title {
    color: var(--azul-puente);
    transition: color 0.3s ease;
    font-weight: 700;
    margin-bottom: 5px;
    /* Mantiene los títulos en una línea para alineación */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; 
}

/* Base de la Tarjeta */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid transparent !important; /* Preparar para borde rojo */
}

/* ==================================================
   EFECTOS HOVER (Al pasar el mouse por la tarjeta)
================================================== */

/* 1. Zoom de la imagen */
.product-card:hover .img-container img {
    transform: scale(1.1);
}

/* 2. Color del título a Rojo Puente */
.product-card:hover .product-title {
    color: var(--rojo-puente) !important;
}

/* 3. Elevación de la tarjeta, sombra y borde */
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
    border-color: #eee !important; /* Un borde sutil para definirla */
}

/* Ajustes Responsivos Móviles */
@media (max-width: 767px) {
    .product-card h4.product-title {
        font-size: 0.9rem; /* Títulos más pequeños en celular */
    }
    .product-card .card-body {
        padding: 10px !important;
    }
}


/**/
/* ================= EFECTO OJO GRIS (CENTRADOR FORZADO) ================= */

/* Contenedor principal */
.product-card .img-container {
    position: relative !important;
    background-color: #f8f9fa;
    display: block !important;
    width: 100% !important;
}

/* Estilo del recuadro del ojo (Overlay) Centrado a la fuerza */
.product-card .overlay-eye {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important; /* Anula códigos viejos que lo empujaban a la derecha */
    bottom: auto !important; /* Anula códigos viejos que lo bajaban */
    transform: translate(-50%, -50%) !important; /* Centrado matemático perfecto */
    
    background-color: rgba(74, 79, 89, 0.7) !important;
    color: white !important;
    width: 55px !important;
    height: 55px !important;
    border-radius: 8px !important;
    
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    
    opacity: 0 !important;
    transition: all 0.3s ease !important;
    z-index: 99 !important;
    pointer-events: none !important; /* Evita que el ojo bloquee el clic de la imagen */
}

/* Aseguramos que el icono tenga tamaño correcto */

/* El icono empieza blanco y con transición suave */
.product-card .overlay-eye i {
    font-size: 22px !important;
    color: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* Solo al poner el mouse exactamente sobre el recuadro gris, el ojo cambia a Rojo Puente y crece */
.product-card .overlay-eye:hover i {
    color: var(--rojo-puente) !important;
    transform: scale(1.2) !important; /* Crece de forma sutil pero notoria */
}

/* Efecto al pasar el mouse (Hover) */
.product-card .img-container:hover .overlay-eye {
    opacity: 1 !important;
}

.product-card .img-container:hover .img-zoom {
    transform: scale(1.1) !important;
}

/* Suavizar el zoom */
.img-zoom {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/*=========*/

/* ==================================================
   MÓDULO DE SERVICIOS (Cimbra, Excavación, Escombro)
================================================== */

/* Fondo suave para la sección entera */
.bg-light {
    background-color: #f8f9fa !important;
}

/* Tarjeta base del servicio */
.service-card {
    border-radius: 12px;
    transition: all 0.4s ease;
    background: #fff;
    overflow: visible; /* Importante para que el icono flotante se vea */
    margin-top: 15px; /* Da espacio para el icono que sobresale */
}

/* Efecto hover general de la tarjeta */
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
}

/* Zoom a la imagen del servicio */
.service-card:hover .service-img-wrapper img {
    transform: scale(1.08);
}

/* Redondeo de la parte superior de la imagen */
.service-img-wrapper {
    border-radius: 12px 12px 0 0;
}

/* --- El Icono Flotante --- */
.service-icon-badge {
    position: absolute;
    bottom: 5px; /* Lo empuja hacia abajo para que quede entre la foto y el texto */
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--azul-puente);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 24px;
    box-shadow: 0 5px 15px rgba(27, 71, 94, 0.4);
    z-index: 10;
    transition: all 0.3s ease;
    border: 4px solid #fff; /* Borde blanco para separarlo de la foto */
}

/* Al pasar el mouse, el icono cambia al rojo puente */
.service-card:hover .service-icon-badge {
    background-color: var(--rojo-puente);
    box-shadow: 0 5px 15px rgba(201, 1, 4, 0.4);
    transform: rotateY(180deg); /* Un pequeño giro 3D elegante */
}

/* --- Textos --- */
.service-title {
    font-family: 'Helvetica Now Display', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--negro-puente);
    margin-top: 15px;
    transition: color 0.3s ease;
}

.service-card:hover .service-title {
    color: var(--rojo-puente);
}

.service-desc {
    font-family: 'Helvetica Now Regular', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
}

/* --- Botón Especial para Servicios --- */
.btn-cotizar-servicio {
    background-color: transparent;
    color: var(--azul-puente);
    border: 2px solid #e5e7eb;
    font-family: 'Helvetica Now Condensed', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    padding: 12px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hover del botón (Estilo WhatsApp) */
.btn-cotizar-servicio:hover {
    background-color: #25D366; /* Verde WhatsApp */
    color: #fff;
    border-color: #25D366;
    box-shadow: 0 8px 15px rgba(37, 211, 102, 0.2);
}