
/* ==========================================================
   1.  TYPOGRAPHY  (Fuentes personalizadas)
   ---------------------------------------------------------- */
/* GoogleSansFlex + RobotoCondensed families – loaded with swap para evitar FOIT */
@font-face {
  font-family: "GoogleSansFlex Light";
  src: url("../../accesorios/fuente/GoogleSansFlex_120pt-Light.ttf") format("opentype");
  font-display: swap;
}
@font-face {
  font-family: "GoogleSansFlex Medium";
  src: url("../../accesorios/fuente/GoogleSansFlex_120pt-Medium.ttf") format("opentype");
  font-display: swap;
}
@font-face {
  font-family: "RobotoCondensed Bold";
  src: url("../../accesorios/fuente/RobotoCondensed-Bold.ttf") format("opentype");
  font-display: swap;
}
@font-face {
  font-family: "GoogleSansFlex Bold";
  src: url("../../accesorios/fuente/GoogleSansFlex_120pt-Bold.ttf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "GoogleSansFlex Regular";
  src: url("../../accesorios/fuente/GoogleSansFlex_120pt-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "GoogleSansFlex ExtraBold";
  src: url("../../accesorios/fuente/GoogleSansFlex_120pt-ExtraBold.ttf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Utilidades tipográficas */
.font-gsans-medium      { font-family: "GoogleSansFlex Medium", sans-serif !important; }
.font-gsans-light       { font-family: "GoogleSansFlex Light", "GoogleSansFlex Medium", sans-serif !important; }
.font-roboto-bold       { font-family: "RobotoCondensed Bold", "GoogleSansFlex Medium", sans-serif !important; }
.font-gsans-bold        { font-family: "GoogleSansFlex Bold", "GoogleSansFlex Medium", sans-serif !important; }
.font-gsans-extrabold   { font-family: "GoogleSansFlex ExtraBold", "GoogleSansFlex Medium", sans-serif !important; }

/* ==========================================================
    2.  GLOBAL  (Raíz y helpers)
    ---------------------------------------------------------- */
:root {
  --font-primary: "GoogleSansFlex Medium", sans-serif;
}

html {
  font-family: var(--font-primary);
  font-family: var(--font-primary);
}

/* Indicador de carga de fuentes */
.font-loading-indicator {
  position: fixed;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12px;
  z-index: 9999;
  transition: opacity 0.3s ease;
}
html.fonts-loaded .font-loading-indicator { opacity: 0; }

/* ==========================================================
   3.  ANIMATIONS  (Keyframes reutilizables)
   ---------------------------------------------------------- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); background: transparent; }
  to   { opacity: 1; transform: translateY(0); background: rgba(51, 51, 51, 0.527); }
}

@keyframes animate-preloader {
  0%   { width: 10px; height: 10px; top: calc(50% - 5px); left: calc(50% - 5px); opacity: 1; }
  100% { width: 72px; height: 72px; top: calc(50% - 36px); left: calc(50% - 36px); opacity: 0; }
}

/* ==========================================================
   4.  HEADER  (Navbar + mobile menu)
   ---------------------------------------------------------- */
#header {
  transition: all 0.3s ease-in-out;
}
#header.scrolled {
  backdrop-filter: blur(15px);
  background: rgba(37, 37, 37, 0.63);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#mobile-menu {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  margin-top: 0.5rem;
  padding-top: 0.5rem;
}
#mobile-menu:not(.hidden) { animation: fadeIn 0.3s ease-in-out; }

/* enlaces navbar */
#desktop-navbar a,
#mobile-menu a {
  position: relative;
  transition: all 0.3s ease;
}
#desktop-navbar a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: #ca8a04;
  transition: width 0.3s ease;
}
#desktop-navbar a:hover::after { width: 100%; }

/* ==========================================================
   5.  FOOTER  (Bloques reutilizables)
   ---------------------------------------------------------- */
.footer {
  color: var(--color-white);
  font-size: 14px;
}
.footer-content {
  background: #414a9a;
  padding: 60px 0 30px;
}
.footer-info { margin-bottom: 30px; }
.footer-info p {
  font: 14px/24px var(--font-primary);
  color: var(--color-white);
  margin: 0;
}
@media (max-width: 780px) { .footer-info h3 { text-align: center; } }

.footer h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-white);
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 15px;
}
.footer h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--color-primary);
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  padding: 10px 0;
  display: flex;
  align-items: center;
}
.footer-links li:first-child { padding-top: 0; }
.footer-links a {
  color: rgba(var(--color-white-rgb), 0.7);
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--color-white); }

.footer-newsletter form {
  margin-top: 30px;
  background: var(--color-white);
  padding: 6px 10px;
  border-radius: 4px;
  position: relative;
}
.footer-newsletter input[type="email"] {
  border: 0;
  padding: 4px;
  width: calc(100% - 110px);
}

.footer-legal {
  padding: 30px 0;
  background: #454544;
}
.footer-legal .credits {
  padding-top: 4px;
  font-size: 13px;
  color: var(--color-white);
}
.footer-legal .credits a { color: var(--color-primary-light); }

.footer-legal .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 18px;
  background: rgba(var(--color-white-rgb), 0.1);
  color: var(--color-white);
  border-radius: 4px;
  margin-right: 4px;
  transition: background 0.3s;
}
.footer-legal .social-links a:hover {
  background: var(--color-primary);
  text-decoration: none;
}

/* ==========================================================
   6.  SIDE SOCIAL BAR  (Redes laterales fijas)
   ---------------------------------------------------------- */
#container-redes {
  position: fixed;
  z-index: 999;
  inset: 0 auto 0 0;
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
}
#container-redes ul {
  list-style: none;
  padding: 10px 0;
  margin: 0 auto;
  min-height: 80vh;
  display: grid;
}
#container-redes li {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
#container-redes li:hover { cursor: pointer; }

.redes-items {
  color: rgb(0, 162, 255);
  font-size: xx-large;
}
.redes-items .bi:hover { color: rgb(255, 69, 0); }

/* versiÃ³n navbar (mÃ³vil) */
#container-redes-navbar {
  display: flex;
  justify-content: flex-start;
  margin-top: 2em;
}
#container-redes-navbar .bi {
  font-size: large;
  transition: color 0.2s;
}
#container-redes-navbar .bi:hover { color: rgb(255, 69, 0); }

/* responsive */
@media (max-width: 766px) { #container-redes { display: none; } }
@media (min-width: 766px) {
  #container-redes { margin-left: 15px; }
  #container-redes li { margin: 1.5em 0; }
  #container-redes-navbar { display: none; }
}

/* ==========================================================
   7.  WHATSAPP FLOAT + POPUP
   ---------------------------------------------------------- */

/* Estilos del Icono de WhatsApp */
#contenedor-whatsapp-icon {
    position: fixed;
    right: 15px;
    top: 60px;
    z-index: 51;
    margin-right: 5px;
    padding: 10px 0px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* botÃ³n principal */
#iconoPadre .bi-whatsapp {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  background: rgb(0, 162, 255);
  color: white;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}
#iconoPadre .bi-whatsapp:hover { background: orangered; }

#content {
    border-left: solid 4px;
    border-left-color: rgb(0, 162, 255);
    background-color: #6e6d6d;
    box-shadow: 2px 2px 5px rgba(59, 59, 59, 0.553);
    padding: 5px 2px 5px 6px;
    margin-bottom: 6px;
}
.iconos {
  display: none;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  pointer-events: none;
}
.aparecer {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    opacity: 1;
    pointer-events: auto;
}

.aparecer>span {
    width: 2px;
    background-color: white;
    display: block;
    height: 20px;
}

.iconos a {
    color: white;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}


.iconos a:hover span { color: orangered; }
.iconos a:hover .bi-whatsapp { background: orangered; }

/* popup genÃ©rico */
#popup-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.75);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#popup-container.show {
  opacity: 1;
  visibility: visible;
}

.popup-content {
  position: relative;
  transition: transform 0.4s ease;
  max-width: 90vw;
  max-height: 90vh;
}

#popup-container.show .popup-content {
  transform: scale(1);
}

.popup-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

/* Botón WhatsApp dentro del popup (acción = botón, no la imagen) */
.popup-wa-btn {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 9999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease;
  z-index: 5;
}

.popup-wa-btn:hover {
  background: #1ebe5b;
}

/* === Posiciones del popup (sin estas reglas el popup siempre queda centrado) === */
.popup-content.position-top { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); }
#popup-container.show .popup-content.position-top { transform: translateX(-50%); }
.popup-content.position-bottom { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); }
#popup-container.show .popup-content.position-bottom { transform: translateX(-50%); }
.popup-content.position-left { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); }
#popup-container.show .popup-content.position-left { transform: translateY(-50%); }
.popup-content.position-right { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); }
#popup-container.show .popup-content.position-right { transform: translateY(-50%); }
.popup-content.position-top-left { position: absolute; top: 20px; left: 20px; }
.popup-content.position-top-right { position: absolute; top: 20px; right: 20px; }
.popup-content.position-bottom-left { position: absolute; bottom: 20px; left: 20px; }
.popup-content.position-bottom-right { position: absolute; bottom: 20px; right: 20px; }
#popup-container.show .popup-content.position-top-left,
#popup-container.show .popup-content.position-top-right,
#popup-container.show .popup-content.position-bottom-left,
#popup-container.show .popup-content.position-bottom-right { transform: scale(1); }

.desk {
  display: block;
}

.mov {
  display: none;
}

@media (max-width: 768px) {
  .desk {
    display: none;
  }

  .mov {
    display: block;
  }
}

#close-button {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 35px;
  height: 35px;
  background: #fff;
  color: #333;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: start;
  font-size: 25px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
  z-index: 10;
  line-height: 35px;
}

#close-button:hover {
  transform: scale(1.1);
  background: #f0f0f0;
}

#link-lcdhservicios {
  position: relative;
  bottom: 4em;
  width: fit-content;
  margin: 0 auto;
  background: #fff;
  color: #333;
  border-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: large;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  padding: 2px 10px;
  font-weight: 700;
  gap: 0.5rem;
}

#link-lcdhservicios i {
  font-size: 1.5rem;
}

@media (max-width: 480px) {
  #link-lcdhservicios {
    bottom: 3.5em;
    font-size: small;
    padding: 2px 5px;
  }

  #link-lcdhservicios i {
    font-size: 1rem;
  }
}


/* responsive whatsapp */
@media (min-width: 860px) {
  #content {width: 760px;position: static;}
  #iconoPadre { margin-left: -10px; }
}
@media (max-width: 860px) {
  #contenedor-whatsapp-icon {
    right: 0;
    bottom: 0;
    align-items: flex-end;
    z-index: 49;
  }
  /* Submenu WA mobile: full-width horizontal, mismo formato que antes pero legible */
  #content {
    width: calc(100vw - 70px); /* full-width dejando lugar al ícono flotante */
    position: relative;
    left: 4px;
    z-index: -1;
    padding: 6px 4px;
    box-sizing: border-box;
  }
  /* Cada .col toma su parte equitativa del ancho */
  #content .col {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    padding: 0 2px;
  }
  /* Separadores verticales (originales) */
  #content.iconos.aparecer > span {
    width: 1px;
    height: 26px;
    background-color: rgba(255,255,255,0.4);
    flex-shrink: 0;
  }
  /* Links: texto legible que envuelve en 2 líneas si hace falta */
  .iconos a {
    font-size: 10px;
    line-height: 1.15;
    letter-spacing: 0.2px;
    text-align: center;
    padding: 4px 2px;
  }
  .iconos a span {
    display: block;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
  }
}
@media (max-width: 480px) {
  #iconoPadre .bi-whatsapp { font-size: 25px; }
  .iconos .bi-whatsapp { padding: 7px; }
}

/* ==========================================================
   8.  PRELOADER  (Pantalla de carga)
   ---------------------------------------------------------- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  width: 100%;
  height: 100vh;
  background: white;
  overflow: hidden;
  transition: all 0.6s ease-out;
}
#preloader::before,
#preloader::after {
  content: "";
  position: absolute;
  border: 4px solid cyan;
  border-radius: 50%;
  animation: animate-preloader 2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}
#preloader::after { animation-delay: -0.5s; }

/* ==========================================================
   9.  MAPA INTERACTIVO  (Sucursales)
   ---------------------------------------------------------- */
.mapa-container {
  display: flex;
  flex-direction: column;
  gap: 2em;
  height: fit-content;
}
.mapa-locations {
  overflow-y: auto;
  max-height: 300px;
  border-bottom: 1px solid #e5e7eb;
}
.mapa-location {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 8px;
  border: none;
  border-left: 3px solid transparent;
  background: white;
  text-align: start;
  transition: all 0.2s ease;
}
.mapa-location:hover {
  background: #f9fafb;
  transform: translateY(-1px);
}
.mapa-location.active {
  background: #f3f4f6;
  border-left-color: #ff7403;
}
.mapa-map { flex: 1; }
#map {
  width: 100%;
  height: 100%;
}
#map iframe {
  width: 100%;
  height: 100%;
  max-width: 100%;
  border: none;
}
.locations-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.oculto { display: none; }
.visible { display: block; }

@media (min-width: 768px) {
  .mapa-container {
    flex-direction: row;
    min-height: 500px;
  }
  .mapa-locations {
    width: 30%;
    max-height: 500px;
    border-bottom: none;
    border-right: 1px solid #e5e7eb;
  }
  .mapa-map { width: 70%; }
  #map { min-height: 500px; }
}
@media (min-width: 1024px) {
  .mapa-container { min-height: 550px; }
  .mapa-locations {
    width: 35%;
    max-height: 550px;
  }
  .mapa-map { width: 65%; }
  #map { min-height: 550px; }
}

/* ==========================================================
   10.  PÃGINA SERVICIOS  (GalerÃ­a Swiper)
   ---------------------------------------------------------- */
#servicio-page section { padding: 40px 0; }
#servicio-page h2 {
  font-size: x-large !important;
  font-weight: 600;
}
.servicios-container {
  max-width: 1000px;
  margin: 0 auto;
}
@media (max-width: 768px) { .servicios-container { padding: 0 1rem; } }

.servicio h2 { color: #1a1a1a; margin-bottom: 0.5rem; }
.servicio p { color: #444; margin-bottom: 1rem; }

.galeria {
  width: 90%;
  max-width: 700px;
  margin: 0 auto;
}
.swiper { width: 100%; height: 100%; }
.swiper-slide {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  text-align: center;
}

.swiper-slide img {
  display: block;
  width: 100%;
  max-width: auto;
  object-fit: cover;
}
.swiper-slide .img-servicio { height: 300px; }

@media (max-width: 768px) { .galeria img { width: 100%; } }

/* ==========================================================
   11.  PÃGINA NOSOTROS  (Timeline, valores, estadÃ­sticas)
   ---------------------------------------------------------- */
#nosotros-page h2 {
  font-size: x-large !important;
  font-weight: 600;
}

/* Sub-nav sticky */
.subnav-nosotros {
  display: none;
  position: sticky;
  top: 60px;
  z-index: 10;
  width: 80%;
  margin: 0 auto;
  padding: 1rem;
  background: #fff;
  border-bottom: 1px solid #eee;
}
@media (min-width: 768px) { .subnav-nosotros { display: block; } }

.subnav-nosotros ul {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.subnav-nosotros a {
  position: relative;
  font-size: smaller;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s ease;
}
.subnav-nosotros a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #ff7403;
  transition: width 0.3s ease;
}
.subnav-nosotros a:hover { color: #ff7403; }
.subnav-nosotros a:hover::after { width: 100%; }

/* SecciÃ³n texto */
.sobre-nosotros {
  padding: 60px 20px;
}
.sobre-nosotros .container {
  max-width: 1000px;
  margin: 0 auto;
}
.sobre-nosotros h2 {
  margin-bottom: 20px;
  font-size: 2.2rem;
  color: #333;
}
.sobre-nosotros p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
}

/* Timeline */
.timeline-minimal {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}
.timeline-minimal h2 {
  margin-bottom: 40px;
  font-size: x-large;
  color: #333;
}
.timeline-minimal ul {
  margin-left: 10px;
  padding-left: 0;
  border-left: 2px solid #dcdcdc;
  list-style: none;
}
.timeline-minimal li {
  position: relative;
  margin-bottom: 25px;
  padding-left: 20px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #444;
}
.timeline-minimal li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 6px;
  width: 10px;
  height: 10px;
  background: #007bff;
  border-radius: 50%;
}
.timeline-minimal .year {
  display: inline-block;
  margin-bottom: 4px;
  font-weight: 600;
  color: #007bff;
}

/* Valores (hexÃ¡gonos flip) */
.valores-empresa { padding: 60px 20px; }
.contenedor-valores,
.contenedor-numeros {
  max-width: 1000px;
  margin: 0 auto;
}
.hex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  justify-content: center;
  align-items: center;
}

.page-home {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
@media (max-width: 768px) {
  .hex-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}
.hex-flip {
  width: 150px;
  height: 150px;
  margin: auto;
  perspective: 1000px;
}
.hex-card {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s;
}
.hex-flip:hover .hex-card { transform: rotateY(180deg); }
.hex-card .front,
.hex-card .back {
  position: absolute;
  width: 100%;
  height: 100%;
  clip-path: polygon(25% 5.77%, 75% 5.77%, 100% 50%, 75% 94.23%, 25% 94.23%, 0% 50%);
  background: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hex-card .back {
  transform: rotateY(180deg);
  padding: 10px;
  font-size: 0.85rem;
  color: #333;
  text-align: center;
}
.icon-svg { width: 50px; }

/* EstadÃ­sticas */
.numeros-empresa { padding: 60px 20px; }
.numeros-empresa .contenedor img { width: 100%; }
.stat {
  flex: 1;
  padding: 0 1rem;
  text-align: center;
  border-left: 2px solid #686868;
  border-right: 2px solid #686868;
}
.stat:first-child { border-left: none; }
.stat:last-child { border-right: none; }
.stat h2 {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 700;
}
.stat p {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  line-height: 1.4;
  text-transform: uppercase;
}

/* ==========================================================
   12.  SSA / CALIDAD  (Secciones de contenido)
   ---------------------------------------------------------- */
.ssa-section,
.quality-section { padding: 60px 20px; }

.ssa-container,
.quality-container {
  max-width: 1000px;
  margin: 0 auto;
}
.ssa-title {
  margin-bottom: 20px;
  font-size: 2rem;
  font-weight: bold;
  color: #222;
}
.ssa-description,
.quality-description {
  margin-bottom: 40px;
  font-size: 1rem;
  color: #555;
}
.ssa-grid {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 70px;
}
.ssa-card {
  width: 260px;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  background: #f9f9f9;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}
.ssa-card:hover { transform: translateY(-5px); }
.ssa-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
}
.ssa-icon img { width: 100px; }
.ssa-card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: #333;
  text-align: center;
}
.ssa-card p {
  font-size: 0.95rem;
  color: #555;
}
@media (max-width: 768px) {
  .ssa-grid {
    flex-direction: column;
    align-items: center;
  }
}

/* Lista de calidad */
.quality-list {
  max-width: 700px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.quality-list li {
  position: relative;
  margin-bottom: 15px;
  padding-left: 25px;
  font-size: 0.95rem;
  color: #555;
}
.quality-list li::before {
  content: "â";
  position: absolute;
  left: 0;
  color: #009de0;
  font-size: 1rem;
}

/* ==========================================================
   13.  BLOG / SEARCH  (Listado de artÃ­culos)
   ---------------------------------------------------------- */
.search-box {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}
.search-box input {
  width: 80%;
  max-width: 600px;
  padding: 12px 15px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
}
.article-list {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
}
.article-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 15px;
  padding: 15px 20px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.article-info { flex-grow: 1; }
.article-info h4 {
  margin: 0 0 5px;
  color: #007bff;
}
.article-info p {
  margin: 2px 0;
  font-size: 14px;
}
.view-btn {
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  background: #28a745;
  color: white;
  cursor: pointer;
  transition: background 0.2s;
}
.view-btn:hover { background: #218838; }

/* Modal de vista previa */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.6);
}
.modal {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 90%;
  max-width: 900px;
  border-radius: 8px;
  overflow: hidden;
  background: white;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background: #f1f1f1;
}
.modal-header h3 { margin: 0; }
.close-btn {
  border: none;
  background: none;
  font-size: 20px;
  color: #999;
  cursor: pointer;
}
.modal iframe {
  width: 100%;
  height: 600px;
  border: none;
}

/* responsive modal */
@media (max-width: 768px) { .modal { font-size: 15px; } }
@media (max-width: 480px) {
  .modal {
    width: 100%;
    font-size: 14px;
  }
  .close-btn {
    font-size: 24px;
    top: -8px;
    right: 3px;
  }
}

/* ==========================================================
   14.  FICHA TÃCNICA PDF  (CatÃ¡logo descargable)
   ---------------------------------------------------------- */
.contenedor-ficha {
  margin: auto auto 10px auto ;
  display: flex;
  justify-content: center;
}
.ficha-container {
  width: 100%;
  position: relative;
  overflow: hidden;
  background: #fff;
  box-sizing: border-box;
}

/* Evita que html2pdf entre en modo print */
@media print {
  body, html { all: revert; }
}

/* Etiquetas verticales */
.vertical-label {
  position: absolute;
  right: -65px;
  top: 120px;
  z-index: 2;
  padding: 5px 15px;
  font-size: clamp(14px, 2vw, 20px);
  font-weight: bold;
  letter-spacing: 2px;
  color: #0077c8;
  background: white;
  border-left: 4px solid #f58220;
  transform: rotate(270deg);
}

@media(max-width: 768px){
    .vertical-label{
        display: none;
    }
}

.etiqueta-familia {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  max-width: 50px;
  background: #414a99;
  color: #fff;
  font-weight: 900;
  overflow: hidden;
}
.etiqueta-texto {
  position: absolute;
  transform: rotate(-90deg);
  transform-origin: center;
  white-space: nowrap;
  font-size: clamp(14px, 1.8vw, 20px);
  letter-spacing: 1px;
  text-align: center;
}

/* Encabezado */
.encabezado {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: center;
  background: #fff;
}
.logo-container {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}
.logo-img {
  width: 100%;
  max-width: 200px;
  height: auto;
}
.titulo-datos h1 {
  margin-bottom: 20px;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 700;
  line-height: 1.4;
  color: #1d4e9b;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.codigo-linea {
  display: grid;
  grid-template-rows: 2;
  gap: 10px;
}
.code {
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 500;
  color: white;
  background: #149bd7;
}
.img-bomba {
  display: flex;
  align-items: center;
  grid-column: 3 / 5;
  height: 350px;
  width: 85%;
  /* border: solid; */
}
.img-bomba img {
  max-width: 100%;
  max-height: 100%;
  margin: auto;
  object-fit: contain;
}

/* CaracterÃ­sticas */
.caracteristicas {
  position: relative;
  padding: 25px 40px;
  font-size: 15px;
  line-height: 1.6;
  background: #f3f3f3;
}
.caracteristicas::before {
  content: "CARACTERÃSTICAS";
  position: absolute;
  top: -20px;
  left: 0;
  width: 40%;
  padding: 8px 40px;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  color: #000;
  background: rgb(142, 195, 233);
}
.caracteristicas p {
  padding-left: 10px;
  border-left: 5px solid #ff7300;
}

/* Especificaciones tÃ©cnicas */
.tecnicas {
  position: relative;
  margin-top: 35px;
  padding: 25px 40px;
  font-size: 15px;
  line-height: 1.6;
  color: #000;
  background: rgb(21, 157, 217);
}
.tecnicas::before {
  content: "ESPECIFICACIONES TÃCNICAS";
  position: absolute;
  top: -20px;
  left: 0;
  padding: 8px 40px;
  font-size: 16px;
  font-weight: bold;
  width: 40%;
  text-transform: uppercase;
  color: #000;
  background: rgb(142, 195, 233);
}
.tecnicas-list {
  column-count: 2;
  column-gap: 2em;
  margin: 0;
  padding: 0;
  list-style: none;
  color: white;
}
.tecnicas-list li {
  margin-bottom: 0.5em;
  break-inside: avoid;
}
.tecnicas-list p {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  text-align: justify;
  text-transform: lowercase;
}

.tecnicas-list p::first-letter{
  text-transform:capitalize;
}

/* BotÃ³n descarga */
#btnDescargarPDF {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 20px auto;
  padding: 10px 18px;
  border: none;
  font-weight: 600;
  color: #fff;
  background: #212121;
  cursor: pointer;
}

#btnConsultarPDF {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 20px auto;
  padding: 10px 18px;
  border: none;
  font-weight: 600;
  color: #fff;
  background: #8ec3e9;
  cursor: pointer;
}

/* Footer interno */
.ficha-footer {
  padding: 20px 40px;
  font-size: 14px;
  color: white;
  background: rgb(11, 14, 18);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
}
.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}
.qr-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}
.redes{
 display: block;
 height: 60px;
}
.footer-logos {
  display: flex;
  gap: 15px;
  align-items: center;
}
.footer-logos img { height: 60px; object-fit: contain; }
.footer-ciudades {
  margin-top: 20px;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  text-transform: uppercase;
  color: white;
}

/* Responsive ficha */
@media (max-width: 768px) {
  .contenedor-ficha {
    width: 100%;
    margin: 80px 0;
    display: block;
  }
  .ficha-container { width: 100%; }
  .encabezado {
    display: block;
    padding: 0 5px;
    text-align: start;
  }
  .logo-img { max-width: 220px; margin: 0 auto; }
  .caracteristicas::before,
  .tecnicas::before { width: 100%; }
  .tecnicas-list { column-count: 1; }
  #btnDescargarPDF {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 20px 0;
  }
  .footer-top {
    flex-direction: column;
    align-items: center;
  }
  .footer-logos { justify-content: center; }
  .footer-ciudades{ font-size:10px; }
  .redes { display:none}
  .footer-logos img { width: 100%;height:auto; object-fit: contain; }
  .img-bomba {  justify-content: center; }
}

.mobile-actions {
  display: none;
}

@media (max-width: 768px) {
  #pdf .ficha-actions {
    display: none !important;
  }

  .mobile-actions {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999999;
  }

  .mobile-actions .ficha-btn {
    flex: 1;
    min-width: 0;
    padding: 14px;

    display: flex;              
    align-items: center;       
    justify-content: center;
    gap: 6px;
  }

  .mobile-actions .ficha-btn svg {
    display: block;            
    width: 16px;
    height: 16px;
    transform: translateY(1px); 
  }
}

#btnDescargarPDF_mobile {
  background: #000 !important;
  color: #fff !important;
}

#btnConsultarPDF_mobile {
  background: #8ec3e9 !important;
  color: #fff !important;
  border: 1px solid #8ec3e9;
}

@media (min-width: 769px) {
  #pdf .ficha-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
  }

  #btnDescargarPDF,
  #btnConsultarPDF {
    margin: 10px 0 !important;
  }
}

.hex-card .back p {
  font-family: "RobotoCondensed Bold", sans-serif !important;
}

.proveedores-slider .swiper-slide img {
  width: auto !important;
/*  height: auto !important;
  max-height: 75px !important;*/
  object-fit: contain !important;
}


/* =========================
   WRAPPER
========================= */
.hero-wrapper {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* =========================
   CONTENEDOR TEXTO
========================= */
.hero-text {
  max-width: 1300px;
  width: 100%;
  padding: 0 60px;
  margin: 0 auto;
  color: white;
  text-transform: uppercase;
}

/* =========================
   TITULO
========================= */
.hero-title {
  font-family: "GoogleSansFlex ExtraBold";
  font-size: clamp(32px, 6vw, 60px);
  line-height: 1.1;
  margin: 0;
}

.hero-title-prod {
  font-family: "GoogleSansFlex ExtraBold";
  font-size: clamp(32px, 6vw, 60px);
  line-height: 1.1;
  margin: 0;
}

/* =========================
   SUBTITULO
========================= */
.hero-subtitle {
  font-family: "GoogleSansFlex Regular";
  font-size: clamp(20px, 4vw, 56px);
}

.hero-subtitle-prod {
  font-family: "GoogleSansFlex Regular";
  font-size: clamp(20px, 4vw, 43px);
}

/* =========================
   UBICACIONES
========================= */
.hero-locations {
  font-family: "GoogleSansFlex Regular";
  font-size: 20px;
  margin-top: 25px;
  opacity: 0.85;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {

  .hero-text {
    padding: 0 20px;
  }

  .hero-title {
    font-size: 34.6px;
  }

  .hero-subtitle {
    font-size: 16px;
  }
  
  .hero-title-prod {
    font-size: 37px;
  }
  
  .hero-subtitle-prod {
    font-size: 14px;
  }
  
  .hero-locations {
    font-size: 12px;
    margin-top: 25px;
    opacity: 0.85;
}
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0.5;
}

.nosotros-slider {
    width: 100%;
    height: 100%;
    background: black;
}

.img-estirada-total {
    width: 100% !important;
    height: 80vh !important;
    object-fit: fill !important;
    display: block;
    opacity: 0.6;
}

.img-normal {
    width: 100% !important;
    height: 80vh !important;
    object-fit: cover !important;
    object-position: center; /* Centrada por defecto */
    display: block;
    opacity: 0.6;
}

.img-desplazada {
    width: 100% !important;
    height: 80vh !important;
    object-fit: cover !important;
    object-position: center 20%; 
    display: block;
    opacity: 0.6;
}

.nosotros-frame-custom {
    height: 80vh !important;
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: #000;
}