/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Tipografía general */
body {
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: #222;
  background-color: #f3f5f7;
}

/* Secciones generales */
section:not(.hero-slider) {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: auto;
}

section:not(.hero-slider) {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.04);
}

/*encabezados*/
/* Aplica a todos los encabezados de sección */
.encabezado-seccion {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center; /* Esto centra el contenido dentro del contenedor */
}

/* Estilo específico para el h2 */
.encabezado-seccion h2 {
  font-size: 2.5rem;
  color: #0d1a2b;
  border-bottom: 4px solid #00bfff;
  display: inline-block;
  margin-bottom: 1rem;
  font-weight: 700;
}


.encabezado-seccion p {
  font-size: 1.05rem;
  color: #444;
}


/* Contenedor de las líneas diagonales para secciones*/
.diagonal-divisor {
  height: 300px;
  background: linear-gradient(
    to right,
    transparent,
    #0d1a2b 100%,
    #0d1a2b 0%,
    transparent
  );
  transform: skewY(-14deg);
  transform-origin: top left;
  margin-top: -300px; /* ajusta para empalmar mejor con sección anterior */
  z-index: 1;
}

.seccion-blanca {
  position: relative;
  z-index: 1;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.04);
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: auto;
}



/* menu fijo con logo (isla dinámica) */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
  background-color: #0d1a2b;
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 110px;
  transition: all 0.3s ease;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 100px;
  max-height: 200px;
  object-fit: contain;
}

/* Menú */
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links li a {
  font-size: 1.1rem;
  color: white;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #00b7ff;
}

/* Botón de hamburguesa */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
    z-index: 2000;
    position: absolute; /* Cambiar a absoluto */
    top: 20px;
    right: 20px; /* Ajusta la distancia del borde derecho */
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: #fff;
    transition: 0.3s;
}

.nav-open .hamburger span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.nav-open .hamburger span:nth-child(2) {
    opacity: 0;
}

.nav-open .hamburger span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Ocultar el menú por defecto en móvil */
.nav-links {
    display: flex;
    gap: 20px;
    transition: all 0.3s ease;
}

.nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background: #0d1a2b;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    padding: 1.5rem 0;
    animation: fadeInMenu 0.3s ease-in-out;
}

.nav-links.open li {
    text-align: center;
    padding: 1rem 0;
}

.nav-links.open li a {
    font-size: 1.2rem;
    color: #ffffff;
}

@keyframes fadeInMenu {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
    }

    .nav-links.open {
        display: flex;
    }
}

/* Efecto al hacer scroll en el header */
header.scrolling {
  height: 65px;
  background-color: #0d1a2bcc; /* con opacidad */
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: all 0.3s ease-in-out;
}

header.scrolling .logo img {
  height: 40px;
}

header.scrolling nav a {
  font-size: 1rem;
}

/*seccion inicio */
.hero-slider {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 1.1s ease-in-out;
  z-index: 0;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-overlay {
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.hero-content {
  color: white;
  text-align: center;
  max-width: 800px;
}

.hero-content h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.hero-slider .btn {
  padding: 1rem 2rem;
  background: linear-gradient(90deg, #00b7ff, #052d43);
  color: white;
  font-weight: bold;
  font-size: 1.5rem;
  border: none;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 183, 255, 0.2);
  text-decoration: none;
  transition: 0.7s;
  cursor: pointer;
}

.hero-slider .btn:hover {
  transform: scale(1.1);
  filter: grayscale(0%);
  background: linear-gradient(90deg, #052d43, #00b7ff);
  box-shadow: 3px 6px 12px rgba(0, 123, 189, 0.3);
}


.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.5);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 2;
}

.nav.prev {
  left: 10px;
}

.nav.next {
  right: 10px;
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }
}

.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}

.dot {
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: #00b7ff;
}



/* Nosotors */
.nosotros {
  background-color: #f0f4f7;
  padding: 4rem 2rem;
}

.contenedor-nosotros {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
}

.texto-nosotros {
  flex: 1 1 400px;
  border-left: 5px solid #00b7ff; /* línea azul decorativa a la izquierda */
  padding-left: 1.5rem;           /* separación del texto respecto al borde */
}

.texto-nosotros p {
  margin-bottom: 1rem; /* separación visual entre párrafos */
}

.texto-nosotros h2 {
  font-size: 2.5rem;
  color: #0d1a2b;
  margin-bottom: 1.5rem;
}

.imagen-nosotros {
  flex: 1 1 400px;
  text-align: center;
}

.imagen-nosotros img {
  width: 100%;
  max-width: 450px;
  border-radius: 8px;
  object-fit: cover;
}

.valores-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.valor-card {
  flex: 1 1 200px;
  background-color: #e1ecf4;
  padding: 1rem;
  border-radius: 6px;
  text-align: center;
  font-weight: bold;
  color: #0d1a2b;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}


/* Título fijo, sin animación */
.titulo-nosotros {
  font-size: 2.5rem;
  color: #0d1a2b;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #0d1a2b;
}

/* Animación oculta por defecto */
.animar-scroll {
  max-width: 600px;              /* limita el ancho del texto para mejor lectura */
  line-height: 1.7;              /* mayor separación entre líneas */
  color: #0d1a2b;
  opacity: 0;
  visibility: hidden;
}

/* Cuando entra en pantalla */
.animar-scroll.visible {
  visibility: visible;
  animation: slideInLeft 2s ease forwards;
}

/* Keyframes personalizados */
@keyframes slideInLeft {
  0% {
    transform: translateX(-50px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}


/* El logo ya visible desde el inicio */
.logo-palpita img {
  animation: pulse 2s ease-in-out infinite;
  opacity: 1;
  transform: scale(1);
}

/* Animación tipo latido/palpitación */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}


/* SECCIÓN SERVICIOS */
.servicios {
  background: #f3f5f7;
  padding: 4rem 2rem;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: auto;
}

/* TARJETAS DE SERVICIO */
.servicio-card {
  position: relative;
  overflow: hidden;
  background: white;
  padding: 2rem 1.5rem;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  color: #0d1a2b;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 260px;
}

.servicio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 123, 255, 0.2);
  background: #eef6fb;
}

.servicio-card img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 1rem;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.servicio-card:hover img {
  filter: grayscale(0%);
}

.servicio-card h3 {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  z-index: 2;
}

/* PÁRRAFO OCULTO POR DEFECTO Y EXPANDE EN HOVER */
.servicio-card p {
  font-size: 0.95rem;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.4s ease, max-height 0.4s ease;
}

.servicio-card:hover p {
  opacity: 1;
  max-height: 100px;
}

/* ÚLTIMA CARD CENTRADA SI ES IMPAR */
.servicios-grid > .servicio-card:nth-last-child(1):nth-child(odd) {
  grid-column: span 2;
  justify-self: center;
  max-width: 500px; 
}


/* Socios comerciales */
.socios {
  background-color: #ffffff;
  text-align: center;
  padding: 4rem 2rem;
}

.socios h2 {
  font-size: 3rem;
  color: #0d1a2b;
  margin-bottom: 1rem;
}

.socios p {
  color: #444;
  margin-bottom: 3rem;
}

.logos-socios {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  align-items: center;
}

.logos-socios a img {
  max-width: 160px;
  height: auto;
  transition: transform 0.3s ease;
  filter: grayscale(60%);
}

.logos-socios a:hover img {
  transform: scale(1.3);
  filter: grayscale(0%);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
}

.modal-contenido {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 520px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.25);
  position: relative;
  animation: 0.15s ease-in-out;
  text-align: justify;
}

.modal-contenido h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #0d1a2b;
}

.modal-contenido p {
  font-size: 1rem;
  color: #333;
  line-height: 1.5;
}

.cerrar {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.4rem;
  font-weight: bold;
  color: #888;
  cursor: pointer;
  transition: color 0.2s ease;
}

.cerrar:hover {
  color: #000;
}


#modalSectores {
  text-align: left;
  margin-top: 1rem;
  padding-left: 1.2rem;
}

#modalSectores li {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #333;
  list-style-type: disc;
}


#modalLogo {
  max-width: 180px;
  margin-bottom: 1rem;
}




/* Contacto */
.contacto {
  background: linear-gradient(to right, #f7f9fc, #ffffff);
  padding: 5rem 2rem;
  color: #070707;
  position: relative;
  z-index: 10;
}

.container-contacto {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Centra ambos bloques horizontalmente */
  align-items: flex-start;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
}


.info-contacto {
  flex: 1;
  min-width: 280px;
  max-width: 500px;
}

.info-contacto h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.info-contacto p {
  margin-bottom: 2rem;
}

.linea-contacto {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 1.3rem;
  font-weight: 500;
}

.linea-contacto a {
  color: #0d1a2b;
  text-decoration: none;
  transition: color 0.3s ease;
}

.linea-contacto a:hover {
  color: #0071aa;
}

.icono-linea {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

/*tarjeta*/
.tarjeta-contacto {
  background-color: #f9fbfc;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}


/*mensaje*/
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mensaje-sistema {
  background-color: rgba(255, 255, 255, 0.85);
  color: #333;
  padding: 0.8rem 1rem;
  border-radius: 18px;
  max-width: 90%;
  font-size: 0.9rem;
  box-shadow: 0 4px 10px rgba(0, 183, 255, 0.1);
  align-self: flex-start;
  position: relative;
  margin-top: -20px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.mensaje-sistema::after {
  content: "";
  position: absolute;
  left: 10px;
  bottom: -8px;
  width: 0;
  height: 0;
  border: 8px solid transparent;
  border-top-color: rgba(255, 255, 255, 0.85);
}

.mensaje-sistema.visible {
  opacity: 1;
  transform: translateY(0);
}



/* Formulario */
.chat-phone {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 9 / 18;
  border-radius: 36px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.3),
              0 12px 25px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  border: 2px solid rgba(255, 255, 255, 0.4);
  background-image: url('img/logo-istem.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 200px;
  position: relative;
  overflow: hidden;
  margin: 0 auto;
}


.pantalla-chat {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  height: 100%;
  justify-content: center;
  backdrop-filter: blur(3px);
  padding-top: 1rem;
}



.mensaje-entrada input,
.mensaje-entrada textarea {
  background: rgba(255, 255, 255, 0.85);
  font-family: inherit;
  border-radius: 20px;
  border: none;
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08),
              0 4px 12px rgba(0, 183, 255, 0.12);
  width: 100%;
  resize: none;
  color: #222;
}


.mensaje-entrada textarea {
  min-height: 80px;
}

@keyframes aparecerBurbuja {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mensaje-final {
  background-color: #d4edda;
  color: #155724;
  padding: 1rem;
  border-radius: 5px;
  margin-top: 1rem;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid #c3e6cb;
}

.oculto {
  display: none;
}

.visible {
  display: block;
  opacity: 0;
  animation: aparecerBurbuja 0.6s ease-out forwards;
}



/*boton*/
.boton-chat {
  text-align: right;
}

.boton-chat button {
  background-color: #05455b;
  color: white;
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 6px 15px rgba(0, 191, 255, 0.3);
  transition: all 0.3s ease-in-out;
  transform: translateY(0);
}

.boton-chat button:hover {
  background-color: #009fdd;
  box-shadow: 0 10px 20px rgba(0, 191, 255, 0.5);
  transform: translateY(-3px);
}

button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Efecto de clic */
.boton-chat button:active {
  transform: translateY(1px);
  box-shadow: 0 4px 10px rgba(0, 191, 255, 0.2);
}



/* Footer */
footer {
  background-color: #0d1a2b;
  color: white;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

/* Responsive: Menú y secciones */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 0.8rem;
  }

  .valores {
    flex-direction: column;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/*seccion Catalogo*/
.catalogo {
  padding: 4rem 2rem;
  text-align: center;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.04);
}

.catalogo h2 {
  font-size: 2.5rem;
  color: #0d1a2b;
  margin-bottom: 1rem;
  border-bottom: 4px solid #00b7ff;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.catalogo p {
  color: #555;
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

.catalogo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.catalogo-boton {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}


.btn-catalogo {
  display: inline-block;
  padding: 0.9rem 2rem;
  background-color: #052d43;
  color: #ffffff;
  font-weight: 600;
  font-size: 1.1rem;
  border: 2px solid #00b7ff;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.4s ease-in-out;
  box-shadow: 0 6px 14px rgba(0, 183, 255, 0.15);
}

.btn-catalogo:hover {
  background-color: #00b7ff;
  color: #052d43;
  box-shadow: 0 10px 20px rgba(0, 183, 255, 0.3);
  transform: translateY(-2px);
}

.slider-categorias {
  overflow: hidden;
  position: relative;
  padding: 2rem 0;
}

.slider-track {
  display: flex;
  width: max-content;
  animation: scrollSlider 30s linear infinite;
}

@keyframes scrollSlider {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.categoria-card {
  width: 300px;
  min-width: 300px;
  margin: 0 3rem;
  background: #ffffff;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  color: #0d1a2b;
  box-shadow: 0 6px 16px rgba(0, 183, 255, 0.08);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.categoria-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.categoria-card h3 {
  padding: 1rem;
  font-size: 1.2rem;
  font-weight: bold;
}

.categoria-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 22px rgba(0, 123, 255, 0.2);
}


/*pagina Catalogo*/

/*menu catalogo*/
.catalogo-header {
  background-color: #0d1a2b;
  padding: 1rem 2rem;
  position: sticky;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center; /* centramos el contenido */
}

.catalogo-header .logo img {
  height: 90px;
  object-fit: contain;
}

/* Posicionamos el botón a la izquierda */
.btn-volver {
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  background-color: #00b7ff94;
  color: white;
  border: none;
  padding: 0.3rem 0.8rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.btn-volver:hover {
  background-color: #009edb;
  transform: translateY(-50%) scale(1.05);
}



/* 🎛️ Filtros compactos con estilo moderno */
.filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: flex-end;
  margin: 2rem 0;
}

.grupo-filtros {
  display: flex;
  flex-direction: column;
  align-items: start;
}

.grupo-filtros label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: #2c3e50;
}

.grupo-filtros select {
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  background-color: #f7f9fb;
  font-size: 1rem;
  color: #333;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  min-width: 200px;
}

.grupo-filtros select:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

/* Responsive para móviles */
@media (max-width: 600px) {
  .filtros {
    flex-direction: column;
    align-items: center;
  }

  .grupo-filtros select {
    min-width: 250px;
  }
}


/* === TARJETAS DEL CATÁLOGO === */
.catalogo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem 1rem;
}

.tarjeta-maquina {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.tarjeta-maquina:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Animación visual al hacer clic */
.tarjeta-maquina:active {
  transform: scale(0.98);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}


.tarjeta-maquina img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.tarjeta-maquina h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #003366;
}

.tarjeta-maquina p {
  margin: 0.2rem 0 1rem;
  font-size: 0.95rem;
  color: #444;
}



/* === MODAL DE DETALLES === */
#modalMaquina {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background-color: #fff;
  max-width: 500px;
  width: 90%;
  padding: 2rem;
  border-radius: 12px;
  position: relative;
  text-align: left;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  transform: scale(0.95);
  opacity: 1;
  visibility: visible;
}

.modal-content * {
  visibility: visible !important;
  opacity: 1 !important;
}

/* Keyframes */
@media (max-width: 768px) {
  .modal-content {
    max-height: 90vh;
    overflow-y: auto;
    width: 95%;
    padding: 1.5rem;
  }
}

@keyframes fadeIn {
  from { background-color: rgba(0,0,0,0); }
  to { background-color: rgba(0,0,0,0.6); }
}

@keyframes zoomIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-content img {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: contain;
  margin-bottom: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}


.modal-content h3 {
  margin-top: 0;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  color: #003366;
}

.modal-content p {
  font-size: 0.95rem;
  margin: 0.5rem 0;
}

.modal-cerrar {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  color: #444;
  z-index: 10;
}



/*boton al top del catalogo*/
#btnSubir {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: rgba(2, 57, 105, 0.675);
  color: #fff;
  border: 1px solid #fff;
  padding: 1rem 0.9rem;
  font-size: 1.1rem;
  border-radius: 12px;
  cursor: pointer;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  z-index: 1500;
  display: none;
}

#btnSubir:hover {
  background-color: rgba(0, 87, 165, 1);
  transform: translateY(-2px);
}

#btnSubir img {
  width: 22px;
  height: 22px;
  filter: invert(1); /* hace que el ícono se vea blanco si es oscuro */
  transition: transform 0.2s ease;
}

#btnSubir:hover img {
  transform: scale(1.2);
}


/*boton tarjetas*/
.boton-contacto-container {
  text-align: center;
  margin-top: 2rem;
}

.boton-contacto {
  display: inline-block;
  background-color: #003366;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.boton-contacto:hover {
  background-color: #00509e;
}

/*avisos de privacidad*/
.politica-privacidad {
  max-width: 900px;
  margin: 4rem auto;
  padding: 2rem;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

.politica-privacidad h3 {
  font-size: 1.3rem;
  margin-top: 1.5rem;
  color: #0d1a2b;
}

.politica-privacidad p,
.politica-privacidad ul {
  font-size: 1rem;
  color: #444;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.politica-privacidad ul {
  padding-left: 1.2rem;
  list-style: disc;
}

.politica-privacidad em {
  color: #888;
  font-size: 0.9rem;
}

.volver-inicio {
  text-align: center;
  margin-top: 2rem;
}

.btn-volver {
  display: inline-block;
  background-color: #007bff;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-volver:hover {
  background-color: #0056b3;
}

