/* ==========================================================
   coimco-site.css
   Estilos extraídos de los archivos PHP del sitio Coimco
   Fuentes: menu.php, footer.php, about.php, contact.php,
            category.php, product.php, search.php, index.php
   ========================================================== */


/* ── menu.php ─────────────────────────────────────────────── */

/* Topbar navbar responsive */
#topNav .container { overflow: hidden; }

@media (max-width: 767px) {
  #topNav a.logo { max-width: 120px !important; }
  #topNav a.logo > img { height: auto !important; width: 100%; }
}

/* Botones de sitios relacionados */
.cinematic-card {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}

.cinematic-card img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
  display: block;
}

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

.cinematic-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.45) 50%,
    rgba(255,255,255,0) 100%
  );
  transform: skewX(-20deg);
  z-index: 2;
  pointer-events: none;
}

.cinematic-card:hover::before {
  animation: cinematic-shine 0.6s ease forwards;
}

@keyframes cinematic-shine {
  0%   { left: -75%; }
  100% { left: 125%; }
}


/* ── footer.php ───────────────────────────────────────────── */

footer#footer {
  background-color: #014380;
}

footer#footer a[href^="tel"],
footer#footer a[href^="mailto"],
footer#footer .block {
  color: white;
}


/* ── about.php ────────────────────────────────────────────── */

/* Título de página sección Nosotros */
.page-header h1 {
  color: #252525;
  padding-top: 7px;
  font-family: Montserrat, sans-serif;
  font-weight: 500;
  font-size: 22px;
}

/* SVG separadores de sección parallax */
.parallax svg {
  fill: #ffffff;
  padding: 0;
  margin: 0;
  display: block;
  position: relative;
  z-index: 100;
}


/* ── contact.php ──────────────────────────────────────────── */

/* iframe del mapa de Google */
.contact-map iframe {
  border: 0;
  width: 100%;
  height: 450px;
}


/* ── category.php ─────────────────────────────────────────── */

/* Badge de categoría en tarjeta de producto */
.shop-item-info .badge {
  text-transform: uppercase;
}

/* Título del producto en listado */
.shop-item-summary h2 {
  font-weight: bold;
  text-transform: uppercase;
  font-size: 13px;
  line-height: 1.25;
}

/* Clearfix entre filas de productos (cada 4 items) */
.shop-item-list .row-clear {
  clear: both;
}

/* Clearfix inline generado por PHP */
div[style="clear:both;"] {
  clear: both;
}


/* ── product.php ──────────────────────────────────────────── */

/* Contenedor imagen principal del producto */
.thumbnail.relative {
  background: #fff;
}

/* Título del producto en ficha */
.product-title {
  font-weight: bold;
  text-transform: uppercase;
  font-size: 15px;
  line-height: 1.25;
}

/* Modal galería de fotos */
#productGalleryModal.show,
#productGalleryModal[style*="display: block"] {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

#productGalleryModal .modal-dialog {
  margin: 0;
}

#productGalleryModal .modal-content {
  box-shadow: none !important;
}

.modal-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  border-radius: 8px;
  min-width: 44px;
  min-height: 44px;
  opacity: .95;
  display: none;
}

.modal-gallery-prev { left: -8px; }
.modal-gallery-next { right: -8px; }

.modal-thumb-item {
  width: calc(50% - 8px);
  margin: 4px;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
}

.modal-thumb-item.active {
  border-color: #0f447e;
}

.modal-thumb-item img {
  width: 100%;
  height: 90px;
  object-fit: contain;
  background: #f8f8f8;
  transition: opacity .2s ease;
}

.js-gallery-thumb img {
  transition: opacity .2s ease;
}

.js-gallery-thumb:hover img,
.modal-thumb-item:hover img {
  opacity: .65;
}

#modalMainImage {
  box-shadow: 0 0 12px rgba(0, 0, 0, .14);
}

/* Modal galería responsive */
@media (max-width: 767px) {
  #productGalleryModal .modal-dialog {
    margin: 10px;
    max-width: calc(100% - 20px);
  }

  #productGalleryModal .modal-content {
    max-height: calc(100vh - 20px);
    overflow-y: auto;
  }

  #productGalleryModal #modalGalleryThumbs {
    max-height: 160px;
    overflow-y: auto;
  }

  #productGalleryModal #modalMainImage {
    max-height: 260px;
  }
}


/* ── index.php ────────────────────────────────────────────── */

/* Sección principal con carruseles */
section.main-sliders {
  padding-top: 10px;
  padding-bottom: 50px;
}


/* ── search.php / category.php (compartido) ───────────────── */

/* Título del producto en resultados de búsqueda */
.shop-item-summary h2 strong {
  font-weight: bold;
  text-transform: uppercase;
  font-size: 13px;
  line-height: 1.25;
}
