/* Self-hosted fonts (auto-hospedaje RGPD — sin transferencia IP a Google) */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('./fonts/plus-jakarta-sans-400-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('./fonts/space-grotesk-400-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Material Symbols Outlined';
  font-style: normal;
  font-weight: 100 700;
  font-display: block;
  src: url('./fonts/material-symbols-outlined.woff2') format('woff2');
}

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

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background-color: var(--color-background);
  color: var(--color-on-background);
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Material Symbols Outlined — habilita ligaduras para que nombres como "check_circle"
   se rendericen como icono. Sin esto, algunos navegadores muestran el texto literal. */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-feature-settings: 'liga';
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

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

/* Custom Text Selection */
::selection {
  background-color: var(--color-primary-container);
  color: var(--color-on-primary-container);
}

/* Typography Classes */
.font-display-xl {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 40px; /* Mobile fallback */
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

@media (min-width: 1024px) {
  .font-display-xl {
    font-size: 64px;
    line-height: 1.1;
  }
}

.font-display-lg {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px; /* Mobile fallback */
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

@media (min-width: 1024px) {
  .font-display-lg {
    font-size: 40px;
  }
}

.font-headline-md {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
}

@media (min-width: 1024px) {
  .font-headline-md {
    font-size: 32px;
  }
}

.font-body-lg {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
}

.font-body-md {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}

.font-label-md {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: 0.05em;
}

/* Text Accent Gradient */
.text-gradient {
  background: linear-gradient(90deg, #3d23ff 0%, #15cfc3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
