/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-y: auto; /* Permitir scroll vertical normal */
  width: 100%;
  scroll-padding-top: 0; /* Asegurar que no haya padding de scroll */
}

/* Prevenir scroll hacia arriba en la página home */
.page-home {
  overflow-anchor: none; /* Prevenir scroll anchor */
}

@media (min-width: 769px) {
  .page-home {
    /* Asegurar que no haya espacio de scroll hacia arriba */
    padding-top: 0;
    margin-top: 0;
  }
  
  .page-home .hero {
    /* Asegurar que la hero esté al inicio */
    position: relative;
    top: 0;
  }
}

body {
  font-family: var(--types-family-font);
  font-size: var(--body-1-regular-font-size);
  font-weight: var(--body-1-regular-font-weight);
  line-height: var(--body-1-regular-line-height);
  letter-spacing: var(--body-1-regular-letter-spacing);
  color: var(--text-icons-neutral-800);
  background-color: var(--surfaces-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 96px;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

/* Ajuste para mobile / tablet: navbar más bajo (72px), evitamos espacio extra
   entre el menú fijo y el inicio del contenido en pantallas <= 900px */
@media (max-width: 900px) {
  body {
    padding-top: 72px;
  }
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Typography */
h1, .h1 {
  font-family: var(--h1-bold-font-family);
  font-size: var(--h1-bold-font-size);
  font-weight: var(--h1-bold-font-weight);
  line-height: var(--h1-bold-line-height);
  letter-spacing: var(--h1-bold-letter-spacing);
  color: var(--text-icons-neutral-800);
}

h2, .h2 {
  font-family: var(--h2-bold-font-family);
  font-size: var(--h2-bold-font-size);
  font-weight: var(--h2-bold-font-weight);
  line-height: var(--h2-bold-line-height);
  letter-spacing: var(--h2-bold-letter-spacing);
  color: var(--text-icons-neutral-800);
}

h2.extrabold, .h2.extrabold {
  font-weight: var(--h2-bold-font-weight);
  letter-spacing: var(--h2-bold-letter-spacing);
}

h3, .h3 {
  font-family: var(--h3-font-family);
  font-size: var(--h3-font-size);
  font-weight: var(--h3-font-weight);
  line-height: var(--h3-line-height);
  letter-spacing: var(--h3-letter-spacing);
  color: var(--text-icons-neutral-800);
}

h4, .h4 {
  font-family: var(--h4-font-family);
  font-size: var(--h4-font-size);
  font-weight: var(--h4-font-weight);
  line-height: var(--h4-line-height);
  letter-spacing: var(--h4-letter-spacing);
  color: var(--text-icons-neutral-800);
}

h5, .h5 {
  font-family: var(--h5-font-family);
  font-size: var(--h5-font-size);
  font-weight: var(--h5-font-weight);
  line-height: var(--h5-line-height);
  letter-spacing: var(--h5-letter-spacing);
  color: var(--text-icons-neutral-800);
}

p {
  font-family: var(--body-1-regular-font-family);
  font-size: var(--body-1-regular-font-size);
  font-weight: var(--body-1-regular-font-weight);
  line-height: var(--body-1-regular-line-height);
  letter-spacing: var(--body-1-regular-letter-spacing);
  color: var(--text-icons-neutral-800);
}

/* Links */
a {
  color: var(--text-icons-neutral-700);
  text-decoration: none;
  transition: color 0.2s ease-out;
}

a:hover {
  color: var(--text-icons-neutral-800);
}

a:focus:not(.navbar__dropdown-item):not(.navbar__dropdown-item *):not(.navbar__logo-link) {
  outline: 2px solid var(--text-icons-tonal-700);
  outline-offset: 2px;
}

a.navbar__logo-link:focus,
a.navbar__logo-link:focus-visible,
a.navbar__logo-link:active,
a.navbar__logo-link:hover {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Buttons base */
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

button:focus:not(.navbar__menu-item) {
  outline: 2px solid var(--text-icons-tonal-700);
  outline-offset: 2px;
}

button.navbar__menu-item:focus,
button.navbar__menu-item:focus-visible,
button.navbar__menu-item:active,
button.navbar__menu-item:hover {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* Utility Classes */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Container */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 96px;
}

@media (max-width: 768px) {
  body {
    padding-top: 72px; /* Adjusted for mobile navbar height */
  }
  
  .container {
    padding: 0 24px;
  }
}

