.tabs-container {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  padding: 2rem;
}

/* Columna izquierda: Selectores */
.tabs-left {
  flex: 0 0 20%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tabs-container p {
  width: 50vh;
}

/* Botones de pestañas */
.tab-button {
  padding: 1rem;
  font-size: 1rem;
  background-color: #eee;
  border: none;
  cursor: pointer;
  text-align: left;
}

.tab-button.active {
  border-right: 10px solid #03b5d2;
  color: white;
  background-color: #012E40;
}

/* Contenedor derecho: Texto + Imagen */
.tabs-right {
  flex: 1 1 80%;
  display: flex;
  gap: 1rem;
}

/* Texto */
.tabs-content {
  flex: 1 1 50%;
}

.tab-panel {
  display: none;
  text-align: justify;
}

.tab-panel.active {
  display: block;
}

/* Imagen */
.tabs-image {
  flex: 1 1 80%;
}

.tab-image {
  display: none;
  width: 100%;
}

.tab-image.active {
  display: block;
}

/* ----------- Responsive ----------- */
@media (max-width: 1100px) {
  .tabs-container {
    flex-direction: column;
  }

  .tabs-left {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }

  .tab-button {
    flex: 1 1 45%;
    text-align: center;
    font-size: 0.9rem;
    padding: 0.75rem;
  }

  .tab-button.active {
    border-right: none;
    border-bottom: 4px solid #03b5d2;
  }

  .tabs-right {
    flex-direction: column;
    gap: 1rem;
  }

  .tabs-content,
  .tabs-image {
    width: 100%;
  }
  .tabs-container p {
  width: fit-content;
  }
}
