/* Fuente tipo Apple y estilos base */
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #f0f6fc; /* azul muy suave de fondo */
  color: #1c2a3a;
  line-height: 1.6;
  scroll-behavior: smooth;
}

header {
  text-align: center;
  padding: 60px 20px 40px;
  background: #e6f0fa; /* fondo azul claro */
}

header h1 {
  font-size: 2.8rem;
  margin-bottom: 10px;
  color: #003366; /* azul oscuro corporativo */
}

header p {
  font-size: 1.2rem;
  color: #336699; /* azul intermedio */
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 60px;
}

section {
  margin-bottom: 60px;
  padding: 0 10px;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #003366;
  border-left: 5px solid #007bff;
  padding-left: 10px;
}

section p, section li {
  font-size: 1.1rem;
  color: #2d2d2d;
}

ul {
  padding-left: 20px;
}

footer {
  text-align: center;
  font-size: 0.9rem;
  color: #999;
  padding: 40px 20px;
  background-color: #e6f0fa;
}

/* Mapa */
.mapa {
  margin-top: 20px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 12px rgba(0, 51, 102, 0.15);
}

/* Transiciones suaves */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #0d1117;
    color: #e5e5e7;
  }

  header {
    background-color: #161b22;
    color: #fff;
  }

  section h2 {
    color: #58a6ff;
    border-left-color: #58a6ff;
  }

  section p, section li {
    color: #ccc;
  }

  footer {
    background-color: #161b22;
    color: #aaa;
  }
}

.appear {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 1000;
  width: 60px;
  height: 60px;
}

.whatsapp-float img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.whatsapp-float img:hover {
  transform: scale(1.1);
}

.nosotros {
  text-align: center;
  margin-bottom: 60px;
}

.nosotros h2 {
  font-size: 2.4rem;
  color: #1d8be0;
  margin-bottom: 10px;
}

.nosotros p {
  color: #ccc;
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.carrusel-container {
  overflow: hidden;
  position: relative;
  padding: 0 20px;
}

.carrusel {
  display: flex;
  gap: 30px;
  animation: scrollLoop 25s linear infinite;
  padding: 10px 0;
}

.card {
  flex: 0 0 220px;
  background: #1c1c1e;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Efecto hover */
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.35);
}

.card img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 15px;
  border: 2px solid #3a9ce6;  
}

/* Nombre */
.card h3 {
  margin: 10px 0 5px;
  font-size: 1.1rem;
  color: #fff;
}

/* Rol */
.card p {
  font-size: 0.9rem;
  color: #aaa;
  margin: 0;
}

/* Elimina la barra de scroll */
.carrusel::-webkit-scrollbar {
  display: none;
}
.carrusel {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Animación infinita */
@keyframes scrollLoop {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.contacto-certificaciones {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 60px 20px;
  gap: 40px;
}

.contacto, .certificaciones {
  flex: 1 1 300px;
  color: #ccc;
}

.contacto h2, .certificaciones h2 {
  font-size: 1.6rem;
  color: #1d8be0;
  margin-bottom: 20px;
  border-left: 4px solid #1d8be0;
  padding-left: 10px;
}

.contacto p {
  font-size: 1rem;
  line-height: 1.5;
}

.contacto a {
  color: #3a9ce6;
  text-decoration: none;
}

.contacto a:hover {
  text-decoration: underline;
}

.sellos {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.sellos img {
  height: 60px;
  opacity: 0.8;
  filter: grayscale(30%);
  transition: all 0.3s ease;
}

.sellos img:hover {
  opacity: 1;
  filter: none;
}

nav {
  position: sticky;
  top: 0;
  background: #000;
  z-index: 100;
}

@media (max-width: 768px) {
  header h1 {
    font-size: 2rem;
  }

  header p,
  section p {
    font-size: 1rem;
  }

  .carrusel {
    gap: 15px;
  }

  .card {
    flex: 0 0 180px;
    padding: 15px;
  }

  .contacto-certificaciones {
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
}

/* NAV */
.main-nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: #222;
  z-index: 1000;
}
.main-nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 1rem;
  margin: 0;
  gap: 2rem;
}
.main-nav a {
  color: #3a9ce6;
  text-decoration: none;
  font-weight: bold;
}
.main-nav a:hover {
  color: #ffa500;
}

/* SLIDER */
.slider {
  margin-top: 60px;
  width: 100%;
  height: 400px;
  overflow: hidden;
  position: relative;
}


/* Contenedor de las imágenes */
.slides {
  display: flex;
  width: calc(200%); /* Doble de ancho porque duplicamos las imágenes */
  height: 100%;
  gap: 20px; /* separación entre imágenes */
  animation: scrollSlider 60s linear infinite;
}

/* Imágenes */
.slides img {
  width: calc(100% / 10); /* 10 porque son 5 originales + 5 duplicadas */
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* Animación continua */
@keyframes scrollSlider {
  from {
    transform: translateX(0%);
  }
  to {
    transform: translateX(-50%); /* Se desplaza la mitad, justo hasta que se repite */
  }
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

.servicios {
  background-color: #0f1218; /* mismo fondo oscuro que el resto */
  color: #fff;
  padding: 60px 20px;
}

.servicios h2 {
  color: #3498db;
  font-size: 2em;
  margin-bottom: 20px;
  text-align: left; /* alinea a la izquierda */
  border-left: 5px solid #3498db;
  padding-left: 10px;
}

.servicios p {
  max-width: 800px;
  line-height: 1.6;
  font-size: 1.1em;
  color: #ccc;
  margin: 0 auto;
  text-align: left;
}

.servicios iframe {
  display: block;
  margin: 30px auto 0 auto;
  border-radius: 8px;
}

.section-title {
  color: #3399ff;
  font-size: 2rem;
  font-weight: bold;
  padding-left: 10px;
  display: inline-block;
  margin-bottom: 20px;
}

.menu-toggle {
  display: none;
  background: none;
  font-size: 30px;
  border: none;
  cursor: pointer;
  color: white;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
  }

  #navLinks {
    display: none;
    flex-direction: column;
    background-color: #111;
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    padding: 20px;
  }

  #navLinks.open {
    display: flex;
  }
}



/* Dark mode opcional */
@media (prefers-color-scheme: dark) {
  .card {
    background: #1c1c1e;
    color: #ddd;
  }
}

