/* --- CORRECCIÓN GLOBAL DE DESBORDAMIENTO --- */

/* 1. Esto evita que el padding aumente el tamaño de las cajas */
* {
  box-sizing: border-box;
}

/* 2. Esto corta cualquier cosa que se salga del ancho de la pantalla */
body, html {
  overflow-x: hidden; 
  width: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
  background-color: #fff;
}

@keyframes bikeEntrance {
  0% {
    transform: translateX(-100vw) rotate(-10deg);
    opacity: 0;
  }
  60% {
    transform: translateX(30px) rotate(5deg);
    opacity: 1;
  }
  80% {
    transform: translateX(-10px) rotate(-3deg);
  }
  100% {
    transform: translateX(0) rotate(0deg);
  }
}

.titulo {
  text-align: center;
  color: #002f6c;
  font-size: 2.5em;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: bikeEntrance 1.8s ease-out forwards;
  position: relative;
  margin-bottom: 40px;
}

/*línea decorativa debajo del título */
.titulo::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: #007bff;
  margin: 15px auto 0;
  border-radius: 2px;
}


.Informacion{
  /* Nuevo degradado más complejo y suave */
  width: 100%;
  background: rgb(100,181,246);
  background: linear-gradient(145deg, rgba(100,181,246,1) 0%, rgba(167,255,235,1) 100%);
  /* Altura mínima en lugar de fija, para evitar cortes */
  min-height: 600px; 
  height: auto;
  padding: 40px 0; /* Un poco más de espacio vertical */
  /* Un patrón sutil de fondo opcional para darle textura (si te gusta) */
  background-image: 
    linear-gradient(145deg, rgba(100,181,246,0.8) 0%, rgba(167,255,235,0.8) 100%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  
}
.img-info{
  display: flex;
  justify-content: center;
}
/* Seccion de inicio 3 imgs equipo */
.whatisBicitec {
text-align: center;
  color: #001a4d; /* Un azul más profundo */
  font-size: 3em; /* Un poco más grande */
  font-weight: 800; /* Más grueso */
  letter-spacing: -1px; /* Letras un poco más juntas */
  margin-top: 40px;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(100, 181, 246, 0.3); /* Sombra sutil al texto */
  transition: color 0.3s ease;
  
}

.whatisBicitec:hover {
  color: #0051a8;
}

.informacionBicitec {
text-align: left;
  color: #002f6c;
  font-size: 1.35rem; 
  font-weight: 400;
  line-height: 1.8; 
  max-width: 550px;
  /* max-height: 350px;  <-- ELIMINAR ESTO */
  margin: 30px 20px;    
  padding: 40px; /* Más espacio interno */
  
  /* --- EFECTO VIDRIO (GLASSMORPHISM) --- */
  background: rgba(255, 255, 255, 0.65); /* Blanco semi-transparente */
  backdrop-filter: blur(12px); /* Desenfoca lo que hay detrás */
  -webkit-backdrop-filter: blur(12px); /* Para soporte en Safari */
  border: 1px solid rgba(255, 255, 255, 0.4); /* Borde blanco sutil */
  /* ------------------------------------ */

  border-radius: 24px; /* Bordes más redondeados */
  /* Sombra más suave y difusa */
  box-shadow: 0 8px 32px rgba(0, 47, 108, 0.15);
  
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  position: relative;
  transition: all 0.3s ease;
}
/* Resaltar las negritas si agregaste las etiquetas <strong> */
.informacionBicitec strong {
    color: #0056b3; /* Un azul un poco más brillante para destacar */
    font-weight: 700;
}

.informacionBicitec:hover {
  /* Al pasar el mouse, se vuelve un poco más nítido */
  box-shadow: 0 12px 40px rgba(0, 47, 108, 0.2);
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.75);
}

.imagen-bici-lateral {
  width: 650px;
  
  height: auto;
  /* Sombra inicial suave */
  filter: drop-shadow(0 20px 30px rgba(0, 47, 108, 0.25));
  
  /* Aplicamos dos animaciones: 
     1. 'aparecerBici' (1.2 segundos, una vez)
     2. 'flotarBici' (3 segundos, para siempre) */
  animation: aparecerBici 1.2s ease-out forwards, 
             flotarBici 3s ease-in-out infinite alternate;
  
  /* Retraso para que el texto se vea primero (opcional) */
  animation-delay: 0.2s, 1.4s; 
}

/* --- Animación 1: Entrada Triunfal --- */
@keyframes aparecerBici {
  0% {
    opacity: 0;
    transform: translateX(100px) scale(0.8) rotate(5deg);
    filter: blur(10px) drop-shadow(0 0 0px rgba(0, 255, 127, 0));
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1) rotate(0deg);
    /* El resplandor verde/azul que pediste */
    filter: blur(0) drop-shadow(0 0 30px rgba(126, 182, 226, 0.6)); 
  }
}

/* --- Animación 2: Movimiento Suave (Flotar) --- */
@keyframes flotarBici {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-15px);
  }
}

/* --- Efecto Extra: Brillo al pasar el mouse --- */
.imagen-bici-lateral:hover {
  filter: drop-shadow(0 0 45px rgba(183, 216, 125, 0.8));
  cursor: pointer;
  transition: filter 0.4s ease;
}


/* Responsive para pantallas pequeñas */
@media (max-width: 600px) {
  .whatisBicitec {
    font-size: 2em;
  }

  .informacionBicitec {
    font-size: 1.2rem;
    padding: 15px 18px;
  }
}

.seccion {
  display: flex;
  justify-content: center;
  align-items: flex-start; /* Centrado vertical */
  padding: 80px 30px;
  gap: 40px;
  flex-wrap: wrap;
  
  /* Configuración del Fondo (Se mantiene tu imagen) */
  background: url('../../images/postal.jpg');
  background-size: 100% 100%;
  background-position: center center;
  background-attachment: fixed; /* Efecto Parallax */
  background-repeat: no-repeat;
  
 
}


.card {
  flex: 1 1 300px; /* Flexibilidad */
  max-width: 320px;
  
  /* --- ESTILO DE VIDRIO (GLASS) --- */
  background: rgba(255, 255, 255, 0.85); /* Blanco al 85% opacidad */
  backdrop-filter: blur(10px); /* Desenfoque del fondo */
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  /* ------------------------------- */

  border-radius: 24px;
  padding: 30px 25px;
  text-align: center;
  color: #002f6c;
  
  /* Sombra suave y profunda */
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
  position: relative;
  z-index: 1;
}

.card:hover {
  transform: translateY(-15px); /* Sube al pasar el mouse */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.95); /* Se vuelve más sólido */
  z-index: 10;
}

.card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(232, 234, 231, 0.093), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.card:hover::before {
  opacity: 1;
}

.card img {
  width: 100%;
  height: 220px; /* Altura fija para uniformidad */
  object-fit: cover; /* Recorta la imagen sin deformarla */
  border-radius: 16px;
  margin: 15px 0;
  box-shadow: 0 8px 20px rgba(0, 47, 108, 0.15); /* Sombra a la foto */
  transition: transform 0.4s ease;
}

.card img:hover {
  transform: scale(1.03);
}

.card h2 {
  font-size: 1.6em;
  font-weight: 800;
  margin-bottom: 15px;
  color: #002b5c;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.2;
}

.card p {
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
  font-weight: 500;
}

.central {
  transform: scale(1.1); /* Hacemos que sea un 10% más grande por defecto */
  z-index: 5;
  border: 2px solid rgba(255, 255, 255, 0.8); /* Borde un poco más notable */
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3); /* Sombra más fuerte */
}

.central:hover {
  transform: scale(1.15) translateY(-10px);
}

/* Responsivo */
@media (max-width: 900px) {
  .seccion {
    padding: 60px 20px;
    gap: 30px;
  }

  /* En móvil, quitamos el efecto de "Gigante" de la central para que todas se vean igual */
  .central {
    transform: none; 
    margin-top: 0;
  }
  
  .central:hover {
    transform: translateY(-10px);
  }

  .card {
    max-width: 100%; /* Ocupan todo el ancho */
    flex: 1 1 100%;
  }
}


/* Seccion de video */
.seccion-video {
  background-color: #f4f9ff;
  /* fondo suave, celeste claro */
  border-top: 2px solid black;
  border-bottom: 2px solid black;
}

.seccion-video h2 {
  text-align: center;
}

.video-wrapper {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.video-wrapper iframe,
.video-wrapper video {
  width: 100%;
  max-width: 720px;
  height: 405px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}


/* Renta una bici */
.renta-bici {
  display: flex;
  width: 100%;
  background-color: #f0f2f5;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.renta-bici__imagen {
  background-color: #002b5c;
  /* Azul oscuro */
  padding: 20px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.renta-bici__imagen img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.renta-bici__contenido {
  flex: 2;
  padding: 40px 30px;
  background-color: #e7e9eb;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.renta-bici__contenido h2 {
  color: #002b5c;
  margin: 0 0 16px;
  font-size: 24px;
}

.renta-bici__contenido p {
  color: #333;
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 24px;
}

.renta-bici__boton {
  display: inline-block;
  background-color: #f9c400;
  color: #fff;
  font-weight: bold;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  width: fit-content;
  transition: background-color 0.3s ease;
}

.renta-bici__boton:hover {
  background-color: #e0a800;
}

@media (max-width: 768px) {
  .renta-bici {
    flex-direction: column; /* AQUÍ se ponen uno abajo del otro */
  }

  .renta-bici__imagen {
    padding: 40px 20px; /* Ajuste de espacio para la imagen arriba */
  }

  .renta-bici__contenido {
    padding: 30px 20px;
    text-align: center; /* Opcional: centra el texto en móvil para que luzca mejor */
  }

  .renta-bici__boton {
    margin: 0 auto; /* Centra el botón si el texto está centrado */
  }
}

/* SECCIÓN BENEFICIOS*/

.beneficios {
  width: 100%;
  max-width: 100%;
  padding: 40px 20px;
  background: linear-gradient(135deg, #e0f7fa, #f0fff4);
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 0;
}

/* Fondo animado sutil */
.beneficios::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(11, 142, 59, 0.08) 0%, transparent 70%),
              radial-gradient(circle at bottom left, rgba(0, 43, 92, 0.07) 0%, transparent 70%);
  animation: fondoMovimiento 10s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes fondoMovimiento {
  from { transform: translate(0, 0); }
  to { transform: translate(3%, 3%); }
}

/* Título principal */
.beneficios h2 {
  font-size: 3rem;
  color: #002b5c;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 800;
  background: linear-gradient(90deg, #0b8e3b, #002b5c);
  background-clip: text;             
  -webkit-background-clip: text;      
  color: transparent;
  -webkit-text-fill-color: transparent; 
  display: inline-block;
  animation: fadeDown 1.2s ease forwards;
}

.beneficios h2::after {
  content: "";
  display: block;
  width: 0;
  height: 4px;
  margin: 12px auto 0;
  background: linear-gradient(90deg, #0b8e3b, #002b5c);
  border-radius: 3px;
  animation: lineaCrecimiento 1s ease forwards 0.5s;
}

/* Contenedor flexible */
.beneficios__contenedor {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  position: relative;
  z-index: 1;
}

/* Tarjetas */
.beneficio {
  flex: 1 1 250px;
  max-width: 260px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  padding: 35px 25px;
  box-shadow: 0 10px 25px rgba(0, 43, 92, 0.1);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  cursor: default;
}

/* Efecto hover con “brillo” */
.beneficio::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  transition: left 0.7s ease;
}

.beneficio:hover::after {
  left: 125%;
}

.beneficio:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 15px 35px rgba(11, 142, 59, 0.2);
}

/* Íconos SVG */
.beneficio svg {
  width: 70px;
  height: 70px;
  margin-bottom: 20px;
  transition: transform 0.4s ease, stroke 0.4s ease;
}

.beneficio:hover svg {
  transform: scale(1.15) rotate(5deg);
  stroke: #099944;
}

/* Título */
.beneficio h3 {
  font-size: 1.3rem;
  color: #0b8e3b;
  margin-bottom: 10px;
  font-weight: 600;
}

/* Texto */
.beneficio p {
  color: #333;
  font-size: 1rem;
  line-height: 1.6;
}

.beneficio {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards;
}

.beneficio:nth-child(1) { animation-delay: 0.1s; }
.beneficio:nth-child(2) { animation-delay: 0.3s; }
.beneficio:nth-child(3) { animation-delay: 0.5s; }
.beneficio:nth-child(4) { animation-delay: 0.7s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===============================
   RESPONSIVIDAD
   =============================== */

@media (max-width: 900px) {
  .beneficios__contenedor {
    gap: 30px;
  
  }

  .beneficio {
    max-width: 35%;
    
  }
}

@media (max-width: 600px) {
  .beneficios {
    width: 100% !important;      /* Ocupar todo el ancho */
    max-width: 100% !important;  /* Eliminar la restricción del 91% */
    padding: 60px 15px;          /* Mantener el padding interno */
    margin: 0;                   /* Asegurar que no haya márgenes externos */
    box-sizing: border-box;
  }

  .beneficios h2 {
    font-size: 1.8rem;
    margin-bottom: 40px;
  }

  .beneficio {
    max-width: 100%;
    padding: 25px 20px;
  }

  .beneficio svg {
    width: 60px;
    height: 60px;
  }

  .beneficio h3 {
    font-size: 1.1rem;
  }

  .beneficio p {
    font-size: 0.9rem;
  }
}



/* Mapa section */

.ubicacion {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8f5e9, #e3f2fd);
  /* verde-azul claro */
  padding: 60px 20px;
  gap: 40px;
}

.ubicacion__imagen {
  flex: 1 1 400px;
  max-width: 500px;
  text-align: center;
}

.ubicacion__imagen img {
  width: 100%;
  max-width: 400px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ubicacion__mapa {
  flex: 1 1 400px;
  max-width: 600px;
}

.ubicacion__mapa h2 {
  color: #002b5c;
  font-size: 28px;
  margin-bottom: 10px;
}

.ubicacion__mapa p {
  color: #333;
  font-size: 15px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.mapa__contenedor iframe {
  width: 100%;
  height: 300px;
  border-radius: 8px;
  border: none;
}


/* Eventos y rifas */

.eventos {
  background: linear-gradient(135deg, #e8f0fe 0%, #ffffff 100%);
  border-top: 4px solid #1a73e8;
  border-bottom: 4px solid #1a73e8;
  padding: 60px 40px;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  
}

.eventos h2 {
  color: #1a237e;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 50px;
  text-transform: uppercase;
  text-shadow: 1px 1px 4px rgba(26, 35, 126, 0.25);
}

.eventos__lista {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto 40px;
  justify-items: center;
}
.eventos__lista:has(.evento:only-child) {
  grid-template-columns: 1fr;  /* Si solo hay un evento, usa una sola columna */
}
.evento {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 12px 24px rgba(26, 35, 126, 0.12);
  display: flex;
  flex-direction: row;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.evento:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(26, 35, 126, 0.25);
  border-color: #1a73e8;
}

.evento__img {
  flex-shrink: 0;
  width: 350px;
  height: 450px;
  /* Igualar ancho y alto para evitar deformaciones */
  object-fit: cover;
  /* Corta la imagen para llenar sin estirarse */
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  transition: transform 0.35s ease;
}


.evento:hover .evento__img {
  transform: scale(1.1);
}

.evento__info {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  text-align: left;
}

.evento__info h3 {
  color: #0b6dff;
  /* azul vibrante */
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.evento__info p {
  color: #444444;
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 16px;
  font-weight: 400;
}

.evento__contador {
  align-self: flex-start;
  background-color: #e3f2fd;
  color: #1565c0;
  font-weight: 700;
  padding: 8px 14px;
  font-size: 15px;
  border-radius: 30px;
  box-shadow: 0 2px 6px rgba(21, 101, 192, 0.3);
  letter-spacing: 0.03em;
}



@media (max-width: 700px) {
  .eventos__lista {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  .evento {
    flex-direction: column;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 0; /* ya con gap entre elementos */
  }

  .evento__img {
    width: 100%;
    height: 400px;
    border-radius: 16px 16px 0 0;
    object-fit: cover;
    display: block;
    transition: none;
  }

  .evento__info {
    padding: 24px 20px;
    text-align: center;
    background: white;
  }

  .evento__info h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: #0b6dff;
  }

  .evento__info p {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 16px;
  }

  .evento__contador {
    align-self: center;
    margin: 0 auto 10px;
    font-size: 16px;
    background-color: #e3f2fd;
    padding: 8px 16px;
    border-radius: 30px;
    color: #1565c0;
    font-weight: 700;
    display: inline-block;
    box-shadow: 0 2px 6px rgba(21, 101, 192, 0.3);
  }
}


/* Sección Flyers */
.flyers {
  padding: 5px 20px;
  background: linear-gradient(135deg, #f0fbff 0%, #ffffff 100%);
  max-width: 1200px;
  margin: 0 auto;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-align: center;
}

.flyers h2 {
  font-size: 36px;
  color: #0b6dff;
  margin-bottom: 50px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-shadow: 1px 1px 3px rgba(11, 109, 255, 0.3);
}

/* Grid de flyers */
.flyers__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* Cada flyer individual */
.flyer {
  background: white;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(11, 109, 255, 0.15);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.flyer:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(11, 109, 255, 0.3);
}

.flyer__img {
  width: 500px;
  height: 90%;
  object-fit: cover;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  user-select: none;
}

.flyer__content {
  padding: 20px 25px 30px;
}

.flyer__title {
  font-size: 22px;
  color: #0b6dff;
  margin-bottom: 12px;
  font-weight: 700;
}

.flyer__desc {
  font-size: 15px;
  color: #444444;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 600px) {
  .flyers h2 {
    font-size: 28px;
    margin-bottom: 35px;
  }
  

.flyer__img {
    width: 100%;
    height: 500px;
  }
  
  .flyer__title {
    font-size: 20px;
  }

  .flyer__desc {
    font-size: 14px;
  }
}


/* Contenedor principal */
.horario {
  background: linear-gradient(135deg, #0a2239, #0f3c6e);
  border-radius: 15px;
  width: 95%;
  max-width: 1300px;
  margin: 40px auto;
  padding: 30px 40px;
  color: #dce6f0;
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box;
}

/* Tabla general */
.tabla {
  display: table;
  width: 100%;
  border-collapse: collapse;
}

/* Filas */
.fila {
  display: table-row;
  transition: background 0.3s ease;
}

.fila:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Encabezado */
.encabezado {
  font-weight: 700;
  color: #5ce1e6;
  background: rgba(92, 225, 230, 0.1);
}

.encabezado .celda {
  font-size: 18px;
  padding: 14px 10px;
  text-transform: uppercase;
  border-bottom: 2px solid #5ce1e6;
}

/* Celdas */
.celda {
  display: table-cell;
  padding: 16px 18px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  vertical-align: middle;
}

.celda p {
  margin: 6px 0; 
}

.celda p:not(:last-child) {
  margin-bottom: 10px; 
}

/* Iconos */
.icono-reloj {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.reloj {
  width: 55px;
  height: 55px;
  stroke: #5ce1e6;
  transition: stroke 0.3s ease;
}

.fila:hover .reloj {
  stroke: #00ffe5;
}

/* Texto */

/* Estado */
.estado {
  font-size: 18px;
  font-weight: 800;
  color: #00e6a8;
  background: #003f32;
  border-radius: 30px;
  padding: 8px 25px;
  display: inline-block;
}

.estado.inactivo {
  background: #5a1c1c;
  color: #ff6e6e;
}

/* Contador */
.contador {
  font-size: 16px;
  color: #76c7e0;
}

/* Título animado */
.consulta {
  font-family: 'Courier New', Courier, monospace;
  font-size: 48px;
  color: #0a2239;
  text-align: center;
  margin: 20px auto 10px;
  white-space: nowrap;
  overflow: hidden;
  border-right: 4px solid #0a2239;
  width: 0;
  box-sizing: border-box;
}

/* Animación de escritura */
@keyframes escribir {
  from { width: 0; }
  to { width: 100%; }
}

/* Detener el cursor después de escribir */
@keyframes detenerCursor {
  0%, 99.9% { border-right-color: #0a2239; }
  100% { border-right-color: transparent; }
}

/* Responsive */
@media (max-width: 1200px) {
  .horario {
    padding: 25px 30px;
  }

  .celda {
    padding: 14px 12px;
  }

  .encabezado .celda {
    font-size: 16px;
  }
}

@media (max-width: 800px) {
  .celda {
    display: block;
    text-align: center;
    border-bottom: none;
    padding: 10px 5px;
  }

  .fila {
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    border-radius: 10px;
    padding: 15px 0;
  }

  .encabezado {
    display: none;
  }

  .reloj {
    width: 45px;
    height: 45px;
  }

  .estado {
    font-size: 16px;
    padding: 6px 20px;
  }

  .contador {
    font-size: 14px;
  }

  .consulta {
    font-size: 36px;
  }
}

@media (max-width: 500px) {
  .consulta {
    font-size: 28px;
  }

  .horario {
    padding: 20px 15px;
  }

  .reloj {
    width: 35px;
    height: 35px;
  }

  .estado {
    font-size: 14px;
    padding: 5px 15px;
  }

  .contador {
    font-size: 12px;
  }
}

/* =========================================
   CORRECCIÓN RESPONSIVA FINAL
   ========================================= */

/* 1. Hacemos que la imagen sea fluida siempre (Regla General) */
.imagen-bici-lateral {
    max-width: 100%; /* Nunca será más ancha que su contenedor */
    height: auto;    /* Mantiene la proporción */
}

/* 2. Ajustes para Tablets y Celulares (Pantallas menores a 900px) */
@media (max-width: 900px) {
  
  /* Quitamos la altura fija para que el fondo crezca según el contenido */
  .Informacion {
    height: auto !important; 
    padding-bottom: 60px; /* Un poco de espacio al final */
  }

  /* Cambiamos la dirección: Texto arriba, imagen abajo */
  .img-info {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  /* Ajustamos el texto para que no quede pegado a los bordes */
  .informacionBicitec {
    max-width: 90%;
    margin: 20px auto; /* Centrado */
    text-align: center; /* Opcional: centra el texto */
  }

  /* Ajustamos el tamaño de la bici en móvil */
  .imagen-bici-lateral {
    width: 80% !important; /* Ocupa el 80% de la pantalla */
    max-width: 400px;      /* Pero no más de 400px */
    margin-top: 30px;      /* Separación del texto */
    
    /* Reducimos el movimiento de la animación en móvil para que no maree */
    animation: flotarBici 3s ease-in-out infinite alternate !important; 
  }
}



.floating-heart {
    position: fixed;
    bottom: -10%;
    z-index: 9999;
    pointer-events: none; /* Para que no estorben al hacer clic */
    animation: floatUp linear forwards;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-110vh) rotate(360deg);
        opacity: 0;
    }
}


