:root {
  --blue: #11589f;
  --blue-dark: #062a55;
  --blue-mid: #0b77c5;
  --cyan: #00a6d6;
  --green: #058f61;
  --green-dark: #056343;
  --yellow: #f4c62f;
  --orange: #f28a22;
  --paper: #ffffff;
  --soft: #eef7ff;
  --ink: #17324d;
  --muted: #617384;
  --line: #dbe7ed;
  --shadow: 0 22px 60px rgba(9, 40, 79, 0.14);
  --radius: 30px;
  --radius-soft: 42px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  width: 100%;
  min-height: 68px;
  margin: 0;
  padding: 8px clamp(16px, 3vw, 34px);
  background: rgba(255, 255, 255, 0.95);
  border: 0;
  border-bottom: 1px solid rgba(219, 231, 237, 0.9);
  box-shadow: 0 20px 42px rgba(6, 42, 85, 0.28);
  backdrop-filter: blur(18px);
}

.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -18px;
  height: 18px;
  background: linear-gradient(180deg, rgba(6, 42, 85, 0.18), transparent);
  pointer-events: none;
}

.brand img {
  display: block;
  width: 118px;
  height: auto;
}

.menu {
  display: flex;
  justify-content: center;
  gap: clamp(10px, 1.45vw, 22px);
  font-weight: 800;
  color: var(--blue-dark);
}

.menu a {
  position: relative;
  padding: 12px 0;
  white-space: nowrap;
}

.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 3px;
  border-radius: 999px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.menu a:hover::after {
  transform: scaleX(1);
}

.portal-link,
.btn,
.see-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  font-weight: 900;
  cursor: pointer;
}

.portal-link,
.btn.primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 10px 24px rgba(17, 88, 159, 0.24);
}

.portal-logo {
  position: relative;
  z-index: 4;
  width: clamp(260px, 24vw, 350px);
  min-height: 104px;
  padding: 0;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: translateY(36px);
  transition: transform 0.28s ease;
}

.portal-logo::after {
  content: "";
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 4px;
  height: 20px;
  border-radius: 999px;
  background: rgba(6, 42, 85, 0.22);
  filter: blur(13px);
  z-index: -1;
  transition: background 0.8s ease, box-shadow 0.8s ease, filter 0.8s ease, opacity 0.8s ease;
}

.portal-logo img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 30px rgba(6, 42, 85, 0.18));
}

.btn.light {
  color: var(--blue-dark);
  background: #fff;
}

.text-link {
  width: fit-content;
  color: var(--blue);
  font-weight: 950;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--blue);
}

.hero {
  position: relative;
  min-height: 580px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 450px);
  align-items: center;
  gap: clamp(28px, 6vw, 90px);
  padding: 72px clamp(20px, 5vw, 72px) 54px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 84% 18%, rgba(244, 198, 47, 0.42) 0 6%, transparent 6.4%),
    radial-gradient(circle at 90% 74%, rgba(0, 166, 214, 0.58) 0 12%, transparent 12.5%),
    radial-gradient(circle at 18% 78%, rgba(120, 210, 244, 0.26) 0 13%, transparent 13.4%),
    linear-gradient(128deg, #062a55 0%, #0b64ad 54%, #057ba7 100%);
  border-bottom-left-radius: 7vw;
  border-bottom-right-radius: 18vw;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 14% auto auto 48%;
  width: 520px;
  aspect-ratio: 1;
  border: 44px solid rgba(255, 255, 255, 0.12);
  border-radius: 45% 55% 70% 30% / 35% 44% 56% 65%;
  animation: floatBlob 9s ease-in-out infinite;
}

.hero .btn.primary {
  background: #bcecff;
  color: var(--blue-dark);
  box-shadow: 0 14px 30px rgba(0, 166, 214, 0.22);
}

.hero::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -120px;
  width: min(46vw, 520px);
  aspect-ratio: 1;
  background: url("assets/escudo-san-vicente.png") center / contain no-repeat;
  opacity: 0.16;
}

.hero-orbit {
  position: absolute;
  border-radius: 50%;
  opacity: 0.82;
  animation: drift 11s ease-in-out infinite;
}

.hero-orbit-one {
  left: 7vw;
  top: 24vh;
  width: 82px;
  height: 82px;
  background: #78d2f4;
}

.hero-orbit-two {
  left: 45vw;
  bottom: 16vh;
  width: 38px;
  height: 38px;
  background: #79d4f2;
  animation-delay: -3s;
}

.hero-copy,
.hero-feature {
  position: relative;
  z-index: 1;
}

.kicker {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .kicker,
.portal-section .kicker,
.agenda .kicker,
.tourism .kicker {
  color: #c6f4db;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 740px;
  margin-bottom: 18px;
  font-size: clamp(2rem, 3.6vw, 3.45rem);
  line-height: 1;
  letter-spacing: 0;
}

h1 span {
  display: inline-block;
  color: #9fe7ff;
}

h2 {
  margin-bottom: 14px;
  color: var(--blue-dark);
  font-size: clamp(1.85rem, 3.5vw, 3.3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  color: var(--blue-dark);
  font-size: 1.35rem;
  line-height: 1.2;
}

.hero p {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.02rem, 1.4vw, 1.25rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-feature {
  position: relative;
  min-height: 425px;
}

.float-card {
  position: absolute;
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 34px 22px 42px 24px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow:
    0 34px 70px rgba(2, 24, 52, 0.34),
    0 12px 22px rgba(0, 129, 184, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(16px);
  transition: transform 0.68s ease, opacity 0.68s ease;
}

.hero-feature.is-switching .float-card {
  opacity: 0;
  transform: translateX(92px) rotate(0deg);
}

.float-card span {
  width: fit-content;
  color: var(--blue-dark);
  background: #bcecff;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 8px 12px;
  border-radius: 999px;
}

.float-card strong {
  color: #fff;
  font-size: 1.35rem;
  line-height: 1.1;
}

.float-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.45;
}

.float-card-main {
  left: 0;
  top: 34px;
  width: min(100%, 390px);
  min-height: 276px;
  transform: rotate(-3deg);
}

.float-card-image {
  right: 0;
  top: -16px;
  width: 338px;
  height: 285px;
  padding: 0;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.58);
  box-shadow:
    0 40px 76px rgba(2, 24, 52, 0.38),
    0 16px 28px rgba(0, 129, 184, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.48);
  transform: rotate(3deg);
}

.float-card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.float-card-image img[src$=".svg"] {
  object-fit: contain;
  padding: 18px;
  background: linear-gradient(135deg, #e8f5ff, #ffffff);
}

.float-card-image img[src$="casa-municipal-tierras-logo.png"] {
  object-fit: contain;
  padding: 8px;
  background: #fff;
}

.float-card-image img[src$="casa-municipal-tierras-logo-v2.svg"] {
  object-fit: contain;
  padding: 8px;
  background: #fff;
}

.float-card-image img[src$="casa-municipal-tierras-logo-relieve.png"] {
  object-fit: contain;
  padding: 24px;
  background: #fff;
}

.float-card-image img[src$="san-vicente-emprende-logo.png"] {
  object-fit: contain;
  padding: 2px;
  background: #f4f0ec;
}

.float-card-image img[src$="san-vicente-emprende-logo-relieve.png"] {
  object-fit: contain;
  padding: 12px;
  background: #fff;
}

.float-card-image img[src$="app-municipal-mi-san-vicente.png"] {
  object-fit: contain;
  object-position: center bottom;
  padding: 6px 6px 0;
  background: linear-gradient(135deg, #eaf7ff, #ffffff);
}

.float-card-image img[src$="tasas-online-descuentos-pastel-final-ajustada.png"] {
  object-fit: cover;
  object-position: center;
}

.float-card-small {
  right: 0;
  bottom: 38px;
  width: 245px;
  min-height: 142px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 28px 58px rgba(2, 24, 52, 0.3),
    0 10px 20px rgba(0, 129, 184, 0.14);
  transform: rotate(-2deg);
}

.float-card-small.has-logo {
  align-content: center;
  padding: 14px;
  background: #fff;
}

.float-card-mini.has-logo {
  align-content: center;
  padding: 12px;
  background: #fff;
}

.float-card-logo {
  width: 100%;
  height: 112px;
  display: block;
  object-fit: contain;
}

.float-card-mini .float-card-logo {
  height: 96px;
}

.float-card-logo[hidden] {
  display: none;
}

.float-card-small strong,
.float-card-mini strong {
  color: var(--blue-dark);
}

.float-card-small span,
.float-card-mini span {
  color: #fff;
  background: var(--blue);
}

.float-card-mini {
  left: 230px;
  bottom: 0;
  width: 205px;
  min-height: 126px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow:
    0 24px 50px rgba(2, 24, 52, 0.28),
    0 9px 18px rgba(0, 129, 184, 0.13);
  transform: rotate(3deg);
}

.hero-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-dots button {
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  color: var(--blue-dark);
  background: #fff;
  font-size: 0.86rem;
  font-weight: 900;
  cursor: pointer;
  transform: rotate(-1deg);
}

.hero-dots button:nth-child(even) {
  transform: rotate(1.4deg);
}

.hero-dots button.active {
  background: #bcecff;
}

.quick-access {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: -24px clamp(18px, 5vw, 72px) 0;
  overflow: hidden;
  border-radius: 34px;
  box-shadow: var(--shadow);
  transform: rotate(-0.35deg);
}

.quick-access a {
  min-height: 104px;
  display: grid;
  align-content: end;
  gap: 6px;
  padding: 22px;
  background: #fff;
  transition: transform 0.2s ease, background 0.2s ease;
}

.quick-access a:hover {
  transform: translateY(-7px) rotate(1deg);
  background: #f5fbf8;
}

.quick-access a:nth-child(2) {
  background: #edf8ff;
}

.quick-access a:nth-child(3) {
  background: #e9f7ff;
}

.quick-access a:nth-child(4) {
  background: #e9fff4;
}

.quick-access span {
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 800;
}

.quick-access strong {
  color: var(--blue-dark);
  font-size: 1.1rem;
}

.section,
.portal-section,
.agenda,
.contact {
  padding: clamp(62px, 8vw, 118px) clamp(20px, 5vw, 72px);
}

.section-title {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-title.inline {
  max-width: none;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
}

.intro {
  padding-top: clamp(88px, 10vw, 140px);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 18px;
}

.intro-card {
  position: relative;
  min-height: 270px;
  padding: 26px;
  overflow: hidden;
  border-radius: 34px 20px 42px 24px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.intro-card:nth-child(2) {
  transform: translateY(24px) rotate(1deg);
}

.intro-card:nth-child(3) {
  transform: rotate(-1deg);
}

.digital-suite {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr 0.9fr;
  gap: 18px;
  padding: clamp(62px, 8vw, 112px) clamp(20px, 5vw, 72px);
  background:
    radial-gradient(circle at 8% 18%, rgba(188, 236, 255, 0.62) 0 8%, transparent 8.4%),
    radial-gradient(circle at 94% 82%, rgba(0, 166, 214, 0.34) 0 12%, transparent 12.5%),
    #fff;
}

.digital-card {
  position: relative;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 4vw, 38px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 44px 24px 54px 26px;
  background: var(--soft);
  box-shadow: 0 18px 45px rgba(9, 40, 79, 0.09);
}

.digital-card::after {
  content: "";
  position: absolute;
  right: -48px;
  top: -48px;
  width: 150px;
  aspect-ratio: 1;
  border-radius: 42% 58% 47% 53% / 56% 36% 64% 44%;
  background: rgba(255, 255, 255, 0.38);
}

.digital-card h2 {
  font-size: clamp(2rem, 3.2vw, 3.05rem);
}

.digital-card p {
  color: var(--muted);
  line-height: 1.58;
}

.digital-card.rates {
  color: #fff;
  background:
    radial-gradient(circle at 88% 20%, rgba(188, 236, 255, 0.72) 0 15%, transparent 15.4%),
    linear-gradient(135deg, var(--blue-dark), var(--blue-mid));
  transform: rotate(-1deg);
}

.digital-card.rates h2,
.digital-card.rates p {
  color: #fff;
}

.digital-card.rates .kicker {
  color: #d6ffe8;
}

.digital-card.rates .btn {
  width: fit-content;
  background: #bcecff;
  color: var(--blue-dark);
}

.digital-card.id-card {
  background: #e8f5ff;
  transform: translateY(34px) rotate(1.2deg);
}

.mi-card-logo {
  width: min(100%, 300px);
  margin: -10px 0 18px;
  display: block;
  filter: drop-shadow(0 14px 18px rgba(6, 42, 85, 0.12));
}

.digital-card.app-card {
  overflow: hidden;
  background: #eaf2ff;
  transform: rotate(-0.8deg);
}

.app-card-image {
  width: 190px;
  max-width: 58%;
  align-self: flex-end;
  margin: -18px -12px 8px 0;
  border-radius: 24px;
  filter: drop-shadow(0 18px 22px rgba(6, 42, 85, 0.16));
}

.floating-badge {
  position: absolute;
  right: 24px;
  top: 22px;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-size: 1.35rem;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(0, 155, 100, 0.25);
}

.intro-card.big {
  display: flex;
  flex-direction: column;
  justify-content: end;
  min-height: 420px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(16, 63, 120, 0.9), rgba(0, 155, 100, 0.82)),
    #0b6e72;
}

.intro-card.big h3,
.intro-card.big p {
  color: #fff;
}

.intro-card.green {
  background: #e5f8ef;
}

.intro-card.yellow {
  background: #edf8ff;
}

.intro-card p,
.news p,
.tourism-copy p,
.portal-copy p {
  color: var(--muted);
  line-height: 1.58;
}

.bubble {
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  aspect-ratio: 1;
  border-radius: 45% 55% 70% 30% / 35% 44% 56% 65%;
  background: rgba(188, 236, 255, 0.66);
}

.portal-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  color: #fff;
  background:
    radial-gradient(circle at 85% 18%, rgba(188, 236, 255, 0.65) 0 8%, transparent 8.4%),
    linear-gradient(135deg, var(--blue-dark), #0b63a9);
  border-top-left-radius: 10vw;
  border-bottom-right-radius: 10vw;
}

.portal-section-logo {
  width: min(100%, 380px);
  margin: 0 0 20px -10px;
  display: block;
  filter: drop-shadow(0 20px 24px rgba(0, 0, 0, 0.18));
}

.portal-section h2,
.portal-section p {
  color: #fff;
}

.portal-dashboard {
  padding: 22px;
  border-radius: 46px 28px 52px 30px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(16px);
}

.dash-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  color: #fff;
  font-weight: 900;
}

.dash-head span {
  opacity: 0.8;
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.dash-grid button {
  min-height: 108px;
  border: 0;
  border-radius: 24px 16px 28px 18px;
  color: var(--blue-dark);
  background: #fff;
  font-weight: 900;
  cursor: pointer;
}

.services {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 18%, rgba(0, 166, 214, 0.12), transparent 28%),
    linear-gradient(180deg, #eef7ff, #ffffff);
}

.management {
  background: #fff;
}

.management-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.management-grid a {
  position: relative;
  min-height: 255px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px 18px 36px 20px;
  background: linear-gradient(145deg, #ffffff, #eef8ff);
  box-shadow: 0 16px 34px rgba(9, 40, 79, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.management-grid a::after,
.service-list a::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -46px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(0, 166, 214, 0.12);
  transition: transform 0.24s ease;
}

.management-grid a:nth-child(3n + 2),
.service-list a:nth-child(3n + 2) {
  background: linear-gradient(145deg, #ffffff, #edfdf6);
}

.management-grid a:nth-child(3n + 2)::after,
.service-list a:nth-child(3n + 2)::after {
  background: rgba(5, 143, 97, 0.14);
}

.management-grid a:nth-child(3n + 3)::after,
.service-list a:nth-child(3n + 3)::after {
  background: rgba(244, 198, 47, 0.16);
}

.management-grid a:hover {
  transform: translateY(-7px) rotate(0.7deg);
  border-color: rgba(17, 88, 159, 0.28);
  box-shadow: var(--shadow);
}

.management-grid a:hover::after,
.service-list a:hover::after {
  transform: scale(1.16);
}

.area-icon,
.service-icon {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 12px 26px rgba(17, 88, 159, 0.22);
  font-size: 0.9rem;
  font-weight: 900;
}

.area-icon {
  width: 112px;
  height: 70px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.area-icon img {
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
}

.management-grid strong,
.management-grid p,
.service-list strong,
.service-list small,
.service-area {
  position: relative;
  z-index: 1;
}

.management-grid strong {
  display: block;
  margin-bottom: 10px;
  color: var(--blue-dark);
  font-size: 1.22rem;
}

.management-grid p {
  max-width: 92%;
  margin-bottom: 18px;
  color: var(--muted);
  line-height: 1.45;
}

.area-news {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 7px;
  padding-top: 14px;
  border-top: 1px solid rgba(219, 231, 237, 0.9);
}

.area-news span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.area-news b {
  color: var(--blue-dark);
  font-size: 0.9rem;
  line-height: 1.24;
}

.search {
  width: min(100%, 420px);
  display: grid;
  gap: 8px;
  color: var(--blue-dark);
  font-weight: 900;
}

.search input,
.contact input,
.contact select,
.contact textarea {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
}

.contact textarea {
  padding-top: 14px;
  resize: vertical;
}

.service-showcase {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.35fr);
  gap: 18px;
  align-items: stretch;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.service-list a,
.service-featured {
  position: relative;
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(219, 231, 237, 0.95);
  border-radius: 30px 18px 36px 20px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(9, 40, 79, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.service-list a {
  min-height: 178px;
}

.service-featured {
  min-height: 100%;
  align-content: end;
  padding: 30px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(6, 42, 85, 0.96), rgba(17, 88, 159, 0.94)),
    linear-gradient(145deg, #ffffff, #eef8ff);
}

.service-featured::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px 14px 30px 16px;
  pointer-events: none;
}

.service-list a:hover,
.service-featured:hover {
  transform: translateY(-7px) rotate(0.6deg);
  border-color: rgba(17, 88, 159, 0.24);
  box-shadow: var(--shadow);
}

.service-list a.is-hidden {
  display: none;
}

.service-featured.is-hidden {
  display: none;
}

.service-area,
.news span {
  width: fit-content;
  padding: 6px 11px;
  border-radius: 999px;
  color: var(--blue-dark);
  background: #e7f3ff;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.service-list strong {
  color: var(--blue-dark);
  font-size: 1.22rem;
  line-height: 1.18;
}

.service-list small,
.service-featured small {
  max-width: 92%;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.38;
}

.service-featured .service-icon {
  width: 62px;
  height: 62px;
  color: var(--blue-dark);
  background: #fff;
}

.service-featured .service-area {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.service-featured strong {
  position: relative;
  z-index: 1;
  max-width: 420px;
  color: #fff;
  font-size: clamp(1.9rem, 3vw, 3.1rem);
  line-height: 1;
}

.service-featured small {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
}

.service-featured em {
  position: relative;
  z-index: 1;
  width: fit-content;
  margin-top: 12px;
  padding: 11px 16px;
  border-radius: 999px;
  color: var(--blue-dark);
  background: #fff;
  font-style: normal;
  font-weight: 900;
}

.see-more {
  color: var(--blue);
  background: #e7f2f8;
}

.news-priority {
  position: relative;
  overflow: hidden;
}

.news-priority::before {
  content: "";
  position: absolute;
  left: -90px;
  top: 110px;
  width: 260px;
  aspect-ratio: 1;
  border-radius: 44% 56% 62% 38% / 38% 45% 55% 62%;
  background: rgba(0, 166, 214, 0.14);
}

.news-layout {
  position: relative;
  display: grid;
  grid-template-columns: 1.35fr 0.82fr 0.82fr;
  gap: 18px;
}

.news-main,
.news-card {
  overflow: hidden;
  border-radius: 36px 22px 42px 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 16px 36px rgba(9, 40, 79, 0.08);
}

.news-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-row: span 2;
  min-height: 520px;
}

.news-main > div:last-child,
.news-card {
  padding: 22px;
  min-height: 250px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-main a,
.news-card a {
  display: inline-flex;
  width: fit-content;
  margin-top: 12px;
  color: var(--blue);
  font-weight: 900;
  border-bottom: 2px solid #8bd8f4;
}

.news-main time,
.news-card time,
.detail-meta {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.news-card:hover {
  transform: translateY(-7px) rotate(0.8deg);
  box-shadow: var(--shadow);
}

.visual {
  min-height: 260px;
  margin: 0;
  overflow: hidden;
  background: #dbe7ed;
}

.visual img {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}

.news-main:hover .visual img,
.news-card:hover .visual img {
  transform: scale(1.04);
}

.news-card .visual {
  min-height: 0;
  aspect-ratio: 16 / 10;
  margin: -22px -22px 18px;
}

.agenda {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(6, 42, 85, 0.98), rgba(17, 88, 159, 0.9)),
    var(--blue);
  overflow: hidden;
}

.agenda h2 {
  color: #fff;
}

.agenda-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(240px, 1fr));
  gap: 16px;
  animation: slowSlide 18s ease-in-out infinite alternate;
}

.agenda-track article {
  min-height: 170px;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.agenda time {
  color: #bcecff;
  font-size: 1.45rem;
  font-weight: 900;
}

.agenda span {
  opacity: 0.82;
}

.tourism {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  color: #fff;
  background:
    radial-gradient(circle at 72% 30%, rgba(188, 236, 255, 0.62) 0 11%, transparent 11.4%),
    linear-gradient(135deg, #062a55, #11589f);
}

.tourism h2,
.tourism p {
  color: #fff;
}

.tourism-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 170px;
  gap: 14px;
}

.tourism-mosaic a {
  display: flex;
  align-items: end;
  padding: 20px;
  border-radius: var(--radius);
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, rgba(9, 40, 79, 0.45), rgba(0, 155, 100, 0.85));
}

.tourism-mosaic a:nth-child(1) {
  grid-row: span 2;
  background:
    radial-gradient(circle at 75% 18%, rgba(188, 236, 255, 0.7) 0 13%, transparent 13.5%),
    linear-gradient(135deg, #0f74a8, #009b64);
}

.tourism-mosaic a:nth-child(3) {
  background: linear-gradient(135deg, #11589f, #00a6d6);
}

.gov-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.gov-grid a {
  min-height: 96px;
  display: flex;
  align-items: end;
  padding: 18px;
  border-radius: 18px;
  color: var(--blue-dark);
  background: var(--soft);
  border: 1px solid var(--line);
  font-weight: 900;
}

.contact {
  display: grid;
  grid-template-columns: 0.9fr minmax(300px, 520px);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  background: var(--soft);
}

.contact form {
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: #fff;
  background: var(--blue-dark);
}

.footer img {
  width: 86px;
  filter: brightness(0) invert(1);
}

.footer div {
  display: grid;
  gap: 4px;
  margin-right: auto;
}

.footer span {
  opacity: 0.74;
}

.news-page,
.news-detail-page,
.admin-page,
.portal-page {
  background: var(--soft);
}

.program-hero,
.program-section,
.program-benefits,
.program-rules,
.form-hero,
.registry-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.program-hero {
  min-height: calc(100vh - 52px);
  padding: 82px 0 38px;
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(330px, 410px);
  gap: clamp(24px, 4vw, 50px);
  align-items: center;
  overflow: visible;
}

.program-hero-copy {
  padding: clamp(24px, 4vw, 42px);
  border-radius: 48px 24px 56px 26px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 18%, rgba(188, 236, 255, 0.62) 0 13%, transparent 13.5%),
    linear-gradient(135deg, var(--blue-dark), var(--blue), var(--cyan));
  box-shadow: var(--shadow);
  animation: programSlideLeft 0.92s cubic-bezier(0.19, 1, 0.22, 1) both;
  transform: translateY(-18px);
}

.program-logo {
  width: min(100%, 315px);
  margin: 0 0 16px -8px;
  filter: drop-shadow(0 14px 24px rgba(2, 24, 52, 0.2));
}

.program-hero h1,
.program-section h2,
.program-rules h2,
.form-hero h1 {
  color: var(--blue-dark);
}

.program-hero-copy h1 {
  max-width: 680px;
  margin: 8px 0 14px;
  color: #fff;
  font-size: clamp(2.15rem, 4.1vw, 4.45rem);
  line-height: 0.98;
}

.program-hero-copy p {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.56;
}

.program-sidecards {
  display: grid;
  gap: 16px;
}

.program-promo,
.program-callout {
  display: grid;
  gap: 14px;
  padding: 28px;
  border-radius: 34px 18px 42px 22px;
  color: var(--blue-dark);
  background: #fff;
  box-shadow:
    0 34px 70px rgba(2, 24, 52, 0.22),
    0 12px 22px rgba(0, 129, 184, 0.13);
}

.program-promo {
  padding: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 232, 124, 0.9) 0 12%, transparent 12.5%),
    radial-gradient(circle at 12% 88%, rgba(214, 255, 232, 0.68) 0 16%, transparent 16.5%),
    linear-gradient(135deg, #0081b8, #00a6d6 54%, #28c779);
  transform: rotate(-1.6deg);
  animation: programPromoIn 0.86s 0.14s cubic-bezier(0.19, 1, 0.22, 1) both;
}

.program-promo span {
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--blue-dark);
  background: #d6ffe8;
  font-weight: 900;
}

.program-promo strong {
  font-size: 1.55rem;
  line-height: 1.05;
}

.program-promo p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 850;
}

.program-promo b {
  width: fit-content;
  padding: 10px 14px;
  border-radius: 18px 10px 22px 12px;
  color: var(--blue-dark);
  background: #ffdf6e;
  box-shadow: 0 12px 24px rgba(2, 24, 52, 0.2);
  font-size: 1.2rem;
  line-height: 1.1;
}

.program-callout {
  transform: rotate(2deg);
  animation: programCalloutIn 0.92s 0.24s cubic-bezier(0.19, 1, 0.22, 1) both;
}

.program-callout span {
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff;
  background: var(--green);
  font-weight: 900;
}

.program-callout strong {
  font-size: 1.72rem;
  line-height: 1.05;
}

.program-callout .hero-actions {
  margin-top: 4px;
  flex-wrap: nowrap;
  gap: 10px;
}

.program-callout .btn {
  min-height: 42px;
  padding: 0 16px;
  white-space: nowrap;
}

@keyframes programSlideLeft {
  from {
    opacity: 0;
    transform: translateX(-80px) rotate(-1.2deg);
  }
  to {
    opacity: 1;
    transform: translateX(0) translateY(-18px) rotate(0deg);
  }
}

@keyframes programPromoIn {
  from {
    opacity: 0;
    transform: translateX(90px) rotate(0deg);
  }
  to {
    opacity: 1;
    transform: translateX(0) rotate(-1.6deg);
  }
}

@keyframes programCalloutIn {
  from {
    opacity: 0;
    transform: translateX(90px) rotate(0deg);
  }
  to {
    opacity: 1;
    transform: translateX(0) rotate(2deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .program-hero-copy,
  .program-promo,
  .program-callout {
    animation: none;
  }
}

.program-section,
.program-rules {
  padding: 46px 0;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.program-copy {
  display: grid;
  gap: 18px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 32px 18px 38px 20px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(9, 40, 79, 0.08);
}

.program-copy p,
.rules-card li,
.registry-aside p,
.registry-aside li {
  color: var(--muted);
  line-height: 1.7;
}

.program-benefits {
  padding: 16px 0 54px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.program-benefits article {
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 30px 18px 36px 20px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(9, 40, 79, 0.08);
}

.program-benefits span {
  color: var(--cyan);
  font-weight: 950;
}

.program-benefits h3,
.rules-card h3,
.registry-aside h2 {
  color: var(--blue-dark);
}

.rules-card,
.registry-aside {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 34px 20px 42px 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.rules-card ul,
.registry-aside ul {
  display: grid;
  gap: 10px;
  padding-left: 20px;
}

.form-hero {
  padding: 84px 0 30px;
}

.form-hero h1 {
  max-width: 860px;
  margin: 10px 0 16px;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 0.98;
}

.form-hero p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.65;
}

.registry-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
  padding: 20px 0 90px;
}

.registry-form {
  display: grid;
  gap: 18px;
}

.registry-form fieldset {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 30px 18px 38px 20px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(9, 40, 79, 0.08);
}

.form-section-title {
  margin: 0 0 4px;
  color: var(--blue-dark);
  font-size: 1.2rem;
  font-weight: 950;
}

.registry-form label {
  display: grid;
  gap: 8px;
  color: var(--blue-dark);
  font-weight: 850;
}

.registry-form em {
  color: #df3b3b;
  font-style: normal;
}

.registry-form input[type="text"],
.registry-form input[type="tel"],
.registry-form input[type="email"] {
  width: 100%;
  min-height: 48px;
  padding: 10px 0;
  border: 0;
  border-bottom: 2px solid #d7e2ea;
  color: var(--blue-dark);
  background: transparent;
  font: inherit;
}

.registry-form input:focus {
  outline: 0;
  border-color: var(--cyan);
}

.radio-group {
  display: grid;
  gap: 12px;
}

.radio-group p {
  margin: 0;
  color: var(--blue-dark);
  font-weight: 850;
}

.radio-group label,
.check-line {
  display: flex;
  grid-template-columns: none;
  align-items: flex-start;
  gap: 12px;
  font-weight: 650;
}

.registry-form input[type="radio"],
.registry-form input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  accent-color: var(--blue);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.form-actions .btn {
  border: 0;
  cursor: pointer;
}

.registry-aside {
  position: sticky;
  top: 110px;
}

.registry-aside img {
  width: min(100%, 300px);
  margin-bottom: 18px;
}

.draw-date-card {
  display: grid;
  gap: 6px;
  margin: 24px -42px -8px 18px;
  padding: 20px 24px;
  border-radius: 26px 14px 32px 16px;
  color: var(--blue-dark);
  background: linear-gradient(135deg, #ffdf6e, #d6ffe8);
  box-shadow:
    0 24px 44px rgba(2, 24, 52, 0.22),
    0 10px 18px rgba(0, 129, 184, 0.12);
  transform: rotate(-2.6deg);
}

.draw-date-card span {
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.draw-date-card strong {
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  line-height: 1;
}

.news-detail {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 118px 0 80px;
}

.news-detail h1 {
  max-width: 900px;
  margin-bottom: 18px;
  font-size: clamp(1.9rem, 4vw, 3.35rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
  color: var(--blue-dark);
}

.back-link {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--blue);
  font-weight: 900;
}

.detail-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.detail-meta span {
  padding: 4px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
}

.detail-hero {
  margin: 0 0 28px;
  overflow: hidden;
  border-radius: 36px 22px 42px 24px;
  box-shadow: var(--shadow);
}

.detail-hero img {
  width: 100%;
  max-height: 520px;
  display: block;
  object-fit: cover;
}

.detail-body {
  max-width: 760px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  line-height: 1.75;
}

.detail-body a {
  color: var(--blue);
  font-weight: 900;
}

.detail-shell,
.news-page-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
  align-items: start;
}

.detail-content {
  min-width: 0;
}

.latest-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px 18px 34px 20px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(9, 40, 79, 0.1);
}

.latest-panel-sticky {
  position: sticky;
  top: 98px;
}

.latest-panel h2 {
  margin-top: 0;
  font-size: 1.25rem;
  color: var(--blue-dark);
}

.latest-list {
  display: grid;
  gap: 12px;
}

.latest-list a {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.latest-list span,
.news-page-hero time {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

.latest-list strong {
  color: var(--blue-dark);
  line-height: 1.25;
}

.news-page-hero {
  width: min(1180px, calc(100% - 40px));
  min-height: 460px;
  margin: 0 auto;
  padding: 118px 0 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.95fr);
  gap: 32px;
  align-items: end;
}

.news-page-hero-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 34px;
  border-radius: 34px 20px 40px 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue), var(--cyan));
  box-shadow: var(--shadow);
}

.news-page-hero-copy h1 {
  margin: 10px 0 12px;
  font-size: clamp(1.75rem, 3vw, 2.9rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
  color: #fff;
}

.news-page-hero-copy p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.86);
}

.news-page-hero figure {
  height: 360px;
  margin: 0;
  overflow: hidden;
  border-radius: 46px 22px 54px 26px;
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
}

.news-page-hero img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.news-page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0 86px;
}

.news-index-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.admin-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  padding: 24px;
  color: #fff;
  background: var(--blue-dark);
}

.admin-sidebar img {
  width: 138px;
  margin-bottom: 28px;
  filter: brightness(0) invert(1);
}

.admin-sidebar nav {
  display: grid;
  gap: 8px;
}

.admin-sidebar a {
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 900;
}

.admin-sidebar a.active,
.admin-sidebar a:hover {
  color: var(--blue-dark);
  background: #bcecff;
}

.admin-content {
  padding: 42px clamp(24px, 5vw, 70px);
}

.admin-heading,
.admin-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
}

.admin-heading {
  margin-bottom: 28px;
}

.admin-form,
.admin-preview {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.admin-form {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.admin-form label {
  display: grid;
  gap: 8px;
  color: var(--blue-dark);
  font-weight: 900;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.admin-form textarea {
  padding-top: 12px;
}

.check-row {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.check-row input {
  width: auto;
  min-height: auto;
}

.admin-preview {
  max-width: 360px;
  padding: 24px;
}

.admin-preview span {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.admin-preview strong {
  display: block;
  margin: 12px 0;
  color: var(--blue-dark);
  font-size: 1.65rem;
  line-height: 1.1;
}

@keyframes floatBlob {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(22px, -18px, 0) rotate(8deg);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-18px);
  }
}

@keyframes slowSlide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-26px);
  }
}

@media (max-width: 1080px) {
  .topbar {
    grid-template-columns: auto auto auto;
  }

  .menu-toggle {
    display: block;
    order: 3;
  }

  .menu {
    position: fixed;
    top: 86px;
    left: 0;
    right: 0;
    display: none;
    padding: 22px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .menu.is-open {
    display: grid;
    justify-content: stretch;
  }

  .hero,
  .digital-suite,
  .portal-section,
  .tourism,
  .contact {
    grid-template-columns: 1fr;
  }

  .digital-card.id-card,
  .digital-card.app-card,
  .digital-card.rates {
    transform: none;
  }

  .program-hero,
  .program-section,
  .program-rules,
  .registry-shell {
    grid-template-columns: 1fr;
  }

  .program-benefits {
    grid-template-columns: 1fr;
  }

  .registry-aside {
    position: static;
  }

  .intro-grid,
  .management-grid,
  .news-layout,
  .news-page-hero,
  .news-page-shell,
  .detail-shell {
    grid-template-columns: 1fr 1fr;
  }

  .intro-card.big,
  .news-main {
    grid-column: 1 / -1;
  }

  .service-list,
  .service-showcase,
  .gov-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-featured {
    grid-column: 1 / -1;
    min-height: 320px;
  }

  .news-page-shell,
  .detail-shell {
    grid-template-columns: 1fr;
  }

  .latest-panel-sticky {
    position: static;
  }
}

@media (max-width: 760px) {
  .topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 58px;
    gap: 8px;
    padding: 7px 12px;
  }

  .brand img {
    width: 76px;
  }

  .portal-link {
    min-height: 40px;
    padding: 0 13px;
    font-size: 0.84rem;
  }

  .portal-logo {
    justify-self: center;
    width: min(154px, 44vw);
    min-height: 52px;
    padding: 0;
    transform: translateY(42px);
  }

  .portal-logo::after {
    left: 18px;
    right: 18px;
    bottom: 0;
    height: 12px;
    filter: blur(9px);
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
  }

  .menu {
    top: 72px;
  }

  .hero {
    min-height: auto;
    gap: 22px;
    padding: 94px 18px 34px;
    border-bottom-left-radius: 34px;
    border-bottom-right-radius: 72px;
    overflow: hidden;
  }

  .hero::before,
  .hero::after,
  .hero-orbit {
    display: none;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-message {
    width: min(100%, 350px);
    margin: 0 auto;
    padding: 20px 18px 22px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 30px 18px 38px 20px;
    background:
      radial-gradient(circle at 88% 10%, rgba(244, 198, 47, 0.28) 0 18%, transparent 18.5%),
      rgba(255, 255, 255, 0.16);
    box-shadow:
      0 30px 62px rgba(2, 24, 52, 0.32),
      0 12px 22px rgba(0, 129, 184, 0.16),
      inset 0 1px 0 rgba(255, 255, 255, 0.38);
    backdrop-filter: blur(16px);
    transition: opacity 0.72s ease, transform 0.72s ease, max-height 0.72s ease, margin 0.72s ease;
  }

  .hero-message h1 {
    margin-bottom: 12px;
    font-size: clamp(1.7rem, 8.5vw, 2.45rem);
    line-height: 1.02;
  }

  .hero-message p:last-child {
    margin-bottom: 0;
    font-size: 0.94rem;
    line-height: 1.42;
  }

  .hero.is-mobile-intro .hero-message {
    max-height: 360px;
    opacity: 1;
    transform: translateX(0) rotate(-2deg);
  }

  .hero:not(.is-mobile-intro) .hero-message {
    max-height: 0;
    margin: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateX(-92px) rotate(-2deg);
  }

  .hero-actions {
    gap: 9px;
    margin-top: 16px;
  }

  .hero-actions .btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 42px;
    padding: 12px 10px;
    font-size: 0.86rem;
    text-align: center;
  }

  .hero-feature {
    width: min(100%, 390px);
    min-height: 350px;
    margin: -2px auto 0;
    display: block;
    transition: opacity 0.72s ease, transform 0.72s ease, max-height 0.72s ease;
  }

  .hero.is-mobile-intro .hero-feature {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateX(54px);
  }

  .hero:not(.is-mobile-intro) .hero-feature {
    max-height: 390px;
    opacity: 1;
    transform: translateX(0);
  }

  .float-card {
    position: absolute;
    min-width: 0;
    margin-bottom: 0;
    border-radius: 24px 16px 30px 18px;
  }

  .hero-feature.is-switching .float-card {
    opacity: 0;
    transform: translateX(86px) rotate(0deg);
  }

  .float-card-main {
    left: 0;
    top: 44px;
    width: min(76vw, 285px);
    min-height: 190px;
    padding: 16px;
    transform: rotate(-3deg);
  }

  .float-card-image {
    right: 0;
    top: 0;
    width: min(64vw, 245px);
    height: 205px;
    transform: rotate(3deg);
  }

  .float-card-small {
    right: 6px;
    bottom: 48px;
    width: min(48vw, 176px);
    min-height: 100px;
    padding: 14px;
    transform: rotate(-2deg);
  }

  .float-card-mini {
    left: 34%;
    bottom: 0;
    width: min(42vw, 154px);
    min-height: 94px;
    padding: 13px;
    transform: rotate(3deg);
  }

  .float-card strong {
    font-size: 1rem;
  }

  .float-card-main strong {
    font-size: 1.12rem;
  }

  .float-card p {
    font-size: 0.88rem;
    line-height: 1.36;
  }

  .float-card span {
    padding: 7px 10px;
    font-size: 0.74rem;
  }

  .float-card-logo {
    height: 78px;
  }

  .float-card-mini .float-card-logo {
    height: 68px;
  }

  .hero-dots {
    display: none;
  }

  h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .quick-access,
  .section-title.inline,
  .intro-grid,
  .management-grid,
  .digital-suite,
  .dash-grid,
  .service-list,
  .service-showcase,
  .news-layout,
  .news-main,
  .news-page-hero,
  .news-page-shell,
  .news-index-grid,
  .detail-shell,
  .agenda-track,
  .tourism-mosaic,
  .gov-grid,
  .contact {
    grid-template-columns: 1fr;
  }

  .news-page-hero {
    min-height: auto;
    padding-top: 82px;
  }

  .news-page-hero-copy,
  .detail-body,
  .latest-panel {
    padding: 22px;
  }

  .news-page-hero figure {
    height: 240px;
    transform: none;
  }

  .quick-access {
    margin-top: 0;
    border-radius: 0;
    box-shadow: none;
    transform: none;
  }

  .quick-access a {
    min-height: 86px;
    padding: 18px;
  }

  .program-hero,
  .form-hero {
    padding-top: 78px;
  }

  .program-hero-copy {
    transform: none;
  }

  .program-callout .hero-actions {
    flex-wrap: wrap;
  }

  .registry-shell {
    padding-bottom: 58px;
  }

  .draw-date-card {
    margin: 22px 0 0;
    transform: rotate(-1.4deg);
  }

  .agenda-track {
    animation: none;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .topbar {
    gap: 6px;
  }

  .brand img {
    width: 68px;
  }

  .portal-logo {
    width: min(142px, 42vw);
    transform: translateY(40px);
  }

  .hero {
    padding-inline: 14px;
  }

  .float-card-image {
    height: 192px;
  }

  .program-hero,
  .program-section,
  .program-benefits,
  .program-rules,
  .form-hero,
  .registry-shell {
    width: min(100% - 28px, 1180px);
  }
}
