/* oferta.css */

/* Contenedor general del main */
main {
  max-width: 900px;
  margin: 2rem auto 4rem;
  padding: 0 1rem;
  font-family: var(--fuente, 'Roboto', sans-serif);
  color: #222;
  line-height: 1.6;
}

/* Secciones con espacio entre ellas */
main section {
  margin-bottom: 2.5rem;
}

/* Títulos */
main h1, main h2 {
  color: #154C68; /* azul profesional */
  font-weight: 700;
  margin-bottom: 1rem;
  border-bottom: 3px solid #a10e23; /* carmesí */
  padding-bottom: 0.25rem;
}

/* Párrafos */
main p {
  font-size: 1rem;
  margin-bottom: 1rem;
  text-align: justify;
  hyphens: auto;
}

/* Tablas estilizadas más pequeñas y centradas */
main table {
  width: auto;              /* ancho automático según contenido */
  max-width: 600px;         /* máximo ancho para que no se estiren mucho */
  margin: 1rem auto 0 auto; /* margen arriba 1rem y centrado horizontal */
  border-collapse: collapse;
  box-shadow: 0 4px 8px rgba(21, 76, 104, 0.1);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

main table thead {
  background-color: #154C68;
  color: #fff;
}

main table th,
main table td {
  padding: 0.5rem 0.8rem;   /* un poco más compacto */
  border: 1px solid #ddd;
  text-align: left;
  font-size: 0.9rem;        /* texto un poco más pequeño */
}

main table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* Resaltar fila total */
main table tbody tr.total td {
  font-weight: 700;
  background-color: #a10e23;
  color: white;
  text-align: right;
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 600px) {
  main {
    padding: 0 1rem;
    margin: 1rem auto 3rem;
  }
  main table th,
  main table td {
    font-size: 0.85rem;
    padding: 0.5rem 0.7rem;
  }
}
main table {
  /* ... (lo que ya tienes) */
  margin: 2rem auto; /* antes: 1rem auto 0 auto */
}
main h2 {
  position: relative;
  text-align: center;
}
main h1 {
  position: relative;
  text-align: center;
}
main h2::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: #a10e23; /* carmesí */
}
.banda-infinita {
  width: 100%;
  height: 100px;
  background-color: var(--azul-profesional);
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-centro {
  position: relative;
  z-index: 2;
}

.logo-centro img {
  height: 80px;
  width: auto;
  filter: brightness(0) invert(1); /* Si tu logo es oscuro, lo hace blanco */
}

@keyframes flotarLogo {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}
.banda-infinita {
  width: 100%;
  background-color: var(--azul-profesional);
  display: flex;
  justify-content: center; /* centra el logo horizontalmente */
  align-items: center;
  padding: 1rem 0; /* espacio vertical arriba y abajo */
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  margin: 2rem 0; /* separa la banda del contenido de arriba y abajo */
}

.logo-centro img {
  height: 60px; /* tamaño del logo */
  width: auto;
  user-select: none;
  pointer-events: none;
}