.header {
  background-color: #0c3c96b1;
  height: 50px;             /* altura delgada */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;          /* poco padding horizontal */
  box-sizing: border-box;
  width: 100%;              /* ancho total */
  position: fixed;          /* fijo arriba */
  top: 0;
  left: 0;
  z-index: 1000;            /* por encima de otros elementos */
  font-size: 1 rem;
  color: white;
}
.center-text{
  font-family: 'Bebas Neue', cursive;
  font-size: 1 rem;
  opacity: 0.8;
  color: #ffffff;
  text-align: center;
  letter-spacing: 8px; 
}

.logo img {
  height: 35px;        
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: inherit;
}

.nav-links {
  display: flex;
  gap: 35px;
  font-size: 1 rem;
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  line-height: 50px;       /* centrar verticalmente */
}

.nav-links a:hover {
  text-decoration: underline;
  text-decoration-color: rgb(195, 173, 49);
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons svg {
  width: 25px;
  height: 25px;
  vertical-align: middle;
}
.social-icons img {
  width: 25px;
  height: 25px;
  vertical-align: middle;
}
/* Tablets y pantallas medianas */
@media (max-width: 992px) {
  .header {
    flex-wrap: wrap;
    height: auto;             
    padding: 8px 15px;        /* menos padding para que sea más compacto */
    justify-content: center;
    text-align: center;
  }

  .logo {
    flex: 1 1 100%;
    justify-content: center;
    display: flex;
    margin-bottom: 5px;
  }

  .logo img {
    height: 28px;             /* logo más pequeño */
  }

  .center-text {
    flex: 1 1 100%;
    font-size: 0.95rem;       /* reducir tamaño del eslogan */
    letter-spacing: 3px;      
    margin-bottom: 5px;
  }

  .nav-links {
    flex: 1 1 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;                /* menos espacio entre enlaces */
    font-size: 0.95rem;       /* enlaces más pequeños */
    margin-bottom: 5px;
  }

  .nav-links a {
    line-height: 1.3;
    padding: 0 5px;
  }

  .social-icons {
    flex: 1 1 100%;
    justify-content: center;
    display: flex;
    gap: 10px;                /* menos espacio entre iconos */
    margin-bottom: 5px;
  }

  .social-icons svg,
  .social-icons img {
    width: 20px;              /* iconos más pequeños */
    height: 20px;
  }
}

/* Móviles pequeños — más compacta (25% más pequeña) */
@media (max-width: 600px) {
  .header {
    height: auto;             
    padding: 4px 8px;        /* header más delgado */
    flex-wrap: wrap;          
    justify-content: center;
    text-align: center;
  }

  .logo img {
    height: 18px;             /* logo más pequeño */
  }

  .center-text {
    font-size: 0.75rem;        /* eslogan más compacto */
    letter-spacing: 1px;      
    margin-bottom: 2px;
  }

  .nav-links {
    flex-direction: row;       
    flex-wrap: wrap;           
    align-items: center;
    justify-content: center;
    gap: 6px;                  /* menos espacio entre enlaces */
    font-size: 0.75rem;        /* enlaces más pequeños */
  }

  .nav-links a {
    line-height: 1.1;
    padding: 0 3px;
  }

  .social-icons {
    gap: 6px;                 
  }

  .social-icons svg,
  .social-icons img {
    width: 14px;              /* iconos más pequeños */
    height: 14px;
  }
}


/* Carrusel de imágenes */
.swipe-carousel {
  display: flex;
  overflow-x: hidden; 
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  width: 100%;
  max-width: 900px;
  margin: 60px auto 0 auto; /* espacio debajo del header */
  position: relative;
}

/* Tablets */
@media (max-width: 992px) {
  .swipe-carousel {
    max-width: 600px;  
    margin-top: 70px;  /* header más grande al hacer wrap */
  }
}

/* Móviles */
@media (max-width: 600px) {
  .swipe-carousel {
    max-width: 320px;  
    margin-top: 80px;  /* suficiente espacio para no mezclarse con el header */
  }
}


.slide {
  flex: 0 0 100%; /* Cada slide ocupa el 100% del carrusel */
  scroll-snap-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 400px;
  box-sizing: border-box; /* Asegura que el padding no desborde */
}

.slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* Ajusta imagen sin deformarla */
  border-radius: 10px;
}

/* Sección "¿Qué hacemos?" */
.que-hacemos {
  background-color: #ffffff;
  padding: 60px 20px 200px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #05134e;
  position: relative;
}

.que-hacemos .container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.que-hacemos h2 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  color: #080530;
}

.que-hacemos .descripcion {
  opacity: 0;
  transform: translateX(100px);
  transition: opacity 1s ease, transform 1s ease;
  font-size: 1.2rem;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  color: #222; /* más oscuro */
}

.que-hacemos .descripcion.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Servicios */
.servicios {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.servicio {
  background-color: #fff;
  box-shadow: 0 4px 12px rgb(12, 7, 63);
  border-radius: 10px;
  padding: 25px;
  flex: 1 1 280px;
  max-width: 320px;

  /* Animación de entrada */
  opacity: 0;
  transform: translateY(100px);
  transition: transform 0.6s ease, box-shadow 0.3s ease, opacity 0.8s ease;
}

.servicio.visible {
  opacity: 1;
  transform: translateY(0);
}

.servicio:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.servicio h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #084ca5;
}

.servicio p {
  font-size: 1rem;
  color: #111; /* más oscuro */
  line-height: 1.4;
}

/* Sección "¿Por qué nos eligen?" */
.por-que-nos-eligen {
  background-color: #f9f9f9;
  padding: 60px 20px 200px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #222222;
  position: relative;
}

.por-que-nos-eligen .container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.por-que-nos-eligen h2 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  color: #080530;
}

.por-que-nos-eligen .descripcion {
  opacity: 0;
  transform: translateX(100px);
  transition: opacity 1s ease, transform 1s ease;
  font-size: 1.2rem;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  color: #222; /* más oscuro */
}

.por-que-nos-eligen .descripcion.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Video */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  padding-top: 25px;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  margin-top: 30px;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
/*Zona de horarios*/

.table-wrap {
  overflow-x: auto; /* permite scroll horizontal en móviles */
}

table {
  border-collapse: collapse;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #0c3c96;
}

thead th {
  background: rgb(243, 218, 76);
  padding: 12px 10px;
  font-weight: 700;
  font-size: 14px;
  border-bottom: 2px solid #0c3c96;
}

thead .main-header {
  text-align: center;
  font-size: 15px;
  letter-spacing: 0.02em;
}

thead .sub-header {
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  padding: 10px;
  border-bottom: 2px solid #0c3c96;
}

tbody td {
  padding: 10px;
  text-align: center;
  border-bottom: 2px solid #0c3c96;
  min-height: 40px;
  word-wrap: break-word; /* evita que el texto se salga */
}

tbody tr td:first-child {
  text-align: left;
  font-weight: 600;
  padding-left: 14px;
  background: #2068eeb1;
  width: 22%;
  border-right: 2px solid #0c3c96;
}

.table-wrap table {
  opacity: 0;
  transform: translateX(80px); /* empieza fuera a la derecha */
  transition: opacity 0.9s ease-out, transform 0.9s ease-out;
}

.table-wrap table.visible {
  opacity: 1;
  transform: translateX(0); /* llega a su posición */
}

/* --- MEDIA QUERIES PARA MÓVIL --- */
@media (max-width: 768px) {
  thead th, thead .sub-header, tbody td {
    font-size: 12px; /* reducir tamaño de fuente */
    padding: 6px 4px; /* reducir padding */
  }

  tbody tr td:first-child {
    font-size: 13px;
    padding-left: 8px;
  }

  table {
    max-width: 100%; /* que no exceda el ancho de la pantalla */
  }
}





/* CONTENEDOR GENERAL */
.como-llegar {
  padding: 60px 20px;
  background-color: #f5f5f5;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overflow: hidden; /* evita scroll por animaciones laterales */
}

.titulo-llegar {
  text-align: center;
  font-size: 2.5rem;
  color: #080530;
  margin-bottom: 40px;
}

/* CONTENEDORES FLEXIBLES */
.cuadrados-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  max-width: 1100px;
  margin: auto;
}

/* CUADRO GENERAL */
.cuadro {
  flex: 1 1 45%;
  background-color: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  opacity: 0;
  transform: translateX(100px); /* por defecto entra desde la derecha */
  transition: transform 1s ease, opacity 1s ease;
}

.cuadro.izquierda {
  transform: translateX(-100px); /* entra desde la izquierda */
}

.cuadro.visible {
  opacity: 1;
  transform: translateX(0);
}

/* CONTENIDO DEL CUADRO */
.cuadro h3, .cuadro p, .cuadro a {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.cuadro.visible h3,
.cuadro.visible p,
.cuadro.visible a {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

.cuadro h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #2980b9;
}

.cuadro p {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: #333;
}

.cuadro a {
  color: #2980b9;
  text-decoration: none;
}

.cuadro a:hover {
  text-decoration: underline;
}

.mapa {
  margin-top: 20px;
  height: 250px;
  border-radius: 10px;
  overflow: hidden;
}

.mapa iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 10px;
}

/* Fondo degradado para toda la página */
body, html {
  height: 100%;
  margin: 0;
  background: linear-gradient(to right, #FFD700, #4da3dd); /* amarillo → azul */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #222;
}

section, .container, .cuadro, .horario-section, .como-llegar, .que-hacemos, .por-que-nos-eligen {
  position: relative;
  background-color: rgba(255, 255, 255, 0.9); /* semi-transparente */
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 20px;
  margin-bottom: 30px;
}

section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
  
    radial-gradient(circle 80px at 15% 20%, rgba(85, 150, 230, 0.6), transparent 70%),
    radial-gradient(circle 40px at 70% 15%, rgba(247, 220, 111, 0.6), transparent 70%),
    radial-gradient(circle 60px at 30% 80%, rgba(85, 150, 230, 0.5), transparent 70%),
    radial-gradient(circle 50px at 85% 60%, rgba(247, 220, 111, 0.6), transparent 70%),
    radial-gradient(circle 35px at 10% 90%, rgba(85, 150, 230, 0.6), transparent 70%),
    radial-gradient(circle 70px at 90% 85%, rgba(247, 220, 111, 0.5), transparent 70%);
 
}

.contacto-suscripcion {
  background-color: #fff; /* blanco sólido */
  padding: 60px 20px;
  opacity: 1;
}

.bloques-contacto {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 40px;
}

.bloque {
  background-color: #ffe5e5; /* color sólido */
  padding: 30px;
  border-radius: 12px;
  flex: 1 1 400px;
  max-width: 500px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  opacity: 1;
}

/* Estilos para enlaces dentro de .bloque */

.bloque {
  background-color: rgb(250, 248, 238);
  padding: 30px;
  border-radius: 12px;
  flex: 1 1 400px;
  max-width: 500px;
  box-shadow: 0 4px 10px rgba(214, 229, 247, 0.1);
  text-align: center;
  opacity: 1;
}
.bloque h3 {
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.form-contacto input,
.form-contacto textarea,
.form-suscripcion input {
  width: 100%;
  margin: 10px 0;
  padding: 10px;
  border-radius: 6px;
  border: 2px solid #e0e8fd;
  font-size: 1rem;
}

.form-contacto button,
.form-suscripcion button {
  background-color: #509afa;
  color: white;
  padding: 10px 20px;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.form-contacto button:hover,
.form-suscripcion button:hover {
  background-color: #7aabeb;
}

.iconos-redes {
  font-size: 1.5rem;
  margin: 10px 0 20px;
}

.iconos-redes i {
  margin: 0 10px;
  color: #000;
  cursor: pointer;
}

/* Ajustes específicos para los bloques dentro de contacto-suscripcion */

.contacto-suscripcion .bloque {
  background-color: rgb(250, 248, 238);
  padding: 30px;
  border-radius: 12px;
  flex: 1 1 400px;
  max-width: 500px;
  box-shadow: 0 4px 10px rgba(214, 229, 247, 0.1);
  text-align: center;
  opacity: 1;
}

.contacto-suscripcion .bloque h3 {
  margin-bottom: 20px;
  font-size: 1.5rem;
  color: #2980b9;
}

/* Estilos solo para el formulario dentro del primer bloque */
.contacto-suscripcion .bloque:first-child .form-contacto {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 100%;
  margin: 0 auto;
  text-align: left;
}

.contacto-suscripcion .bloque:first-child .form-contacto input,
.contacto-suscripcion .bloque:first-child .form-contacto textarea {
  padding: 12px;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  resize: vertical;
}

.contacto-suscripcion .bloque:first-child .form-contacto button {
  background-color: #509afa;
  color: white;
  padding: 12px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contacto-suscripcion .bloque:first-child .form-contacto button:hover {
  background-color: #397bd7;
}

/* Estilo para el segundo bloque (datos de contacto) */
.contacto-suscripcion .bloque:last-child p {
  font-size: 1.3rem;       /* un poco más grande */
  color: #000000;
  margin-bottom: 15px;
  line-height: 1.6;
  text-align: center;      /* centrado */
  font-weight: 500;        /* un toque más de peso para mejor lectura */
}

.contacto-suscripcion .bloque:last-child h3 {
  text-align: center;
}

@keyframes slideFromLeft {
  0% {
    opacity: 0;
    transform: translateX(-60px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideFromRight {
  0% {
    opacity: 0;
    transform: translateX(60px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.bloque {
  background-color: rgb(250, 248, 238);
  padding: 30px;
  border-radius: 12px;
  flex: 1 1 400px;
  max-width: 500px;
  box-shadow: 0 4px 10px rgba(214, 229, 247, 0.1);
  text-align: center;
  opacity: 0;
}

/* Activan la animación cuando aparecen */
.bloque.visible.desde-izquierda {
  animation: slideFromLeft 0.8s ease-out forwards;
}

.bloque.visible.desde-derecha {
  animation: slideFromRight 0.8s ease-out forwards;
}

/*Quitar eñ subrayado del htmp en los enlaces cliclabes al los otros htmls*/
.servicio-enlace {
  text-decoration: none;
  color: inherit;
  display: block;
}








