html {
  scroll-behavior: smooth;
  overflow-y: scroll;
  overflow-x: hidden;
}

html,
body {
  font-family: "proxima-nova", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--celeste);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: var(--negro2);
  line-height: 1.5;
  font-size: 16px;
  overflow-x: hidden;
}

strong {
  font-weight: 700;
}

#app {
  flex: 1;
  background-color: var(--celeste);
  position: relative;
  margin-top: -1px;
  padding-top: 1px;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

a:hover {
  text-decoration: none;
}

img {
  image-rendering: auto;
  max-width: 100%;
  height: auto;
}

::selection {
  background: var(--separador);
  color: var(--azul);
}

:focus-visible {
  outline: 2px solid var(--azul);
  outline-offset: 2px;
}

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

/* Prevent iOS zoom on input focus */
@media screen and (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="search"],
  input[type="number"],
  input[type="url"],
  input[type="tel"],
  select,
  textarea {
    font-size: 16px;
  }
}

/* Page transition */
.page-enter {
  animation: fadeSlideIn 250ms ease forwards;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Simple link */
.simple-link-text {
  color: var(--azul);
  text-decoration: underline;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.simple-link-text:hover {
  color: var(--link-hover);
}

/* Button normal */
.button-normal {
  background-color: var(--azul);
  color: var(--text-on-primary);
  padding: 8px 15px;
  border-radius: 20px;
  text-decoration: none;
  border-width: 0px;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.button-normal:hover {
  background-color: var(--btn-primary-hover);
}

/* Theme transition (only after initial paint) */
.theme-ready,
.theme-ready *,
.theme-ready *::before,
.theme-ready *::after {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

/* Box sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}
