/* ============================================
   BASE - RESET Y ESTILOS FUNDAMENTALES
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  transition: background 0.3s ease, color 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg-primary);
  color: var(--text-primary);
}

/* HEADER */
header {
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #008080 0%, #1a2b49 100%);
}

[data-theme="dark"] header {
  background: radial-gradient(circle at top left, #14b8a6 0%, #0b1120 40%, #020617 100%);
}

header::before,
header::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

header::before {
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.05);
}

header::after {
  bottom: -30%;
  left: -5%;
  width: 200px;
  height: 200px;
  background: rgba(255, 0, 0, 0.03);
}

header h1 {
  margin: 0;
  font-size: 1.8rem;
  position: relative;
  z-index: 1;
  color: var(--text-header);
}

header p {
  margin-top: 0.5rem;
  opacity: 0.9;
  position: relative;
  z-index: 1;
  color: var(--text-header);
}

/* LOGO */
.logo-svg {
  display: inline-block;
  width: 36px;
  height: 36px;
  mask: url('/static/assets/logo.svg') center/contain no-repeat;
  -webkit-mask: url('/static/assets/logo.svg') center/contain no-repeat;
  background-color: currentColor;
}

header .logo-svg {
  background-color: #ffffff;
}

[data-theme="dark"] .logo-svg {
  background-color: #14b8a6;
}

/* MAIN LAYOUT */
main {
  max-width: 1400px;
  margin: 1.5rem auto;
  padding: 0 1rem;
  flex: 1;
}

/* FOOTER */
footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  text-align: center;
  padding: 1.5rem;
  margin-top: auto;
}

footer p {
  margin: 0;
}

footer p:first-child {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

footer p:last-child {
  font-size: 0.8rem;
  opacity: 0.8;
}

/* RESPONSIVE BASE */
@media (max-width: 768px) {
  header h1 {
    font-size: 1.4rem;
  }
}