/*
 * Junta Vecinal Federico Villarreal
 * PORTAL-UX-A4-C1
 * Capa visual de portada aislada.
 * No modifica contratos de JavaScript.
 */

body.portal-ux-a4 {
  --max: 1280px;
  --radio: 18px;
  --sombra: 0 6px 24px rgba(18,47,90,.065);
  --sombra-fuerte: 0 16px 40px rgba(18,47,90,.12);
  font-family: Inter, system-ui, -apple-system,
               "Segoe UI", Arial, sans-serif;
  color: #172942;
  background: #f6f8fc;
  -webkit-font-smoothing: antialiased;
}

body.portal-ux-a4 header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid #e6edf6;
  box-shadow: 0 3px 20px rgba(25,51,91,.045);
  backdrop-filter: blur(14px);
}

body.portal-ux-a4 .nav-wrap {
  max-width: 1380px;
  margin: auto;
  padding: 10px 24px;
  min-height: 88px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

body.portal-ux-a4 .brand {
  flex: 0 1 370px;
  width: auto;
  min-width: 0;
  max-width: 370px;
  gap: 11px;
}

body.portal-ux-a4 .brand img {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
}

body.portal-ux-a4 .brand small {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}

body.portal-ux-a4 .brand h1 {
  font-size: clamp(18px,1.45vw,22px);
  line-height: 1.12;
  letter-spacing: -.025em;
}

body.portal-ux-a4 .brand .tagline {
  font-size: 12px;
  margin-top: 5px;
}

body.portal-ux-a4 .main-nav {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
  gap: clamp(9px,1.25vw,20px);
  font-size: 13px;
  font-weight: 750;
}

body.portal-ux-a4 .main-nav a {
  white-space: nowrap;
  border-bottom: none;
}

body.portal-ux-a4 .header-actions {
  flex: 0 0 auto;
  gap: 9px;
  margin-left: 0;
}

body.portal-ux-a4 .btn {
  min-height: 44px;
  border-radius: 11px;
  font-weight: 750;
  letter-spacing: -.012em;
  box-shadow: none;
}

body.portal-ux-a4 .login-btn,
body.portal-ux-a4 .register-btn {
  height: 44px;
  padding: 0 14px;
  font-size: 13px;
  border-radius: 11px;
}

body.portal-ux-a4 .hero {
  width: min(calc(100% - 40px),1320px);
  min-height: 410px;
  height: auto;
  margin: 22px auto 0;
  padding: 54px 0;
  border-radius: 26px;
  box-shadow: 0 20px 44px rgba(7,42,87,.16);
  background-position: center;
  isolation: isolate;
}

body.portal-ux-a4 .hero::after {
  pointer-events: none;
  opacity: .55;
}

body.portal-ux-a4 .hero .inner {
  max-width: 1180px;
  padding-inline: 38px;
}

body.portal-ux-a4 .hero h2 {
  font-size: clamp(32px,3.6vw,53px);
  line-height: 1.08;
  max-width: 730px;
  letter-spacing: -.045em;
  font-weight: 850;
}

body.portal-ux-a4 .hero p {
  font-size: clamp(15px,1.3vw,19px);
  line-height: 1.6;
  max-width: 650px;
  color: #f2f7ff;
}

body.portal-ux-a4 .hero-actions {
  gap: 12px;
}

body.portal-ux-a4 .hero-actions .btn {
  min-height: 47px;
  padding: 12px 21px;
  font-size: 14px;
}

body.portal-ux-a4 main {
  max-width: 1320px;
  padding: 26px 20px 0;
}

body.portal-ux-a4 .grid-top,
body.portal-ux-a4 .shortcut-grid,
body.portal-ux-a4 .home-extra {
  gap: 16px;
}

body.portal-ux-a4 .card {
  background: #fff;
  border: 1px solid #e5ebf4;
  border-radius: 19px;
  box-shadow: var(--sombra);
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    border-color .22s ease;
}

body.portal-ux-a4 .card.pad {
  padding: 23px;
}

body.portal-ux-a4 .card.card-hover {
  transform: translateY(-3px);
  box-shadow: var(--sombra-fuerte);
  border-color: #c9d9ef;
}

body.portal-ux-a4 .card-head {
  font-size: 12px;
  letter-spacing: .055em;
  margin-bottom: 17px;
  line-height: 1.4;
}

body.portal-ux-a4 .news-title {
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -.025em;
}

body.portal-ux-a4 .news-img {
  height: 150px;
  border-radius: 13px;
  background: #edf3fa;
}

body.portal-ux-a4 .gallery-grid img {
  border-radius: 10px;
}

body.portal-ux-a4 .link {
  font-size: 13px;
  font-weight: 750;
}

body.portal-ux-a4 .muted,
body.portal-ux-a4 .empty-text {
  font-size: 13px;
  line-height: 1.65;
  color: #596b83;
}

body.portal-ux-a4 .shortcut-grid,
body.portal-ux-a4 .home-extra {
  margin-top: 20px;
}

body.portal-ux-a4 .shortcut {
  min-height: 145px;
  grid-template-columns: 58px minmax(0,1fr);
  gap: 15px;
}

body.portal-ux-a4 .round-icon {
  width: 52px;
  height: 52px;
  font-size: 25px;
  box-shadow: none;
}

body.portal-ux-a4 .shortcut h3 {
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -.015em;
}

body.portal-ux-a4 .shortcut p {
  line-height: 1.55;
}

body.portal-ux-a4 .home-extra .card {
  min-height: 235px;
}

body.portal-ux-a4 .benefits {
  margin-top: 24px;
  border-radius: 19px;
  border: 1px solid #dcebdc;
  background: linear-gradient(125deg,#eef9f0,#f3f8ff);
  box-shadow: var(--sombra);
}

body.portal-ux-a4 footer {
  margin-top: 28px;
  background: #eaf1fb;
}

body.portal-ux-a4 .footer-inner {
  max-width: 1280px;
  padding-block: 30px;
}

body.portal-ux-a4 .bottom {
  background: #092e62;
}

body.portal-ux-a4 a:focus-visible,
body.portal-ux-a4 button:focus-visible,
body.portal-ux-a4 input:focus-visible {
  outline: 3px solid #f5b82f;
  outline-offset: 3px;
}

@media (max-width: 1450px) {
  body.portal-ux-a4 .brand {
    flex-basis: 310px;
    max-width: 310px;
  }

  body.portal-ux-a4 .main-nav {
    gap: 11px;
    font-size: 12px;
  }

  body.portal-ux-a4 .header-actions {
    gap: 6px;
  }

  body.portal-ux-a4 .login-btn,
  body.portal-ux-a4 .register-btn {
    padding-inline: 11px;
    font-size: 12px;
  }
}

@media (max-width: 1180px) {
  body.portal-ux-a4 .nav-wrap {
    min-height: 78px;
    padding: 9px 19px;
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  body.portal-ux-a4 .brand {
    flex: 1 1 auto;
    max-width: none;
  }

  body.portal-ux-a4 .main-nav,
  body.portal-ux-a4 .header-actions {
    display: none;
  }

  body.portal-ux-a4 .mobile-menu-toggle {
    display: inline-flex;
    flex: 0 0 46px;
  }

  body.portal-ux-a4 .grid-top,
  body.portal-ux-a4 .shortcut-grid,
  body.portal-ux-a4 .home-extra {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  body.portal-ux-a4 .benefits {
    grid-template-columns: 1fr;
  }

  body.portal-ux-a4 .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  body.portal-ux-a4 .nav-wrap {
    min-height: 68px;
    padding: 8px 13px;
    gap: 8px;
  }

  body.portal-ux-a4 .brand img {
    width: 49px;
    height: 49px;
    flex-basis: 49px;
  }

  body.portal-ux-a4 .brand h1 {
    font-size: clamp(14px,4vw,18px);
  }

  body.portal-ux-a4 .brand small {
    font-size: 9px;
  }

  body.portal-ux-a4 .hero {
    width: calc(100% - 20px);
    min-height: 325px;
    padding: 34px 0;
    margin-top: 10px;
    border-radius: 18px;
  }

  body.portal-ux-a4 .hero .inner {
    padding-inline: 23px;
  }

  body.portal-ux-a4 .hero h2 {
    font-size: clamp(27px,7.3vw,36px);
  }

  body.portal-ux-a4 .hero p {
    font-size: 14px;
  }

  body.portal-ux-a4 .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  body.portal-ux-a4 .hero-actions .btn {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }

  body.portal-ux-a4 main {
    padding: 17px 12px 0;
  }

  body.portal-ux-a4 .grid-top,
  body.portal-ux-a4 .shortcut-grid,
  body.portal-ux-a4 .home-extra,
  body.portal-ux-a4 .footer-inner {
    grid-template-columns: minmax(0,1fr);
  }

  body.portal-ux-a4 .card.pad {
    padding: 19px;
  }

  body.portal-ux-a4 .shortcut {
    min-height: 115px;
  }

  body.portal-ux-a4 .news-img {
    height: 165px;
  }

  body.portal-ux-a4 .benefits {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.portal-ux-a4 *,
  body.portal-ux-a4 *::before,
  body.portal-ux-a4 *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
