html {
  scroll-behavior: smooth;
}


/* POPUP lateral / expandible */
.popup {
  position: fixed;
  top: 30%;
  right: 0;
  width: 300px;
  background: #f7b32b;
  color: #1a4f78;
  border-radius: 12px 0 0 12px;
  box-shadow: -5px 5px 15px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: all 0.4s ease;
  z-index: 2000000000;
}

/* Estado reducido (teaser) */
.popup.collapsed {
  width: 50px;
  height: 80px;
  cursor: pointer;
}

.popup.collapsed .popup-content {
  display: none;
}

.popup.collapsed .popup-teaser {
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  /* Texto en vertical */
  text-orientation: mixed;
  font-weight: bold;
  color: #fff;
  padding: 5px;
}

/* Estado expandido */
.popup:not(.collapsed) {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: 60px auto;
  width: 85%;
  max-width: 450px;
  height: auto;
  border-radius: 12px;
  background: #183b7c;
  color: #f7b32b;
}

.popup:not(.collapsed) .popup-content {
  display: block;
  padding: 30px;
  text-align: center;
}

.popup:not(.collapsed) .popup-teaser {
  display: none;
}

/* Botones */
.popup-buttons {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.popup-btn {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 50px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  transition: 0.3s;
}

.popup-btn.interes {
  background: #f7b32b;
  color: #183b7c;
}

.popup-btn.interes:hover {
  background: #e6a210;
}

.popup-btn.continuar {
  background: #f7b32b;
  color: #183b7c;
}

.popup-btn.continuar:hover {
  background: #e6a210;
}

/* 
=============================
=============================
    HEADER
*/

header {
  background: #183b7c;
  color: whitesmoke;
  display: flex;
  align-items: space-between;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  margin: 0;
  padding: 0;
  z-index: 10000;
  margin-bottom: 0;
}

header .logo {
  position: relative;
  width: 10%;
  left: 5vw;
}

header h1 {
  position: relative;
  font-size: 2rem;
  margin: auto;
  left: 0vw;
  font-family: "Anton", sans-serif;
  font-style: normal;
  letter-spacing: 0.05em;
}

header a {
  background-color: #f7b32b;
  color: #1a4f78;
  padding: 10px 20px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 25px;
  margin: auto;
  position: relative;
  right: 0;
}

@media screen and (max-width: 900px) {
  header .logo {
  position: relative;
  width: 10vh;
  left: 5vw;
  }

  header h1 {
    font-size: 1rem;
    display: none;
  }

  header a {
    position: absolute;
    right: 5vw;
    top: 5vh;

  }

  header a {
    top: 3vh;
  }
}

/* 
=============================
=============================
  BODY
*/
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
  background-image: url("background.png");
  background-size: cover;
  background-position: center;
  /* centrada */
  background-attachment: fixed;
  /* efecto fijo al hacer scroll */
  max-width: 100%;
  width: 100%;
}

.cotiza-btn-container a {
  box-shadow: 0 0 17px black;
  margin: 30px auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cotiza-btn-container a:hover {
  box-shadow: 0 0 22px black;
}

.cotiza-btn-container hr {
  margin: 30px auto;
  max-width: 100%;
}

.cotiza-btn {
  background-color: #f7b32b;
  color: #1a4f78;
  padding: 10px 20px;
  font-size: 1.3rem;
  text-decoration: none;
  font-weight: bold;
  border-radius: 25px;
}

.white {
  max-width: 100%;
  width: 100%;
  background: white;
  padding: 5px 0;
  margin: 0;
}

/* 
=============================
=============================
  HERO
*/
#hero {
  background: #183b7c;
  margin: 0 0 0 0;
  text-align: center;
  align-items: center;
  padding: 20px 0;
  color: white;
  width: 100%;
  font-family: "Anton", sans-serif;
  font-style: normal;
  letter-spacing: 0.07em;
}

.hero-responsive {
  margin: 17vh auto;
  position: relative;
  align-content: space-between;
  width: 90%;
}

.hero-responsive .h2-hero {
  position: absolute;
  top: 17%;
  right: 0;
  width: 50%;
  text-align: right;
}

.h2-hero h2 {
  font-size: 2.5rem;
}

.h3-hero {
  position: absolute;
  right: 0;
  bottom: 10%;
  width: 50%;
  text-align: right;
}

.h3-hero h3 {
  font-size: 1.3rem
}

.galeria-muestras {
  max-width: 400px;
  width: 80%;
  overflow: hidden;
  border-radius: 8px;
  position: relative;
  box-shadow: 0 0 30px black;
  top: 30px;
}

@media screen and (max-width: 1000px) {

  .hero-responsive {
    margin: 17vh auto;
    position: relative;
    align-content: space-between;
    width: 90%;
  }

  .hero-responsive .galeria-muestras {
    margin: 0 auto;
    top: 0;
  }

  .hero-responsive .h2-hero {
    position: relative;
    margin: 30px auto;
    width: 100%;
    text-align: center;
  }

  .h2-hero h2 {
    font-size: 1.8rem;
  }

  .h3-hero {
    position: relative;
    margin: 30px auto;
    width: 100%;
    text-align: center;
  }

}

.imagenes {
  display: flex;
  width: 100%;
  animation: deslizar 16s infinite alternate;
}

.imagenes img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

@keyframes deslizar {
  0% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-100%);
  }

  45% {
    transform: translateX(-100%);
  }

  50% {
    transform: translateX(-200%);
  }

  70% {
    transform: translateX(-200%);
  }

  75% {
    transform: translateX(-300%);
  }

  95% {
    transform: translateX(-300%);
  }

  100% {
    transform: translateX(-300%);
  }
}

/* 
=============================
=============================
  SPACE SECTION
*/
.space {
  padding: 100px 0;
  background-color: transparent;
}

/* 
=============================
=============================
  SECCION ABOUT US
*/

.about-us-container {
  text-align: center;
  align-items: center;
  padding: 0 10vw;
  background: white;
  color: #183b7c;
  margin: 0;
  font-family: "Anton", sans-serif;
  font-style: normal;
  letter-spacing: 0.07em;
  padding-bottom: 300px;
}

.about-us h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.about-us p {
  font-size: 1.2rem;
  margin-bottom: 20px
}

.highlight-text {
  font-weight: bold;
  color: red;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.feature-item {
  padding: 30px;
  border: 1px solid #ddd;
  border-radius: 10px;
}

.icon-feature {
  font-size: 3em;
  color: gray;
  margin-bottom: 15px;
}

.feature-item h3 {
  font-size: 1.4em;
  margin-bottom: 10px;
  font-weight: 600;
}

/* 
=============================
=============================
  SECCION SERVICES
*/

.services {
  background: #183b7c;
  color: white;
  padding: 50px 10vw;
  text-align: center;
  margin: 0;
  font-family: "Anton", sans-serif;
  font-style: normal;
  letter-spacing: 0.07em;
}

.service-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  height: 100%;
}

.icon-card {
  font-size: 2.5em;
  color: gray;
  margin-bottom: 15px;
}

.service-card h3 {
  font-size: 1.3em;
  margin-bottom: 10px;
  font-weight: 600;
}


/* 
=============================
=============================
    MAPS
*/
.maps {
  background: white;
  text-align: center;
  padding: 20px 10vw;
  font-family: "Anton", sans-serif;
  font-style: normal;
  letter-spacing: 0.07em;
}

.maps h2 {
  color: #00328f;
  margin: 2rem auto;
  font-size: 2.5rem;
}

.title-carrusel {
  margin: 10px auto;
}

.title-carrusel img {
  width: 80%;
  max-width: 450px;
  margin: auto;
}

.carrusel {
  width: 85%;
  max-width: 550px;
  margin: 3rem auto;
  overflow: hidden;
  border-radius: 12px;
  padding: 0;
  background: transparent;
}

.carrusel-container {
  display: flex;
  width: calc(20% * 13);
  /* porque duplicamos imágenes para efecto infinito */
  animation: scroll 24s linear infinite;
  background: transparent;
}

.carrusel-container img {
  width: 50%;
  max-width: 350px;
  flex-shrink: 0;
  background-color: transparent;
}

/* Animación infinita */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }

}

@media screen and (max-width: 1000px) {
  .carrusel-container {
    animation: scroll 14s linear infinite;

  }
}

/* 
=============================
=============================
*/
/* 
=============================
=============================
*/
.contact {
  background: #183b7c;
}

.cotizacion {
  background: #183b7c;
  color: white;
  padding: 50px 10vw;
  text-align: center;
  margin: 0;
  font-family: "Anton", sans-serif;
  font-style: normal;
  letter-spacing: 0.07em;
}

.cotizacion h2 {
  font-size: 2.5rem;
}

.cotizacion h3 {
  font-size: 1.7rem;
}

.cotizacion p {
  font-size: 1rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 2rem;
  justify-content: center;
}

.gallery img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease-in-out;
}

.gallery img:hover {
  transform: scale(1.05);
}

/* Checkbox */
.checkbox-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.checkbox-container input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  height: 25px;
  width: 25px;
  background-color: #e0e0e0;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  margin-right: 10px;
  transition: background-color 0.3s;
}

.checkbox-container input[type="checkbox"]:checked {
  background-color: #28a745;
}

.checkbox-container input[type="checkbox"]:checked::after {
  content: '\2713';
  /* Símbolo de palomita (✓) */
  font-size: 18px;
  color: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.checkbox-container label {
  font-size: 1.1rem;
  cursor: pointer;
  color: white;
}

/* Botón de WhatsApp */
#whatsappBtn {
  display: block;
  width: 80%;
  max-width: 300px;
  margin: 0 auto;
  padding: 15px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
  background-color: #ddd;
  border: none;
  border-radius: 50px;
  cursor: not-allowed;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#whatsappBtn.active {
  background-color: #28a745;
  cursor: pointer;
}

#whatsappBtn.active:hover {
  background-color: #218838;
  transform: translateY(-3px);
}

/* 
=============================
=============================
    pupop
*/
/* CSS: Estilos y Animaciones del Mensaje Flotante */

/* Estilos Base y Posicionamiento */
.mensaje-tecnico-flotante {
  /* Fija el mensaje en la pantalla */
  position: fixed;
  top: 30%;
  /* Centrado verticalmente */
  right: 0;
  /* Inicialmente pegado al borde derecho */
  transform: translateY(-50%);
  /* Ajuste fino para centrar */

  /* Estilo Moderno y Profesional */
  background: white;
  padding: 12px 15px;
  border-radius: 15px 0 0 15px;
  /* Bordes redondeados solo a la izquierda (el lado que se "asoma") */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  /* Indica que es clicable */
  z-index: 1000;
  /* Asegura que esté por encima de otros elementos */
  transition: all 0.3s ease-out;
  /* Transiciones suaves para interacciones */
  max-width: 180px;

  /* Ocultar inicialmente y preparar para la animación */
  opacity: 0;
  right: -180px;
  /* Completamente fuera de pantalla para el deslizamiento */
}

/* Estado al pasar el mouse (para indicar clicable) */
.mensaje-tecnico-flotante:hover {
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  right: 5px;
  /* Se desliza un poco más al ser apuntado */
}

/* Contenido Interno */
.mensaje-tecnico-flotante .contenido-mensaje {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mensaje-tecnico-flotante .icono {
  font-size: 1.2em;
}

.mensaje-tecnico-flotante .texto {
  font-family: sans-serif;
  font-weight: 600;
  color: #333;
  /* Color de texto oscuro y legible */
}

/* Botón de Cerrar (la "X") */
.cerrar-mensaje {
  position: absolute;
  top: 0px;
  right: 5px;
  background: none;
  border: none;
  font-size: 1.2em;
  color: #aaa;
  cursor: pointer;
  line-height: 1;
  padding: 2px;
  transition: color 0.2s;
}

.cerrar-mensaje:hover {
  color: #555;
}


/* === Animaciones Keyframes === */

/* 1. Animación de Entrada (Deslizamiento con Rebote Sutil) */
@keyframes slideInBounce {
  0% {
    opacity: 0;
    right: -180px;
    /* Inicia fuera de pantalla */
  }

  70% {
    opacity: 1;
    right: 20px;
    /* Desliza más de lo deseado para el rebote */
  }

  100% {
    opacity: 1;
    right: 10px;
    /* Posición final "asomándose" */
  }
}

/* 2. Animación de Pulso (Llamada de Atención Discreta) */
@keyframes subtlePulse {

  0%,
  100% {
    transform: translateY(-50%) scale(1);
  }

  50% {
    transform: translateY(-50%) scale(1.02);
    /* Escala ligeramente */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  }
}

/* Clase para aplicar la animación de entrada */
.animar-entrada {
  animation: slideInBounce 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  /* 'forwards' mantiene el estado final del 100% */
}

/* Clase para aplicar la animación de pulso */
.animar-pulso {
  animation: subtlePulse 1.5s ease-in-out infinite;
}

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