#custom-tabs-block {
  width: 90%;
  justify-self: center;
  margin: 20px 0;
  text-align: center;
  /* Borde más visible y redondeado */
  border: 2px solid rgba(32,49,61,0.12); /* leve aumento de grosor y opacidad */
  border-radius: 14px;
  /* Dos sombras más marcadas: una difusa alrededor y otra direccional a derecha/abajo */
  box-shadow:
    0 0 28px rgba(32,49,61,0.12),   /* sombra difusa más visible */
    10px 12px 30px rgba(32,49,61,0.18); /* sombra direccional derecha/abajo más marcada */
  /* Para separar visualmente el contenido del borde */
  padding: 18px;
  background-color: #f6f8fc;
}

.tabs {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center; /* Asegura que estén centradas horizontalmente */
  flex-wrap: wrap; /* Permite que las pestañas se ajusten en dispositivos pequeños */
}

.tab {
  background: #5344ba;
  line-height: 1.1;
  font-weight: bolder;
  color: white;
  padding: 15px 20px;
  margin: 5px; /* Espaciado entre pestañas */
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  flex: 1 1 auto; /* Permite que las pestañas se redimensionen dinámicamente */
  max-width: 240px; /* Aumentado 20% (200px + 40px) para vista de escritorio */
  text-align: center;
  font-size: 20px;
  text-transform: uppercase; /* Convierte todo el texto a mayúsculas */
  transition: background 0.3s ease, color 0.3s ease;
}

.tab.active {
  background: #f5c35c;
  color: #20313d;
   line-height: 1.1;
  /* Soft shadow to the right and bottom */
  box-shadow: 4px 6px 12px rgba(0,0,0,0.4);
  transform: translateY(0);
}

.tab-content {
  margin-top: 20px;
  text-align: center;
}

.tab-pane {
  
}

.tab-pane.active {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px;
  font-size: 1.2em;
}

.tab-content-wrapper {
  display: flex;
  /* justify-content: space-between; */
  align-items: center;
  width: 100%;
  flex-wrap: wrap;
}

.tab-image {
  flex: 1;
  max-width: 35%;
  margin-left: 10%;
}

.tab-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.tab-text {
      
    flex: 1;
    max-width: 35%;
    /* text-align: justify; */
    text-align: left;
    margin-left: 3%;
    color: #20313d !important;
    line-height: 1.2;
}

.tab-text p {
  margin-bottom: 10px;
  line-height: 1.5;
}

.tab-text .btn {
  font-size: 20px;
  border: transparent;
  display: inline-block;
  margin-top: 10px;
  background-color: #5344ba;
  color: white;
  text-align: center;
  padding: 10px 20px;
  border-radius: 5% !important;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}

.tab-text .btn:hover {
  background-color: #f5c35c;
  border: transparent;
  color: black;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .tabs {
      /*display: none;  Ocultar pestañas en vista móvil */
  }

  .tab-pane {
      flex-direction: column; /* Contenido apilado en móviles */
      text-align: center;
  }
  

  .tab-image {
    display: none;
      /* max-width: 100%;
      margin-bottom: 20px; */
  }

  .tab-text {
    max-width: 90%;
        /* text-align: center; */
        padding: 10px;
        margin-left: 5%;
        color: #20313d !important;
  }
}
