@font-face {
  font-family: 'Poppins';
  src: url('/Fonts/Poppins/Poppins-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  /* Optimiza la carga del texto */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #0d1b2a;
  color: #ffffff;
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 50px;
  background-color: #0a1118;
}

.logo {
  top: 0.02em;
  height: 100px;
  position: absolute;
  z-index: 9999;
  display: flex;
  justify-content: center;
}

.logo img {
  height: 150px;
  filter: invert() drop-shadow(0px 0.5px 2.5px #e5a93b);
}

.nav-links {
  margin-left: 15em;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  margin: 0 15px;
  font-weight: 600;
  font-size: 0.9rem;
}

.nav-links a.active {
  color: #e5a93b;
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-right: 5em;
}

.phone {
  display: flex;
  gap: 5px;
  align-items: center;
}

.btn-whatsapp {
  display: flex;
  width: 20px;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
}

.btn-whatsapp img {
  filter: invert(53%) sepia(95%) saturate(425%) hue-rotate(92deg) brightness(95%) contrast(95%);
}

/* HERO */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 60px 80px;
  background-image: url(/Images/Hero/Fondo-Hero.avif);
  background-size: cover;
  height: 50em;
}

.hero-content {
  max-width: 50%;

}

.hero-content h1 {
  font-size: 2.8rem;
  line-height: 1.2;
}

.hero-content .highlight {
  color: #e5a93b;
}

.p_highlight {
  color: #3259da;
}

.t_highlight {
  color: #fdfdfd;
}

.hero-content p {
  margin: 20px 0;
  color: #fdfdfd;
  font-size: larger;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

.btn {
  padding: 12px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
}

.btn-primary {
  background-color: #e5a93b;
  color: #000;
}

.btn-primary:hover {
  background-color: transparent;
  border: 1px solid #e5a93b;
  color: #fff;
}

.btn-secondary {
  border: 1px solid #e5a93b;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 1em;
}

.btn-secondary:hover {
  background-color: #0d1b2a;
  border: 1px solid #e5a93b;
  color: #fff;
}


.hero-slider {
  position: relative;
  width: 100%;
  max-width: 600px;
  /* Ajusta según el tamaño deseado */
  height: 420px;
  overflow: hidden;
  /* Elimina cualquier barra de scroll visible */
  border-radius: 15px;
  border: 2px solid #d6a339;
}

.slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.slide img {
  flex-shrink: 0;
  width: 100%;
}

.slide.active {
  opacity: 1;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(10, 18, 40, 0.9);
  color: white;
  cursor: pointer;
  font-size: 18px;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

.slider-btn:hover {
  background: #d6a339;
}

.slider-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: #d6a339;
  transform: scale(1.2);
}

/* VALORES / MISIÓN */
.info-cards-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: -30px 80px 40px 80px;
  position: relative;
  z-index: 10;
  background-color: #ffffff;
  border-radius: 10px;
}

.info-card {
  background-color: #ffffff;
  color: #333;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  gap: 15px;
  flex: 1;
}

.info-card .icon {
  font-size: 2rem;
}

.info-card .icon img {
  width: 50px;
}

.info-card h3 {
  font-size: 0.95rem;
  margin-bottom: 5px;
}

.info-card p {
  font-size: 14px;
  color: #666;
}

/* TESTIMONIOS */
.testimonials-section {
  text-align: center;
  padding: 40px 80px;
  height: 420px;
  position: relative;
}

.testimonials-section h2 {
  letter-spacing: 1px;
  margin-bottom: 30px;
  color: #ffffff;
}

.testimonials-slider {
  position: relative;
  width: 100%;
  min-height: 180px;
}

.testimonial-page {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
}

.testimonial-page.active {
  position: relative;
  opacity: 1;
  visibility: visible;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
}


.testimonial-card {
  background-color: #162436;
  border: 1px solid #23354d;
  border-radius: 8px;
  padding: 12px;
  text-align: left;
  font-size: 16px;
  color: #ffffff;
}

.testimonial-card strong {
  color: #e5a93b;
}

.stars {
  color: #e5a93b;
  margin-bottom: 8px;
  font-size: x-large;
}

/* Dots específicos para testimonios */
.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 25px;
}

.t-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.t-dot.active {
  background: #e5a93b;
  transform: scale(1.25);
}


/* SOCIOS */
.partners-section {
  background-color: #f1f2f3;
  color: #333;
  padding: 20px 80px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.partners-title {
  font-weight: bold;
  font-size: 16px;
  width: 120px;
  color: #162436;
  ;
}

.partners-logos {
  display: flex;
  justify-content: space-around;
  width: 100%;
}

.partners-logos img {
  max-height: 80px;
  filter: grayscale(30%);
}

/* SERVICIOS */
.services-section {
  text-align: center;
  padding: 50px 50px;
  background-color: #eceae3;
}

.services-section h2 {
  color: #0d1b2a;

}

.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
  margin-top: 30px;
}

.service-card {
  background-color: #ffffff;
  color: #333;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 5px;
}

.service-card h3 {
  font-size: 16px;
  margin: 10px 0 5px 0;
}

.service-card p {
  font-size: 14;
  color: #666;
  margin-bottom: 15px;
  text-align: left;
}

.btn-card {
  background-color: #e5a93b;
  color: #000;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: bold;
}

.btn-card:hover {
  background-color: #162436;
  color: #fff;
}

/* GALERÍA */
.gallery-section {
  text-align: center;
  padding: 40px 80px;
  background-image: url(/Images/Servicios/Slider_Hero/guilotina.avif);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.gallery-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.gallery-images {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 0;
  /* Ocultar barra de scroll */
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE/Edge */
}

.gallery-images::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

.gallery-images img {
  width: 180px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.gallery-images img:hover {
  transform: scale(1.03);
}

.carousel-arrow {
  background: rgba(10, 18, 40, 0.9);
  color: #fff;
  border: 1px solid #d6a339;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 5;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}

/* Modal de superposición (Lightbox) */
.lightbox-modal {
  display: none;
  /* Oculto por defecto */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 99999;
  /* Encima de todo */
  justify-content: center;
  align-items: center;
  pointer-events: none;
  /* Evita parpadeos al detectar el mouse */
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-modal img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  border: 2px solid #d6a339;
}

.carousel-arrow:hover {
  background: #d6a339;
}

/* FOOTER */
.footer {
  background-color: #060c12;
  padding: 40px 80px 20px 80px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.85rem;
  color: #aaa;
}

.footer-col:nth-child(3) {
  width: 20em;
}

.footer-col h4 {
  color: #fff;
  margin-bottom: 15px;
  font-size: 20px;
}

.footer-col:nth-child(1) h4 {
  text-decoration: underline;
  text-decoration-color: #d6a339;
  text-decoration-style: wavy;
}

.footer-col p:nth-child(2) {
  font-size: 14px;
  margin-bottom: 1em;
}


.footer-col p:nth-child(3) {
  display: flex;
  align-items: center;
  gap: 1em;
  font-size: 14px;
}

.footer-col ul {
  list-style: none;

}

.footer-col ul li {
  margin-bottom: 5px;
  display: flex;
  gap: 1em;
  font-size: 14px;
}

.footer-phone {
  font-size: 1.2rem;
  color: #fff;
  font-weight: bold;
  margin-bottom: 10px;
  display: flex;
  gap: 1em;
}

.btn-whatsapp-footer {
  background-color: #e5a93b;
  color: #000;
  padding: 8px 15px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 1em;
  justify-content: center;
}

.btn-whatsapp-footer img {
  width: 20px;
}

.logo-col img {
  height: 150px;
  filter: drop-shadow(0px 0.5px 3px);
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  border-top: 1px solid #1a2634;
  padding-top: 15px;
  font-size: 12px;
  color: #fff;
}

/* BOTÓN FLOTANTE */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  filter: invert(53%) sepia(95%) saturate(425%) hue-rotate(92deg) brightness(95%) contrast(95%);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Video principal*/

#image-preview-overlayfront {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 100000;
  pointer-events: auto;
  /* Habilita interacción para reproducir y pausar */
}

#image-preview-overlayfront video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 40vw;
  max-height: 85vh;
  border: 3px solid #e5a93b;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  background-color: #000;
  object-fit: contain;
}

/* Botón de cierre (X) para el overlay */
.close-overlayfront {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #ffffff;
  font-size: 2.5rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 100001;
  transition: color 0.2s ease;
}

.close-overlayfront:hover {
  color: red;
}



/* ==========================================
   SECCIÓN ESPECIALIDADES PAGE
   ========================================== */

/* Hero Banner */
.specialties-hero {
  text-align: center;
  padding: 60px 20px 40px 20px;
  background-image: linear-gradient(rgba(10, 17, 24, 0.75), rgba(10, 17, 24, 0.75)), url('/Images/Hero/Fondo-Hero.avif');
  background-size: cover;
  background-position: center;
  border-bottom: 2px solid #e5a93b;
}

.specialties-hero h1 {
  font-size: 2.2rem;
  letter-spacing: 1.5px;
  color: #ffffff;
  margin-bottom: 8px;
}

.specialties-hero p {
  color: #e5a93b;
  font-size: 1.05rem;
  font-weight: 500;
}

/* Contenedor Principal de Especialidades */
.specialties-container {
  max-width: 1300px;
  margin: 40px auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Fila de Especialidad */
.specialty-row {
  background-color: #f8f9fa;
  border-radius: 12px;
  padding: 20px 25px;
  display: grid;
  grid-template-columns: 220px 1fr 140px;
  align-items: center;
  gap: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Columna 1: Info e Ícono */
.specialty-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.spec-icon {
  width: 32px;
  height: 32px;
  filter: invert(72%) sepia(51%) saturate(718%) hue-rotate(352deg) brightness(96%) contrast(92%);
}

.specialty-info h3 {
  font-size: 1rem;
  color: #0d1b2a;
  font-weight: 800;
  line-height: 1.2;
}

/* Columna 2: Grilla de Imágenes / Videos */
.specialty-media-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.specialty-media-grid img,
.video-card {
  width: 100%;
  height: 110px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.25 ease, box-shadow 0.25s ease;
}

.specialty-media-grid img:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

/* MODAL DE ESPECIALIDADES */
.specialty-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 99999;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.specialty-modal.active {
  display: flex;
}

.specialty-modal-content {
  background-color: #0d1b2a;
  border: 2px solid #e5a93b;
  border-radius: 12px;
  width: 95%;
  max-width: 900px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 25px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  color: #fff;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close-modal:hover {
  color: red;
}

#modal-title {
  color: #e5a93b;
  margin-bottom: 20px;
  font-size: 1.5rem;
  text-align: center;
  text-transform: uppercase;
}

.modal-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
}

.modal-gallery-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  cursor: zoom-in;
  border-radius: 8px;
  border: 1px solid #23354d;
  transition: transform 0.2s ease, border-color 0.2s ease;
}


.modal-gallery-grid img:hover {
  transform: scale(1.03);
  border-color: #e5a93b;
}

/* Vista previa flotante para la imagen en tamaño real */
#image-preview-overlay {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90vw;
  max-height: 90vh;
  z-index: 100000;
  pointer-events: none;
  /* Permite que el mouse siga detectando la grilla de abajo */
  border: 3px solid #e5a93b;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  background-color: #000;
  overflow: hidden;
}

#image-preview-overlay img {
  display: block;
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  /* Garantiza mostrar la imagen en su tamaño real/escalado proporcional */
}

.modal-gallery-grid video {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #23354d;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.modal-gallery-grid video:hover {
  transform: scale(1.03);
  border-color: #e5a93b;
}

/* Ajustes para el reproductor de vista previa en videos */
#image-preview-overlay video {
  display: block;
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

/* Tarjeta de Video */
.video-card {
  position: relative;
  overflow: hidden;
  background-color: #000;
  cursor: pointer;
}

.video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease;
}

.play-overlay img {
  width: 35px;
  height: 35px;
  box-shadow: none;
  filter: brightness(0) invert(1);
}

.video-card:hover .play-overlay {
  opacity: 0;
}

/* Columna 3: Botón Ver Más */
.specialty-action {
  display: flex;
  justify-content: flex-end;
}

.btn-ver-mas {
  border: 1px solid #d6a339;
  color: #0d1b2a;
  padding: 8px 18px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  transition: all 0.3s ease;
}

.btn-ver-mas:hover {
  background-color: #e5a93b;
  color: #000;
}

.scroll-top-btn {
  visibility: hidden;
}

/* ==========================================
   DESKTOPS PEQUEÑOS Y LAPTOPS (Max 1200px)
   ========================================== */
@media (max-width: 1200px) {

  /* Reducción de márgenes laterales */
  .navbar,
  .hero,
  .testimonials-section,
  .partners-section,
  .gallery-section,
  .footer {
    padding-left: 30px;
    padding-right: 30px;
  }

  .nav-links {
    margin-left: 10em;
  }

  .header-contact {
    margin-right: 0;
  }

  /* Ajuste del Hero */
  .hero-content h1 {
    font-size: 2.2rem;
  }

  /* Cuadrículas de 6 columnas a 3 columnas */
  .testimonials-grid,
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .info-cards-container {
    margin-left: 30px;
    margin-right: 30px;
  }

  .scroll-top-btn {
    visibility: hidden;
  }
}

/* ==========================================
   TABLETS IPAD pro (Max 1024px)
   ========================================== */

@media (max-width: 1024px) {

  .header-contact {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  .scroll-top-btn {
    visibility: hidden;
  }

   .testimonials-section {
    height: 600px;
  }

}


/* ==========================================
   TABLETS (Max 992px)
   ========================================== */
@media (max-width: 992px) {

  /* Ajustes en la navegación y Logo */
  .navbar {
    padding: 15px 20px;
    flex-wrap: wrap;
    gap: 15px;
  }

  .header-contact {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  .logo {
    position: static;
    height: auto;
  }

  .logo img {
    height: 90px;
  }

  .nav-links {
    margin-left: 0;
  }

  /* Hero cambia a vertical */
  .hero {
    flex-direction: column;
    height: auto;
    padding: 40px 20px;
    gap: 30px;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-slider {
    max-width: 90%;
    height: 400px;
  }

  /* Tarjetas de misión/valores pasan a columna */
  .info-cards-container {
    flex-direction: column;
    margin: 20px 20px 30px 20px;
  }

   .testimonials-section {
    height: 800px;
  }

  /* Ajustes en Socios */
  .partners-section {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .partners-title {
    width: 100%;
  }

  .partners-logos {
    flex-wrap: wrap;
    gap: 20px;
  }

  .partners-logos img {
    max-height: 50px;
  }

  /* Cuadrículas de servicios y testimonios a 2 columnas */
  .testimonials-grid,
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer en 2x2 */
  .footer {
    padding: 40px 20px 20px 20px;
    justify-items: center;
  }

  .footer-col:nth-child(4) {
    display: flex;
    justify-content: center;
  }

  .footer-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .footer-col:nth-child(3) {
    width: auto;
  }

  .scroll-top-btn {
    position: fixed;
    /* Cambios clave para ocultarlo por defecto: */
    visibility: hidden;
    opacity: 0;
    /* Hace que el elemento sea totalmente transparente */

    bottom: 100px;
    right: 22px;
    background-color: #e5a93b;
    color: #000;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 99;

    /* Transición suave para la aparición/desaparición */
    transition: all 0.4s ease-in-out;
  }

  /* Nueva clase que activará JavaScript al superar el 70% del scroll */
  .scroll-top-btn.show {
    visibility: visible;
    /* Vuelve a habilitar la interactividad */
    opacity: 1;
    /* Vuelve a hacerlo visible */
  }
}


/* ==========================================
   MÓVILES (Max 576px)
   ========================================== */
@media (max-width: 576px) {

  /* Navbar */
  .navbar {
    flex-direction: column;
    text-align: center;
  }

  .nav-links a {
    margin: 0 8px;
    font-size: 0.85rem;
  }

  .header-contact {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  /* Hero */
  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-slider {
    height: 250px;
  }

  /* Cuadrículas pasan a 1 sola columna */
  .testimonials-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .services-section {
    padding: 30px 15px;
  }

  .testimonials-section,
  .gallery-section {
    padding: 30px 15px;
  }

  .testimonials-section {
    height: 1250px;
  }

  .gallery-images img {
    width: 140px;
    height: 100px;
  }

  /* Footer a 1 sola columna */
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-col p:nth-child(3),
  .footer-col ul li,
  .footer-phone {
    justify-content: center;
  }

  .logo-col img {
    height: 100px;
  }

  /* Botón Flotante */
  .whatsapp-float {
    width: 45px;
    height: 45px;
    bottom: 15px;
    right: 15px;
  }

  /* Botón flotante para subir */
  .scroll-top-btn {
    position: fixed;
    /* Cambios clave para ocultarlo por defecto: */
    visibility: hidden;
    /* Oculta la interactividad y para lectores de pantalla */
    opacity: 0;
    /* Hace que el elemento sea totalmente transparente */

    bottom: 100px;
    right: 22px;
    background-color: #e5a93b;
    color: #000;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 99;

    /* Transición suave para la aparición/desaparición */
    transition: all 0.4s ease-in-out;
  }

  /* Nueva clase que activará JavaScript al superar el 70% del scroll */
  .scroll-top-btn.show {
    visibility: visible;
    /* Vuelve a habilitar la interactividad */
    opacity: 1;
    /* Vuelve a hacerlo visible */
  }
}

/* Adaptación a Tablets y Móviles Especialidades */
@media (max-width: 992px) {
  .specialty-row {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .specialty-info {
    align-items: center;
  }

  .specialty-action {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .specialty-media-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .specialty-media-grid img,
  .video-card {
    height: 90px;
  }


}