/* 
galleria */

.pagination-wrap {
    display: flex;
    justify-content: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    flex-wrap: wrap;
}

.pagination-wrap li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #1e1e2f;
    color: #ddd;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination-wrap li a:hover {
    background: #007bff;
    color: #fff;
}

.pagination-wrap .active a {
    background: #007bff;
    color: #fff;
}

.pagination-wrap .disabled a {
    opacity: 0.4;
    pointer-events: none;
}



/* === BASE STYLES === */
.hero-overlay-section {
  position: relative;
  margin-top: -160px; /* Overlay sobre slider en desktop */
  z-index: 10;
}

#contactOverlay {
  z-index: 15;
  max-width: 520px;
  border-top: 5px solid #275B9C;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
}

.hero-services {
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.hero-services .service-item {
  transition: all 0.3s ease;
}
.hero-services .service-item:hover {
  background-color: #f4f8ff;
  transform: translateY(-3px);
}

/* === EXTRA SERVICE (under contact) === */
.contact-extra-service .bg-gradient {
  background: linear-gradient(145deg, #eaf1ff, #d4e3ff);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid #275B9C40;
  transition: all 0.3s ease;
  padding: 25px;
}
.contact-extra-service .bg-gradient:hover {
  background: linear-gradient(145deg, #dceaff, #c9dbff);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}
.contact-extra-service h5 {
  font-size: 1.25rem;
}
.contact-extra-service p {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* === COLOR REPLACEMENTS === */
.text-warning {
  color: #275B9C !important;
}
.btn-warning {
  background-color: #275B9C !important;
  border-color: #275B9C !important;
}
.btn-outline-warning {
  color: #275B9C !important;
  border-color: #275B9C !important;
}
.btn-outline-warning:hover {
  background-color: #275B9C !important;
  color: #fff !important;
}
.border-top {
  border-top-color: #275B9C !important;
}

/* === RESPONSIVE ADJUSTMENTS === */

/* Laptops medianos (entre 992px y 1200px) */
@media (max-width: 1200px) {
  .hero-overlay-section {
    margin-top: -120px;
  }
  #contactOverlay {
    max-width: 480px;
    padding: 2rem;
  }
  .hero-services {
    padding: 2rem;
  }
}

/* Tablets (entre 768px y 991px) */
@media (max-width: 991px) {
  .hero-overlay-section {
    margin-top: -120px;
  }
  .hero-services,
  #contactOverlay {
    max-width: 100%;
    flex: 1 1 100%;
  }
  .container {
    flex-direction: column;
  }
  #contactOverlay {
    margin-top: 0;
    order: 1 !important;
  }
  .hero-services {
    order: 2 !important;
  }
  .contact-extra-service {
    display: none !important;
  }

  .mt-mobile {
    margin-top: 20px !important;
  }
}

/* Celulares (≤767px) */
@media (max-width: 767px) {
  .hero-overlay-section {
    margin-top: -60px;
    padding: 1.5rem !important;
  }

  .mt-mobile {
    margin-top: 20px !important;
  }
  #contactOverlay {
    order: 1 !important;
    width: 100%;
    margin-top: 0;
    padding: 1.5rem !important;
  }

  .hero-services {
    order: 2 !important;
    margin-top: 1.5rem;
    padding: 1.5rem;
  }

  #contactOverlay h4 {
    font-size: 1.4rem;
  }

  .hero-services h2 {
    font-size: 1.5rem;
  }

  .service-item p {
    font-size: 0.9rem;
  }

  button.btn {
    font-size: 0.95rem;
  }
}

@media (max-width: 575.98px) {
  .mt-mobile {
    margin-top: 20px !important;
  }
}



/* seo */

.th-carousel {
  padding: 30px 0;
}

.carousel-img {
  width: 100%;
  height: auto;
  max-width: 180px; /* ancho uniforme */
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: grayscale(100%);
  opacity: 0.9;
}

.carousel-img:hover {
  transform: scale(1.05);
  filter: grayscale(0%);
  opacity: 1;
}

/* Espaciado extra entre slides en desktop/laptop/tablet */
.th-carousel .swiper-slide {
  display: flex;
  justify-content: center; /* centra la imagen dentro del slide */
  padding-left: 15px;
  padding-right: 15px;
}

/* === Responsive === */
@media (min-width: 1400px) {
  .carousel-img { max-width: 200px; }
  .th-carousel .swiper-slide { padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 1399px) and (min-width: 992px) {
  .carousel-img { max-width: 180px; }
  .th-carousel .swiper-slide { padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 991px) and (min-width: 768px) {
  .carousel-img { max-width: 160px; }
  .th-carousel .swiper-slide { padding-left: 15px; padding-right: 15px; }
}

@media (max-width: 767px) {
  .carousel-img { width: 90%; height: auto; }
  .th-carousel .swiper-slide { padding-left: 10px; padding-right: 10px; }
}

/* 




/* Galería */
.bm-gallery-item {
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.bm-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    border-radius: 15px;
    cursor: pointer;
}

.bm-gallery-item:hover img {
    transform: scale(1.1);
}

/* Modal */
.bm-modal-content {
    background-color: transparent;
    border: none;
    box-shadow: none;
    max-width: 800px;
    margin: auto;
}

.bm-modal-img {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
}



/* === boton flotante === */

/* ===== Floating Button ===== */
.floating-btn {
  position: fixed;
  bottom: 90px;
  right: 25px;
  z-index: 9999;
  font-family: 'Poppins', sans-serif;
}

.main-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #111;
  color: #fff;
  padding: 8px 15px;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0,0,0,0.35);
  transition: all 0.3s ease;
}

.main-btn:hover { transform: translateY(-2px); }

.logo-container {
  background: #fff;
  border: 3px solid #275B9C;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.animated-phone { animation: shake 3s infinite ease-in-out; }
@keyframes shake {
  0%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(-10deg); }
  20% { transform: rotate(8deg); }
  30% { transform: rotate(-6deg); }
  40% { transform: rotate(4deg); }
  50% { transform: rotate(-2deg); }
}


/* ===== Modal Overlay ===== */
.pm-modal {
  display: none;
  position: fixed;
  z-index: 9998;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
  font-family: 'Poppins', sans-serif;
}

.pm-modal-content {
  background: #fff;
  width: 95%;
  height: 90%;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: pm-fadeIn 0.3s ease;
}

@keyframes pm-fadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.pm-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid #e6e6e6;
}

.pm-modal-header h2 {
  font-size: 22px;
  font-weight: 600;
  color: #222;
}

.pm-close-btn {
  font-size: 28px;
  cursor: pointer;
  color: #555;
  transition: 0.2s;
}
.pm-close-btn:hover { color: #000; }

/* ===== Modal Body ===== */
.pm-modal-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* ===== Sidebar Filters ===== */
.pm-filter-sidebar {
  width: 260px;
  border-right: 1px solid #e5e5e5;
  padding: 24px;
  background: #fafafa;
  overflow-y: auto;
}

.pm-filter-sidebar h3 {
  font-size: 16px;
  margin-bottom: 12px;
  font-weight: 600;
  color: #333;
}

.pm-category-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.pm-category-btns button {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid #275B9C;
  border-radius: 6px;
  background: #fff;
  color: #275B9C;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.pm-category-btns button.active,
.pm-category-btns button:hover {
  background: #275B9C;
  color: #fff;
}

.pm-filter-sidebar h4 {
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.pm-filter-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pm-filter-sidebar li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #444;
  margin-bottom: 10px;
}

.pm-color-box {
  width: 16px;
  height: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* ===== Product Grid ===== */
.pm-product-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
  padding: 24px;
  overflow-y: auto;
  background: #fdfdfd;
}

.pm-product-card {
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: all 0.25s ease;
  cursor: pointer;
}

.pm-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.pm-product-img img {
  width: 100%;
  border-radius: 10px 10px 0 0;
  display: block;
}

.pm-product-info {
  padding: 10px 12px;
  text-align: left;
}

.pm-product-info .pm-brand {
  font-size: 13px;
  font-weight: 600;
  color: #275B9C;
  margin-bottom: 2px;
}

.pm-product-info .pm-name {
  font-size: 13px;
  color: #333;
  margin-bottom: 4px;
}

.pm-product-info span {
  font-size: 12px;
  color: #777;
}

/* ===== Loader ===== */
.pm-loader {
  width: 50px;
  height: 50px;
  border: 4px solid #ddd;
  border-top-color: #275B9C;
  border-radius: 50%;
  margin: 80px auto;
  animation: pm-spin 1s linear infinite;
}
@keyframes pm-spin { to { transform: rotate(360deg); } }

/* hover */

.pm-room-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease;
}

.pm-room-modal.show {
  display: flex;
  opacity: 1;
}

.pm-room-content {
  background: #fff;
  padding: 30px 40px;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  text-align: center;
  max-width: 320px;
  animation: pm-popup 0.25s ease;
}

.pm-room-content h3 {
  font-size: 18px;
  color: #222;
  margin-bottom: 20px;
  font-weight: 600;
}

.pm-room-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pm-room-options button {
  padding: 10px;
  border: 1px solid #275B9C;
  background: #fff;
  color: #275B9C;
  font-size: 15px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.pm-room-options button:hover {
  background: #275B9C;
  color: #fff;
  transform: translateY(-2px);
}

@keyframes pm-popup {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
/* letra servicios */
.pm-service-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Estilo de los links de servicios */
.pm-service-link {
  font-family: 'Poppins', sans-serif; /* ejemplo de fuente */
  font-weight: 500;                   /* medio */
  color: #275B9C;                     /* color azul personalizado */
  text-decoration: none;              /* quita subrayado */
  transition: color 0.25s ease;
}

.pm-service-link:hover {
  color: #ff6600;                     /* cambia color al pasar el mouse */
}
/* 
vista celular modal */

/* ===== Mobile Responsive: 768px ===== */
@media (max-width: 768px) {
  .pm-modal-body {
    flex-direction: column;
  }

  /* Sidebar filters se convierte en top bar */
  .pm-filter-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #e5e5e5;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow: visible;
  }

  /* Ocultar servicios y color */
  .pm-filter-sidebar h4,
  .pm-service-list,
  .pm-color-list {
    display: none;
  }

  /* Mantener título y botones de categoría */
  .pm-filter-sidebar h3 {
    margin-bottom: 10px;
  }

  .pm-category-btns {
    width: 100%;
    gap: 6px;
    margin-bottom: 12px;
    flex-wrap: wrap;
  }

  .pm-category-btns button {
    flex: 1 1 calc(50% - 6px);
    margin-bottom: 6px;
  }

  /* Product grid ocupa todo el ancho y debajo de categorías */
  .pm-product-grid {
    padding: 16px;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
  }
  .pm-modal-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 16px;
    border-bottom: 1px solid #e5e5e5;
  }

  .pm-modal-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #275B9C;
    text-align: center;
    line-height: 1.4;
    background: linear-gradient(90deg, #275B9C, #4A90E2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
  }

  /* Botón de cierre más limpio en móvil */
  .pm-close-btn {
    position: absolute;
    right: 16px;
    top: 10px;
    font-size: 26px;
    color: #555;
    background: #fff;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
  }

  .pm-close-btn:hover {
    background: #275B9C;
    color: #fff;
  }

}

/* Agregar una transición de desvanecimiento suave a la grilla de productos */
.pm-product-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
  padding: 24px;
  overflow-y: auto;
  background: #fdfdfd;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.pm-product-grid.hidden {
  opacity: 0; /* Hace que se desvanezca cuando se está cargando */
}



/* ===== JR Floating Audio Bot ===== */
.jr-audio-bot {
  position: fixed;
  bottom: 25px;
  left: 25px;
  z-index: 9999;
}

.jr-audio-btn {
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  border: none;
  border-radius: 50%;
  width: 75px;
  height: 75px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, background 0.3s ease;
}

.jr-audio-btn:hover {
  transform: scale(1.1);
}

.jr-audio-btn.jr-active {
  background: linear-gradient(135deg, #15803d, #22c55e);
}

/* ===== SVG Robot Styling ===== */
.jr-robot-icon {
  width: 42px;
  height: 42px;
  animation: jr-bounce 2s infinite ease-in-out;
}

/* Robot parts */
.jr-robot-body { fill: #3b82f6; transition: fill 0.3s; }
.jr-robot-head { fill: #60a5fa; transition: fill 0.3s; }
.jr-robot-eye-bg { fill: #fff; }
.jr-robot-eye { fill: #0f172a; }
.jr-robot-mouth { fill: #1e3a8a; transition: transform 0.2s ease; }
.jr-robot-antenna { stroke: #60a5fa; }
.jr-robot-glow { fill: #22d3ee; animation: jr-glow 1.5s infinite alternate; }

@keyframes jr-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes jr-glow {
  0% { filter: drop-shadow(0 0 3px #22d3ee); }
  100% { filter: drop-shadow(0 0 10px #67e8f9); }
}

/* ===== Speaking animation when active ===== */
.jr-speaking .jr-robot-mouth {
  animation: jr-mouth-talk 0.35s infinite ease-in-out;
}

.jr-speaking .jr-robot-eye {
  animation: jr-eye-blink 3s infinite;
}

.jr-speaking .jr-robot-body {
  fill: #22c55e; /* Green when active */
}


@keyframes jr-mouth-talk {
  0%, 100% {
    transform: scaleX(1);
  }
  50% {
    transform: scaleX(0.4);
  }
}

/* @keyframes jr-eye-blink {
  0%, 90%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(0.1); }
} */
