/* ========================================
   ESTILOS PARA PÁGINA DE ESTRUCTURA TERRITORIAL
   ======================================== */

/* Contenedor principal de la página */
.estructura-page {
  min-height: 100vh;
  background-color: #1e293b;
  padding-top: 2rem;
}

/* Header con título */
.estructura-header {
  background-color: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  margin: 1.5rem 1rem;
  border: none;
  padding: 1.5rem;
}

.estructura-header-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 1.5rem 0;
}

/* Contenedor principal del contenido */
.estructura-main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem 2rem;
}

/* Toggle Switch Container */
.estructura-toggle-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.estructura-toggle-switch {
  display: flex;
  background-color: #f3f4f6;
  border-radius: 0.5rem;
  padding: 0.25rem;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.estructura-toggle-option {
  padding: 0.75rem 1.5rem;
  border: none;
  background: transparent;
  color: #6b7280;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  white-space: nowrap;
  min-width: 80px;
}

.estructura-toggle-option:hover {
  color: #374151;
  background-color: rgba(255, 255, 255, 0.5);
}

.estructura-toggle-option.active {
  background-color: #ffffff;
  color: #1e40af;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  font-weight: 600;
}

.estructura-toggle-option:focus {
  outline: none;
  box-shadow: 0 0 0 2px #3b82f6;
}

/* Contenido de las pestañas */
.estructura-content {
  background-color: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  margin-top: 1rem;
}

/* Secciones individuales */
.estructura-section {
  padding: 1rem;
}

.estructura-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 1rem 0;
}

.estructura-section p {
  color: #6b7280;
  margin: 0;
}

/* Responsive design */
@media (max-width: 768px) {
  .estructura-page {
    padding-top: 150px;
  }

  .estructura-toggle-switch {
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .estructura-toggle-option {
    flex: 1;
    min-width: auto;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
  }

  .estructura-content {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .estructura-toggle-switch {
    flex-direction: column;
  }

  .estructura-toggle-option {
    width: 100%;
    margin-bottom: 0.25rem;
  }
}

/* Animaciones */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.estructura-content {
  animation: fadeIn 0.3s ease-out;
}

/* Transiciones suaves */
.estructura-toggle-option {
  transition-property: color, background-color, box-shadow;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
}
