:root {
  --blue-primary: #1e3d59;
  --blue-dark: #152f45;
  --teal: #1abc9c;
  --teal-dark: #118c75;
  --coral: #ff6e40;
  --coral-dark: #e85e33;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #eeeeee;
  --gray-300: #e0e0e0;
  --gray-400: #bdbdbd;
  --gray-500: #9e9e9e;
  --gray-600: #757575;
  --gray-700: #616161;
  --gray-800: #333333;
  --font-primary: "Quicksand", sans-serif;
  --font-secondary: "Poppins", sans-serif;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 4px 6px rgba(0, 0, 0, 0.1);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

/* Reset y base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-secondary);
  line-height: 1.6;
  background-color: var(--gray-100);
  color: var(--gray-800);
}

/* Layout y contenedores */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* Header y navegación */
.main-header {
  background-color: white;
  padding: 1.5rem 0;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 100;
}

.main-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-title-group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.main-header .logo {
  height: 50px;
  width: auto;
  display: block;
  transition: transform 0.3s ease;
}

.main-header .logo:hover {
  transform: scale(1.05);
}

/* Tipografía */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-primary);
  color: var(--blue-primary);
  line-height: 1.2;
}

h1 {
  font-size: 2rem;
  font-weight: 700;
}

h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

/* Secciones */
.welcome-section {
  padding: 4rem 0;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.welcome-section p {
  font-size: 1.1rem;
  color: var(--gray-600);
  margin-top: 1rem;
}

/* Footer */
.main-footer {
  background-color: var(--blue-primary);
  color: white;
  padding: 2rem 0;
  margin-top: 4rem;
}

.main-footer p {
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Botones y controles */
.auth-buttons,
.user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.auth-button,
#login,
#logout {
  padding: 0.5rem 1.25rem;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

#login {
  background-color: var(--teal);
  color: white;
}

#login:hover {
  background-color: var(--teal-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

#logout {
  background-color: var(--coral);
  color: white;
}

#logout:hover {
  background-color: var(--coral-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Estados y mensajes */
.auth-status {
  margin-top: 10px;
  font-family: var(--font-secondary);
  color: var(--gray-600);
  min-height: 20px;
  padding: 8px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.auth-status.error {
  background-color: #ffebee;
  color: var(--coral);
  border-left: 3px solid var(--coral);
}

/* Dashboard específico */
.dashboard-content {
  padding: 2rem 0;
}

.module {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.module:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Responsividad */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .main-header {
    padding: 1rem 0;
  }

  .main-header .logo {
    height: 40px;
  }

  h1 {
    font-size: 1.5rem;
  }

  .welcome-section {
    padding: 2rem 0;
  }

  .auth-button,
  #login,
  #logout {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .logo-title-group {
    gap: 1rem;
  }
}

/* Utilidades */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
