@font-face {
  font-family: "Inter";
  src: url("Inter/Inter-VariableFont_opsz\,wght.woff2")
      format("woff2-variations"),
    url("Inter/Inter-VariableFont_opsz\,wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("Inter/Inter-Italic-VariableFont_opsz\,wght.woff2")
      format("woff2-variations"),
    url("Inter/Inter-Italic-VariableFont_opsz\,wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --header-height: 64px;
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

html.lock-scroll,
body.lock-scroll {
  overflow: hidden;
}

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

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

.page-container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header mobile estilo Apple (fondo oscuro y blur) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding-top: env(safe-area-inset-top, 0px);
  color: #0f172a;
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: calc(var(--header-height) + env(safe-area-inset-top, 0px));
}

.site-logo img {
  height: 24px;
  width: auto;
  filter: none;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-header__cta {
  display: none;
}

.toolbar-button {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  background: rgba(15, 23, 42, 0.08);
  transition: background 0.2s ease, color 0.2s ease;
}

.toolbar-button:hover {
  background: rgba(248, 250, 252, 0.18);
}

.toolbar-button--ghost {
  background: rgba(248, 250, 252, 0.06);
}

.toolbar-button:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 2px;
}

.toolbar-button img {
  width: 24px;
  height: 24px;
}

/* Navegación desktop */
.site-nav {
  display: none;
  align-items: center;
  justify-content: center;
}
.site-nav__list {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: #475569;
}

.site-nav__list a {
  transition: color 0.2s ease;
}

.site-nav__list a:hover,
.site-nav__list a:focus-visible {
  color: #0f172a;
  outline: none;
}

/* Menú móvil fullscreen */
.dropdown-menu {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.98);
  color: #0f172a;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.dropdown-menu.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.dropdown-menu__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: calc(1.5rem + env(safe-area-inset-top, 0px))
    clamp(1.75rem, 6vw, 2.75rem) calc(2.5rem + env(safe-area-inset-bottom, 0px));
  gap: 2.5rem;
}

.dropdown-menu__close {
  align-self: flex-end;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  background: rgba(15, 23, 42, 0.08);
  transition: background 0.2s ease;
}

.dropdown-menu__close:hover,
.dropdown-menu__close:focus-visible {
  background: rgba(248, 250, 252, 0.18);
}

.dropdown-menu__close:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 2px;
}

.dropdown-menu nav {
  flex: 1;
  display: flex;
}

.dropdown-menu__list {
  list-style: none;
  display: grid;
  align-content: start;
  gap: 1.25rem;
  width: 100%;
}

.dropdown-menu__list a {
  display: block;
  font-size: clamp(1.85rem, 5vw, 2.4rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #0f172a;
}

.dropdown-menu__list a:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 4px;
}

/* Fondo del HERO */
.hero-bg {
  background-image: url("img/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  position: absolute;
  inset: 0;
}

.shadow-soft {
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.1);
}

/* Impresión: ocultar CTA flotantes */
@media print {
  #sticky-cta,
  #whatsapp-floating {
    display: none !important;
  }
}

/* Desktop =1024px (header claro y nav horizontal) */
@media (min-width: 768px) {
  .site-header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    color: initial;
  }

  .site-header__bar {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 1.5rem;
  }

  .site-logo img {
    filter: none;
  }

  .site-nav {
    display: flex;
    justify-content: center;
  }

  .site-header__actions {
    display: none;
  }

  .site-header__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.2rem;
    min-height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.16);
    background: rgba(15, 23, 42, 0.06);
    color: #0f172a;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    font-weight: 700;
    text-transform: uppercase;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  }

  .site-header__cta:hover,
  .site-header__cta:focus-visible {
    background: rgba(15, 23, 42, 0.12);
    border-color: rgba(15, 23, 42, 0.24);
    outline: none;
  }

  .site-header__cta:focus-visible {
    outline: 2px solid #38bdf8;
    outline-offset: 2px;
  }

  .dropdown-menu {
    display: none !important;
  }

  html.lock-scroll,
  body.lock-scroll {
    overflow: auto;
  }
}

/* Movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  .toolbar-button,
  .dropdown-menu,
  .dropdown-menu__close {
    transition: none !important;
  }
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: #374151;
  list-style: none;
  padding: 0;
}

.hero-stats li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(6px);
}

.hero-stats__dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #0284c7;
}

.partner-card {
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 0.9rem;
  height: 3.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
}

.partner-card__img {
  height: 1.75rem;
  max-height: 100%;
  width: auto;
  max-width: 80%;
  object-fit: contain;
  object-position: center;
  filter: grayscale(0.1);
}

.partner-card__img:hover,
.partner-card__img:focus-visible {
  filter: none;
}

/* Footer */
.site-footer {
  background: #ffffff;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  color: #475569;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem 1rem;
  text-align: center;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: #0f172a;
}

.site-footer__logo {
  height: 1.5rem;
  width: auto;
}

.site-footer__links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.95rem;
}

.site-footer__link {
  color: inherit;
  transition: color 0.2s ease;
}

.site-footer__link:hover,
.site-footer__link:focus-visible {
  color: #0f7aff;
  outline: none;
}

.site-footer__copy {
  font-size: 0.85rem;
}

@media (min-width: 768px) {
  .site-footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    gap: 1.5rem;
    padding-block: 1.75rem;
  }

  .site-footer__copy {
    font-size: 0.9rem;
  }
}
