/* =========================================
   MagiaSwitch — Base Styles & Custom Properties
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Nintendo-inspired palette */
  --red: #E4000F;
  --red-dark: #b80000;
  --red-light: #ff1a28;
  --blue: #0046A8;
  --blue-dark: #003380;
  --blue-light: #0057d4;
  --white: #FFFFFF;
  --dark: #1a1a1a;
  --dark-soft: #2d2d2d;
  --gray: #6b7280;
  --gray-light: #f5f5f5;
  --gray-mid: #e5e7eb;
  --border: #d1d5db;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Typography */
  --font: 'Inter', system-ui, sans-serif;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.75rem;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);

  /* Transitions */
  --transition: 0.2s ease;

  /* Layout */
  --navbar-height: 64px;
}

/* === Reset === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--navbar-height);
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  font-size: var(--text-base);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%; /* evita zoom de texto en iOS */
}

main {
  flex: 1;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font);
}

input, textarea, select {
  font-family: var(--font);
}

/* === Container === */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

@media (max-width: 400px) {
  .container {
    padding: 0 var(--space-md);
  }
}

/* === Section headings === */
.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-title {
  font-size: clamp(1.75rem, 3vw, var(--text-3xl));
  font-weight: 800;
  color: var(--dark);
  margin-bottom: var(--space-sm);
  line-height: 1.15;
}

.section-subtitle {
  color: var(--gray);
  font-size: var(--text-lg);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.65;
}

/* === Utility === */
.text-center { text-align: center; }
.text-red    { color: var(--red); }
.text-blue   { color: var(--blue); }

.mt-sm  { margin-top: var(--space-sm); }
.mt-md  { margin-top: var(--space-md); }
.mt-lg  { margin-top: var(--space-lg); }
.mt-xl  { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

.mb-sm  { margin-bottom: var(--space-sm); }
.mb-md  { margin-bottom: var(--space-md); }
.mb-lg  { margin-bottom: var(--space-lg); }
.mb-xl  { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.hidden { display: none !important; }

/* === Responsive breakpoints === */
/* Mobile: < 600px  |  Tablet: 600–1024px  |  Desktop: > 1024px */
