.brand-logo {
  display: block;
  width: 132px;
  height: auto;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.18));
}

/* Paleta institucional de la gestión actual: amarillo ASOEM + grafito. */
:root {
  --ink: #29251c;
  --muted: #6d6554;
  --green: #f5bf18;
  --green-2: #a66e00;
  --mint: #fff0a8;
  --cream: #fff8dd;
  --orange: #f16819;
  --line: #eadfab;
  --shadow: 0 22px 60px rgba(72, 55, 5, 0.14);
}

.hero { color: var(--ink); }

/* Header flotante: contraste estable sobre el hero y durante el scroll. */
.site-header {
  position: fixed;
  top: 0;
  color: #fff;
  pointer-events: none;
}

.site-header .nav-wrap {
  height: 92px;
  margin-top: 14px;
  padding: 0 18px 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom-color: rgba(255, 212, 59, 0.55);
  border-radius: 18px;
  background: rgba(41, 37, 28, 0.94);
  box-shadow: 0 12px 34px rgba(62, 44, 0, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  pointer-events: auto;
  transition: margin 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled .nav-wrap {
  margin-top: 7px;
  background: rgba(41, 37, 28, 0.98);
  box-shadow: 0 14px 36px rgba(45, 34, 5, 0.26);
}

section[id] { scroll-margin-top: 92px; }

.site-header .brand-logo {
  width: 96px;
  max-height: 70px;
  object-fit: contain;
}

.hero {
  --spot-x: 50%;
  --spot-y: 35%;
  --spot-opacity: 0;
  background:
    radial-gradient(circle at 78% 25%, rgba(255, 255, 255, 0.45), transparent 28%),
    linear-gradient(135deg, #f3b900 0%, #ffd438 56%, #ffe785 100%);
}

.hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  opacity: var(--spot-opacity);
  background: radial-gradient(
    310px circle at var(--spot-x) var(--spot-y),
    rgba(255, 255, 255, 0.34) 0%,
    rgba(255, 248, 199, 0.16) 38%,
    transparent 72%
  );
  transition: opacity 0.35s ease;
}

.hero::after {
  border-color: rgba(62, 49, 10, 0.12);
  box-shadow: 0 0 0 90px rgba(255, 255, 255, 0.12), 0 0 0 180px rgba(255, 255, 255, 0.08);
}

.hero-glow-one { background: rgba(255, 255, 255, 0.28); }
.hero-glow-two { background: rgba(241, 104, 25, 0.14); }
.hero .eyebrow { color: #604600; }
.hero h1 em {
  color: #2f4b59;
  text-shadow: none;
}
.hero-lead { color: rgba(41, 37, 28, 0.75); }
.button-primary { color: #fff; background: #29251c; }
.button-primary:hover { background: #40392a; }
.button-ghost { border-color: rgba(41, 37, 28, 0.3); }
.trust-line { color: rgba(41, 37, 28, 0.66); }
.trust-dot { background: #29251c; box-shadow: 0 0 0 5px rgba(41, 37, 28, 0.1); }

nav > a { color: #fff; }
.site-header nav > a:not(.nav-cta) { padding: 12px 2px; }
.nav-cta {
  color: #29251c;
  border-color: #ffd43b;
  background: #ffd43b;
  box-shadow: 0 5px 16px rgba(255, 202, 14, 0.18);
}
.nav-cta:hover { background: #ffe27a; }
.menu-toggle span:not(.sr-only) { background: #fff; }
.menu-toggle { min-width: 44px; min-height: 44px; place-content: center; }
.site-header a:focus-visible,
.site-header button:focus-visible {
  outline: 3px solid #ffd43b;
  outline-offset: 3px;
}

.orbit { border-color: rgba(41, 37, 28, 0.13); }
.visual-card {
  border-color: rgba(41, 37, 28, 0.12);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 25px 60px rgba(91, 67, 0, 0.14);
}
.card-main p { color: rgba(41, 37, 28, 0.68); }
.mini-card > span { color: #29251c; }

.intro,
.contact { background: #fff5c7; }
.services { background: #fffdf5; }
.service-card.featured { color: #29251c; background: #ffd037; border-color: #efb800; }
.featured .service-icon { color: #29251c; background: rgba(255, 255, 255, 0.55); }
.featured p { color: rgba(41, 37, 28, 0.7); }

.access { background: #fffdf5; }
.access-panel { color: #29251c; background: linear-gradient(135deg, #f2b800, #ffd84e); }
.access-panel .eyebrow { color: #654900; }
.access-panel > div > p:last-child { color: rgba(41, 37, 28, 0.7); }
.app-item { border-color: rgba(41, 37, 28, 0.15); background: rgba(255, 255, 255, 0.4); }
.app-item:not(.disabled):hover { background: rgba(255, 255, 255, 0.65); }
.app-icon { color: #29251c; background: #fff; }
.app-item small { color: rgba(41, 37, 28, 0.62); }

footer { background: #29251c; }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header .nav-wrap { background: #29251c; }
}

.card-icon {
  width: 116px;
  height: 96px;
  border-radius: 16px;
  background: #fff;
  font: inherit;
}

.card-icon img {
  display: block;
  width: 98px;
  height: auto;
}

.inverse .brand-logo {
  width: 110px;
}

@media (max-width: 560px) {
  .brand-logo { width: 110px; }
  .card-icon { width: 96px; height: 80px; }
  .card-icon img { width: 82px; }
}

@media (max-width: 900px) {
  .site-header .nav-wrap {
    height: 76px;
    margin-top: 9px;
    padding: 0 12px 0 16px;
    border-radius: 14px;
  }
  .site-header .brand-logo {
    width: 84px;
    max-height: 58px;
  }
  .site-header nav {
    top: 81px;
    left: 0;
    right: 0;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #29251c;
    max-height: calc(100dvh - 90px);
    overflow-y: auto;
  }
  .site-header nav > a { color: #fff; }
  .site-header nav .nav-cta { color: #29251c; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header .nav-wrap,
  .site-header nav,
  .menu-toggle span { transition: none; }
  .hero::before { display: none; }
}

@media (hover: none), (pointer: coarse) {
  .hero::before { display: none; }
}

/* Navegación móvil lateral */
.nav-close,
.nav-overlay { display: none; }

@media (max-width: 900px) {
  .site-header nav {
    display: flex;
    position: fixed;
    z-index: 52;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(350px, calc(100vw - 36px));
    height: 100dvh;
    max-height: none;
    padding: 92px 24px 28px;
    border-radius: 24px 0 0 24px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #29251c;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateX(105%);
    transition: transform 0.28s ease, opacity 0.2s ease, visibility 0.28s;
    box-shadow: -24px 0 60px rgba(20, 16, 7, 0.28);
  }
  .site-header nav.open {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
  }
  .site-header nav > a:not(.nav-cta) {
    padding: 15px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    font-size: 16px;
  }
  .site-header nav .nav-cta {
    margin-top: 10px;
    padding: 16px 18px;
    text-align: center;
  }
  .nav-close {
    display: grid;
    place-items: center;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 46px;
    height: 46px;
    padding: 0;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    font: 300 30px/1 "DM Sans", sans-serif;
    cursor: pointer;
  }
  .nav-overlay {
    display: block;
    position: fixed;
    z-index: 51;
    inset: 0;
    padding: 0;
    border: 0;
    background: rgba(28, 23, 12, 0.48);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    backdrop-filter: blur(3px);
    transition: opacity 0.25s ease, visibility 0.25s;
  }
  .menu-open .nav-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  body.menu-open { overflow: hidden; }
}

@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
  .site-header nav,
  .nav-overlay { transition: none; }
}
