@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap");

/* =========================
   RESET
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================
   VARIABLES
========================= */

:root {
  --white: #ffffff;

  --naranja-principal: #ff9723;
  --azul-principal: #0a4c8f;

  --naranja-card: #fca83c;
  --azul-card: #307ac5;
  --gris-card: #dfe5ec;

  --gris: #eef1f4;

  --texto: #1f2937;
  --texto-suave: #6b7280;

  --sombra:
    0 10px 35px rgba(15, 23, 42, 0.08);

  --radio: 30px;
}

/* =========================
   BASE
========================= */

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "Poppins", sans-serif !important;

  background: var(--gris);

  color: var(--texto);

  overflow-x: hidden;
  line-height: 1.6;
}



/* =========================
   HEADER
========================= */

.barra-superior {
  position: sticky;

  z-index: 100;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 8px 22px;

  background: var(--naranja-principal);

  border-radius: 0 0 35px 35px;

  box-shadow:
    0 6px 25px rgba(0, 0, 0, 0.08);
}

.emblema-insal,
.emblema-mined {
  height: 75px;
  margin-left: 15px;

}

/* =========================
   HERO
========================= */

.encabezado-pagina {
  text-align: center;

  padding: 70px 20px 50px;
}

.encabezado-pagina h2 {
  font-size: 58px;
  font-weight: 900;
  margin-top: -20px;
  color: var(--texto);  
  margin-bottom: 10px;
}

.encabezado-pagina p {
  font-size: 18px;
  color: var(--texto-suave);  
  max-width: 700px;
  margin: auto;
}

/* =========================
   GRID
========================= */

.rejilla-principal {
  width: min(1400px, calc(100% - 40px));

  margin: 0 auto 60px;

  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 22px;
}

/* =========================
   CARDS
========================= */

.modulo-info {
  position: relative;

  width: 100%;

  border-radius: var(--radio);

  padding: 30px;

  overflow: hidden;

  box-shadow: var(--sombra);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;

  border:
    1px solid rgba(255, 255, 255, 0.25);
}

/* EFECTO HOVER */

.modulo-info:hover {
  transform: translateY(-5px);

  box-shadow:
    0 18px 45px rgba(15, 23, 42, 0.1);
}

.modulo-info::before {
  content: "";

  position: absolute;
  inset: 0;

  border-radius: inherit;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.20),
      rgba(255,255,255,.02)
    );

  pointer-events: none;
}

/* =========================
   COLORES DIFERENTES
========================= */

/* PRIMERAS DOS */
.modulo-info:nth-child(1),
.modulo-info:nth-child(2) {
  background: var(--naranja-card);
}

/* MAPA */
.modulo-info:nth-child(3) {
  background: var(--azul-card);
}

/* TRANSPORTE */
.modulo-info:nth-child(4) {
  background: #8db7df;
}

/* HORARIOS */
.modulo-info:nth-child(5) {
  background: #d8dee6;
}

/* =========================
   SECCIONES GRANDES
========================= */

.ocupar-todo {
  grid-column: 1 / -1;
}

/* =========================
   TITULOS
========================= */

.encabezado-modulo {
  font-size: 24px;
  font-weight: 800;

  color: var(--azul-principal);

  margin-bottom: 24px;

  padding-bottom: 14px;

  border-bottom:
    2px solid rgba(255,255,255,.25);
}

/* TITULOS EN CARDS AZULES */

.modulo-info:nth-child(3) .encabezado-modulo,
.modulo-info:nth-child(4) .encabezado-modulo {
  color: white;
}

/* =========================
   DIRECCION
========================= */

.linea-detalle {
  padding: 18px;

  border-radius: 22px;

  background:
    rgba(255,255,255,.55);

  border:
    1px solid rgba(255,255,255,.25);

  margin-bottom: 14px;

  color: var(--texto-suave);

  transition: all 0.3s ease;
}

.linea-detalle:hover {
  transform: translateY(-2px);

  background:
    rgba(255,255,255,.82);
}

.linea-detalle strong {
  color: var(--texto);
}

/* =========================
   NOTAS
========================= */

.nota-informativa {
  margin-top: 22px;

  padding: 18px 20px;

  border-radius: 22px;

  background:
    rgba(255,255,255,.18);

  border:
    1px solid rgba(255,255,255,.15);

  color: var(--texto);

  font-size: 15px;
}

/* =========================
   CONTACTO
========================= */

.item-contacto {
  padding: 18px 20px;

  border-radius: 22px;

  background:
    rgba(255,255,255,.55);

  border:
    1px solid rgba(255,255,255,.2);

  margin-bottom: 16px;

  transition: all 0.3s ease;
}

.item-contacto:hover {
  transform: translateY(-3px);

  background:
    rgba(255,255,255,.82);
}

.subtitulo-item {
  display: block;

  font-size: 13px;

  color: var(--texto-suave);

  margin-bottom: 4px;
}

.enlace-contacto {
  text-decoration: none;

  color: var(--texto);

  font-size: 17px;
  font-weight: 700;

  transition: color 0.3s ease;
}

.enlace-contacto:hover {
  color: var(--azul-principal);
}

/* =========================
   REDES
========================= */

.botones-sociales {
  display: flex;
  flex-wrap: wrap;

  gap: 14px;

  margin-top: 20px;
}

.boton-red {
  padding: 14px 24px;

  border-radius: 18px;

  text-decoration: none;

  font-weight: 700;

  color: white;

  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.boton-red:hover {
  transform: translateY(-3px);

  opacity: .92;
}

.facebook-principal {
  background:
    linear-gradient(
      135deg,
      #1877f2,
      #2563eb
    );
}

¿


/* =========================
   MAPA
========================= */

.marco-mapa {
  overflow: hidden;

  border-radius: 28px;

  border:
    1px solid rgba(255,255,255,.2);

  box-shadow:
    0 10px 30px rgba(0,0,0,.08);
}

.marco-mapa iframe {
  width: 100%;
  height: 460px;

  border: 0;
}

.pie-mapa {
  margin-top: 18px;

  color: white;
}

.pie-mapa a {
  color: white;

  font-weight: 700;

  text-decoration: none;
}

/* =========================
   TRANSPORTE
========================= */

.listado-transporte {
  display: grid;
  gap: 10px;
}

.unidad-bus {
  display: flex;
  align-items: flex-start;

  gap: 18px;

  padding: 18px;

  border-radius: 24px;

  background:
    rgba(255,255,255,.58);

  border:
    1px solid rgba(255,255,255,.2);

  transition: all 0.3s ease;
}

.unidad-bus:hover {
  transform: translateY(-3px);

  background:
    rgba(255,255,255,.82);
}

.placa-ruta {
  min-width: 78px;
  height: 78px;

  border-radius: 24px;

  display: flex;
  align-items: center;
  justify-content: center;

  background-color: var(--naranja-principal);

  color: white;

  font-size: 22px;
  font-weight: 800;
}

.detalles-bus strong {
  display: block;

  margin-bottom: 4px;

  color: var(--texto);
}

.detalles-bus span {
  color: var(--texto-suave);
}

/* =========================
   TABLA
========================= */

.contenedor-tabla {
  overflow-x: auto;
}

.tabla-horarios {
  width: 100%;

  border-collapse: collapse;

  overflow: hidden;

  border-radius: 24px;
}

.tabla-horarios thead {
  background: var(--azul-card);

  color: white;
}

.tabla-horarios th,
.tabla-horarios td {
  padding: 18px;

  text-align: center;
}

.tabla-horarios tbody tr {
  background:
      rgba(255,255,255,.58);
  
  border-bottom:
    1px solid rgba(15,23,42,.05);

  transition: background 0.3s ease;
}

.tabla-horarios tbody tr:hover {
  background:
    rgba(255,255,255,.85);
}

.celda-vacia {
  color: var(--texto-suave);
}

.etiqueta-estado {
  padding: 8px 16px;

  border-radius: 999px;

  font-size: 14px;
  font-weight: 700;
}

.disponible {
  background:
    rgba(34,197,94,.14);

  color: #15803d;
}

.no-disponible {
  background:
    rgba(239,68,68,.12);

  color: #b91c1c;
}

  

/* =========================
   TABLET
========================= */

@media (max-width: 768px) {

  .barra-superior {
    padding: 14px 18px;

    border-radius: 0 0 28px 28px;
  }

  .emblema-insal,
  .emblema-mined {
    height: 56px;
  }

  .encabezado-pagina {
    padding: 60px 16px 40px;
  }

  .encabezado-pagina h2 {
    font-size: 38px;
  }

  .encabezado-pagina p {
    font-size: 15px;
  }

  .rejilla-principal {
    width: min(100% - 18px, 100%);

    grid-template-columns: 1fr;

    gap: 18px;
  }

  .modulo-info {
    padding: 22px;

    border-radius: 24px;
  }

  .encabezado-modulo {
    font-size: 20px;
  }

  .marco-mapa iframe {
    height: 320px;
  }

  .placa-ruta {
    min-width: 62px;
    height: 62px;

    font-size: 18px;
  }

  .tabla-horarios th,
  .tabla-horarios td {
    padding: 14px;

    font-size: 14px;
  }
}

/* =========================
   MOVIL
========================= */

@media (max-width: 480px) {

  .barra-superior {
    padding: 12px 15px;

    border-radius: 0 0 22px 22px;
  }

  .emblema-insal,
  .emblema-mined {
    height: 50px;
  }

  .encabezado-pagina h2 {
    font-size: 30px;
  }

  .encabezado-pagina p {
    font-size: 14px;
  }

  .modulo-info {
    padding: 18px;

    border-radius: 22px;
  }

  .encabezado-modulo {
    font-size: 18px;
  }

  .linea-detalle,
  .item-contacto {
    padding: 16px;
  }

  .boton-red {
    width: 100%;

    text-align: center;
  }

  .marco-mapa iframe {
    height: 260px;
  }

  .placa-ruta {
    min-width: 56px;
    height: 56px;

    border-radius: 18px;
  }

  .tabla-horarios {
    min-width: 700px;
  }
}