body {
  background-color: #f8f9fa;
}

.btn-group-center {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.compact-banner {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: visible;
}

.titulo-banner {
  font-family: "TommySoftBold", Arial, sans-serif;

  font-size: clamp(1rem, 1.3vw, 1.5rem);
}

.banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.banner-content {
  position: absolute;
  z-index: 2;
  height: 100%;
  display: flex;
  margin-top: 40px;
  color: white;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.floating-box {
  position: absolute;
  bottom: -330px;
  left: 0;
  background-color: white;
  padding: 1.5rem 2rem;
  box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 3;
  width: auto;
  max-width: 400px;
  text-align: center;
}

.textoletra {
  font-family: "TommySoftBold", Arial, sans-serif;
  font-size: 7rem;
  margin: -35px;
}

.textoletrar {
  font-family: "TommySoftBold", Arial, sans-serif;
  font-size: 1rem;
  margin-top: -28px;
}

.floating-box-container {
  position: relative;
  width: 100%;
  height: 0;
}

.red-line {
  height: 2px;
  background-color: #495057;
  margin: 10px 0 0 0;
}

.svg-responsive {
  margin-left: auto;
  display: block;
}

.contenedorall {
  position: relative;
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  background-color: #f8f9fa;
}

.imagen-container {
  width: 72%;
  max-width: 1200px;
}

.svgfuente {
  width: 100%;
  height: auto;
}

.info-container {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 100%;
  padding: 20px 0;
  z-index: 1;
}

.info-container .container {
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

.contenidomexico {
  width: 50%;
  text-align: center;
}

.timeline-container {
  position: relative;
  max-width: 1000px;
  margin: 40px auto;
  overflow: hidden;
}

.timeline-wrapper {
  position: relative;
  height: 500px;
}

.timeline-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #dee2e6db;
  z-index: 1;
}

.timeline-carousel {
  display: flex;
  transition: transform 0.5s ease;
  height: 100%;
  position: relative;
  z-index: 2;
  align-items: center;
}

.timeline-item {
  min-width: 195px;
  padding: 0 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: center;
}

.year-circle {
  width: 70px;
  height: 70px;
  background-color: #4d4d4d;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  position: relative;
  z-index: 3;
  border: 4px dotted #4d4d4d;
  outline: 2px dotted #4d4d4d;
  outline-offset: 5px;
  border-radius: 50%;
}

.connector-line {
  width: 2px;
  background-color: #4d4d4d;
  position: absolute;
  z-index: 2;
  left: 50%;
  transform: translateX(-50%);
}

.connector-line::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: #4d4d4d;
  border-radius: 50%;
  left: 50%;
  transform: translateX(-50%);
}

.connector-line.down::after {
  bottom: -5px;
}

.connector-line.up::after {
  top: -5px;
}

.content-box {
  width: 250px;
  padding: 10px;
  position: absolute;
  font-size: 0.8rem;
  margin-left: 65px;
}

.content-box.top {
  bottom: calc(58% + 40px);
}

.ldown {
  height: 80px;
  top: 50%;
}

.lup {
  height: 80px;
  top: calc(50% - 80px);
}

.content-box.bottom {
  top: calc(58% + 40px);
}

.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #dee2e6db;
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 4;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
}

.nav-button.prev {
  left: 10px;
}

.nav-button.next {
  right: 10px;
}

.nav-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.bold-text {
  font-weight: bold;
}

.titulo-linea {
  color: var(--color-naranja-claro);
}
/*linea del tiempo*/

/*Simulador*/

iframe {
  width: 100%;
  height: 1500px;
  border: none;
}

.py-2rem {
  padding-top: 2rem;
  padding-bottom: 3rem;
}
/*Simulador*/

/*ancla linea del tiempo*/
.anchor-point {
  position: relative;
  top: -100px;
  visibility: hidden;
}
/*ancla linea del tiempo*/

/*Empquetado */
.card-custom {
  background-color: #f1f2f4;
  border-radius: 12px;
  border: 1px solid #dee2e6;
  padding: 30px;
  height: 100%;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card-custom:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.tituloe {
  margin-top: 80px;
  text-align: center;
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.objetivo-tpackss {
  background-color: var(--color-fondo-claro);
  padding: 18px;
}
/*Empquetado */

/*cajas advertencias*/
.contenedor-cajas {
  margin-top: 20px;
}

.caja-nota {
  padding: 0.25rem;
  margin-bottom: 0.25rem;
  color: var(--color-blanco);
  background-color: var(--color-morado);
  border-left: 0.5rem solid var(--color-morado-obscuro);
  height: 100%;
  border-radius: 5px;
  transition: transform 0.3s ease;
}

.caja-nota-amarilla {
  padding: 0.25rem;
  margin-bottom: 0.25rem;
  color: var(--color-gris-medio);
  background-color: var(--color-amarillo);
  border-left: 0.5rem solid var(--color-amarillo-obscuro);
  height: 100%;
  border-radius: 5px;
  transition: transform 0.3s ease;
}

.caja-nota:hover,
.caja-nota-amarilla:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.imagen-flotante {
  position: relative;
  min-height: 120px;
}

.imagen-flotante img {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.lista-viñetas {
  list-style: none;
  text-align: left;
}

.lista-viñetas li {
  flex-basis: calc(33.333% - 1rem);
}

.icono-lista {
  margin-right: 0.3rem;
}

/*Campañas W2*/

.media-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.video-player {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.audio-player {
  width: 100%;
  margin-bottom: 1rem;
  border-radius: 4px;
}

.audio-label {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #333;
}

.titulo-contenido {
  font-family: "TommySoftBold", Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
}

@media (max-width: 576px) {
  .media-container {
    margin: 1rem;
    padding: 0.5rem;
  }

  .video-player {
    height: auto;
  }
}

/*campañas w2*/

@media (max-width: 768px) {
  .contenedor-principal {
    padding: 20px;
  }

  .floating-box {
    max-width: 80%;
    padding: 1rem;
    margin-left: 10px;
  }

  .contenedorall {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .imagen-container {
    width: 100%;
    max-width: none;
    order: 1;
  }

  .info-container {
    position: static;
    transform: none;
    order: 2;
    width: 100%;
    padding: 20px;
  }

  .contenidomexico {
    width: 100%;
    text-align: left;
  }

  .timeline-item {
    min-width: 160px;
  }

  .content-box {
    width: 140px;
    padding: 10px;
    font-size: 14px;
  }

  .referencias .col-md-6 {
    margin-bottom: 120px;
  }

  .imagen-flotante {
    min-height: auto;
    padding-top: 0;
  }

  .imagen-flotante img {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    display: block;
    margin: 0 auto 20px auto;
    width: 200px;
    height: 200px;
  }
}
