body {
  font-family: "Poppins", sans-serif;
  scroll-behavior: smooth;
  background-color: #f8fafc;
}

.font-title {
  font-family: "Montserrat", sans-serif;
}

/* Estilos para el menú desplegable */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #4059aa;
  min-width: 200px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  border-radius: 0.5rem;
  margin-top: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.dropdown:hover .dropdown-content {
  display: block;
  opacity: 1;
  visibility: visible;
}

.dropdown-content a {
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: background-color 0.3s;
}

.dropdown-content a:hover {
  background-color: #1e3a8a;
}

.dropdown::after {
  content: "";
  position: absolute;
  height: 20px;
  width: 100%;
  bottom: -20px;
  left: 0;
}

/* Efecto de subrayado para los elementos del menú */
.nav-link {
  position: relative;
  padding: 0.5rem 0;
  color: #1e40af;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: #1e40af;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover {
  color: #dc2626;
}

.nav-link:hover::after {
  width: 100%;
}

/* Animaciones para elementos */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.active {
  opacity: 1;
  transform: translateY(0);
}

/* Estilos para el formulario de contacto */
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: #1e40af;
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.2);
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #1f2937;
}

/* Estilos para las tarjetas de información */
.info-card {
  background-color: white;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.info-icon {
  width: 60px;
  height: 60px;
  background-color: #1e40af;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  margin: 0 auto 1rem;
}

/* Estilos para el mapa */
.map-container {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Estilos para las pestañas */
.tab-container {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tab-buttons {
  display: flex;
  background-color: #1e40af;
}

.tab-button {
  padding: 15px 20px;
  background-color: transparent;
  color: white;
  border: none;
  cursor: pointer;

  /* que los 3 tabs midan lo mismo */
  flex: 1 1 0%;
  min-width: 0;
  text-align: center;
  font-weight: 600;

  /* NO cortar palabras: solo cortar en espacios */
  white-space: normal; /* permite 2 líneas, pero solo entre palabras */
  word-break: keep-all; /* no cortar dentro de palabras */
  overflow-wrap: normal; /* no forzar cortes raros */
  -webkit-hyphens: none;
  -ms-hyphens: none;
  hyphens: none;

  /* se adapta un toque en móviles para que todo entre sin romper */
  font-size: clamp(13px, 3.6vw, 16px);
  line-height: 1.2;
  transition: background-color 0.3s;
}

/* en pantallas muy chicas, un poco menos de padding horizontal */
@media (max-width: 420px) {
  .tab-button {
    padding: 12px 10px;
  }
}

/* Garantiza 1 sola línea para "Administración" */
.tab-button--nowrap {
  white-space: nowrap; /* nunca salta de línea */
}

.tab-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.tab-button.active {
  background-color: rgba(255, 255, 255, 0.2);
  font-weight: 600;
}

.tab-content {
  display: none;
  padding: 20px;
  background-color: white;
}

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

/* Estilos para el botón de enviar */
.submit-btn {
  background-color: #1e40af;
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: background-color 0.3s;
  border: none;
  cursor: pointer;
}

.submit-btn:hover {
  background-color: #1e3a8a;
}

.submit-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.4);
}

/* Estilos para el mensaje de éxito */
.success-message {
  background-color: #d1fae5;
  border-left: 4px solid #10b981;
  color: #065f46;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  display: none;
}

/* Estilos para el mensaje de error */
.error-message {
  background-color: #fee2e2;
  border-left: 4px solid #ef4444;
  color: #b91c1c;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  display: none;
}

/* Estilos para los horarios */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
}

.schedule-table th,
.schedule-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.schedule-table th {
  background-color: #f3f4f6;
  font-weight: 600;
}

.schedule-table tr:last-child td {
  border-bottom: none;
}

/* Estilos para las redes sociales */
.social-icon {
  width: 40px;
  height: 40px;
  background-color: #1e40af;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  transition: background-color 0.3s, transform 0.3s;
}

.social-icon:hover {
  background-color: #1e3a8a;
  transform: scale(1.1);
}
