/* Estilos para la sección de sedes */
.section#sedes {
    padding: 4rem 2rem;
    background-color: #111;
    text-align: center;
  }
  
  .section#sedes h2 {
    font-size: 6rem;
    margin-bottom: 2rem;
    font-family: "League Spartan", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    letter-spacing: 2px;
    -webkit-text-stroke: 1px white;
    color: transparent;
    font-weight: 1000;
  } 
  
  .section#sedes p {
    margin-bottom: 20px;
    text-align: center;
  }
  
  .sedes-container {
    display: flex;
    gap: 20px;
    flex-wrap: nowrap;
    margin-top: 6rem;
    margin-bottom: 2rem;
  }
  
  /* La lista de sedes ocupa el 30% (aunque en el código actual se define al 20% junto a un margen izquierdo) */
  .sedes-list {
    flex: 0 0 20%;
    background-color: #222;
    border-radius: 10px;
    padding: 20px;
    margin-left: 5rem; 
  }
  .sedes-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .sede-item {
    padding: 15px;
    margin-bottom: 15px;
    background-color: #333;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  .sede-item:hover {
    background-color: #444;
  }
  .sede-item.active {
    background-color: #d4f349d8;
    color: #000000;
  }
  .sede-item h3 {
    margin: 0 0 5px 0;
  }
  .sede-item p {
    margin: 0;
    font-size: 0.9em;
  }
  
  /* El mapa ocupa el resto (70% menos 5rem de margen a la derecha) */
  .sedes-map {
    flex: 0 0 70%;
    margin-left: 2rem;
    margin-right: 5rem;
  }
  .sedes-map iframe {
    width: 100%;
    height: 100%;
    min-height: 300px;
    border: 0;
    border-radius: 15px;
    filter: invert(90%) hue-rotate(180deg);
  }
  
  .sed123 p {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 7rem;
    font-family: "Urbanist", sans-serif;
  }
  
  /* Media Queries */
  /* Tablets */
  @media (max-width: 992px) {
    .section#sedes h2 {
      font-size: 3.5rem;
    }
    .sed123 p {
      font-size: 1.3rem;
    }
  }
  
  /* Celulares grandes */
  @media (max-width: 768px) {
    .section#sedes {
      padding: 3rem 1rem;
    }
    .section#sedes h2 {
      font-size: 3rem;
    }
    .sedes-container {
      flex-direction: column;
      gap: 1.5rem;
    }
    .sedes-list,
    .sedes-map {
      flex: 1 1 100%;
      max-width: 100%;
      margin: 0 auto;
    }
    .sed123 p {
      font-size: 1.1rem;
      margin-bottom: 5rem;
    }
  }
  
  /* Celulares pequeños */
  @media (max-width: 480px) {
    .section#sedes h2 {
      font-size: 2.5rem;
    }
    .sede-item h3 {
      font-size: 1.1rem;
    }
    .sede-item p {
      font-size: 0.85rem;
    }
    .sed123 p {
      font-size: 1rem;
      padding: 0;
    }
  }
  
  /* Ajuste específico para dispositivos de 820x1180: eliminar los márgenes */
  @media screen and (max-width: 820px) and (max-height: 1180px) {
    .sedes-container {
      flex-direction: column;
      gap: 0;
      margin-top: 2rem;
      margin-bottom: 2rem;
    }
    .sedes-list,
    .sedes-map {
      flex: 0 0 100%;
      margin-left: 0;
      margin-right: 0;
    }
  }

  @media screen and (max-width: 853px) {
    .sedes-container {
      flex-direction: column;
      gap: 0;
      margin-top: 2rem;
      margin-bottom: 2rem;
    }
    .sedes-list,
    .sedes-map {
      flex: 0 0 100%;
      margin-left: 0;
      margin-right: 0;
    }
  }

  @media screen and (max-width: 1024px) and (max-height: 600px) {
    .sedes-container {
      flex-direction: column;
      gap: 0;
      margin-top: 1rem;
      margin-bottom: 1rem;
    }
    .sedes-list,
    .sedes-map {
      flex: 0 0 100%;
      margin-left: 0;
      margin-right: 0;
    }
    /* Opcional: ajustar los tamaños de fuente para optimizar el espacio */
    .section#sedes h2 {
      font-size: 2.5rem;
    }
    .sed123 p {
      font-size: 1rem;
      margin-bottom: 2rem;
    }
  }
