:root {
      --bg: #f3f3f3;
      --white: #ffffff;
      --navy: #394766;
      --navy-dark: #2f3c59;
      --gold: #b79a5f;
      --gold-light: #d4b77b;
      --text: #49526a;
      --muted: #a9adb7;
      --line: #d6d7db;
      --hero: #d7d9df;
      --card-shadow: 0 8px 24px rgba(38, 49, 74, .10);
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }

    body {
      margin: 0;
      font-family: 'Montserrat', sans-serif;
      background: var(--bg);
      color: var(--text);
    }

    .container {
      width: min(1180px, calc(100% - 48px));
      margin: 0 auto;
    }

    .hidden { display: none !important; }

    header.hero {
      background: linear-gradient(180deg, #d7d9df 0%, #cfd4dd 100%);
      min-height: 285px;
      position: relative;
      overflow: hidden;
    }

    header.hero::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        repeating-radial-gradient(circle at 88% 28%, rgba(255,255,255,.22) 0 2px, transparent 2px 16px),
        repeating-radial-gradient(circle at 78% 52%, rgba(255,255,255,.16) 0 2px, transparent 2px 19px),
        repeating-radial-gradient(circle at 95% 58%, rgba(255,255,255,.14) 0 1px, transparent 1px 12px);
      opacity: .75;
      pointer-events: none;
    }

    .hero-inner {
      position: relative;
      z-index: 1;
      padding: 82px 0 60px;
    }

    .brand { max-width: 700px; }

    .brand-title {
      margin: 0;
      line-height: .95;
      letter-spacing: .12em;
      color: var(--navy);
      font-size: clamp(34px, 4vw, 60px);
      font-weight: 300;
      text-transform: uppercase;
    }

    .brand-title strong {
      display: block;
      font-weight: 800;
      letter-spacing: .12em;
    }

    .brand-subtitle {
      margin-top: 16px;
      font-size: 11px;
      letter-spacing: .12em;
      color: #6b7180;
      text-transform: uppercase;
      max-width: 620px;
      line-height: 1.7;
    }

    nav {
      background: rgba(255,255,255,.97);
      border-bottom: 1px solid #efefef;
      position: sticky;
      top: 0;
      z-index: 40;
      backdrop-filter: blur(10px);
    }

    .nav-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      min-height: 92px;
    }

    .menu {
      display: flex;
      gap: 28px;
      flex-wrap: wrap;
      align-items: center;
    }

    .menu a, .menu button {
      text-decoration: none;
      color: #4f5666;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: .18em;
      text-transform: uppercase;
      background: transparent;
      border: 0;
      cursor: pointer;
      padding: 0;
      position: relative;
    }

    .menu button::after, .menu a::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: -8px;
      width: 0;
      height: 2px;
      background: var(--gold);
      transition: width .25s ease;
    }

    .menu button:hover::after,
    .menu a:hover::after,
    .menu button.active::after {
      width: 100%;
    }

    .search {
      width: 260px;
      max-width: 100%;
      height: 38px;
      border: 1px solid #d7d7d7;
      border-radius: 999px;
      padding: 0 16px;
      font-size: 11px;
      letter-spacing: .08em;
      text-transform: uppercase;
      outline: none;
      background: #fafafa;
      color: var(--navy);
    }

    section { padding: 54px 0; }
    .view { animation: fade .25s ease; }
    @keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

    .announcement { padding-top: 34px; }

    .announcement-card {
      min-height: 355px;
      display: grid;
      grid-template-columns: 1.05fr 1.25fr;
      align-items: stretch;
      background: transparent;
    }

    .announcement-copy {
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding-left: 32px;
      position: relative;
      z-index: 2;
    }

    .announcement-copy::after {
      content: "";
      position: absolute;
      right: -90px;
      top: 0;
      bottom: 0;
      width: 180px;
      background: linear-gradient(to right, var(--bg) 22%, rgba(243,243,243,0.82) 55%, rgba(243,243,243,0) 100%);
      pointer-events: none;
    }

    .announcement-title {
      margin: 0;
      color: var(--gold);
      font-size: clamp(42px, 6vw, 72px);
      font-style: italic;
      font-weight: 500;
      letter-spacing: .06em;
      text-transform: uppercase;
    }

    .announcement-sub {
      margin-top: 8px;
      color: var(--gold-light);
      font-size: 24px;
      letter-spacing: .12em;
      text-transform: uppercase;
      font-weight: 300;
    }

    .announcement-text {
      margin-top: 18px;
      max-width: 420px;
      line-height: 1.8;
      font-size: 14px;
      color: #667085;
    }

    .announcement-image {
      min-height: 355px;
      background:
        linear-gradient(to left, rgba(243,243,243,.0), rgba(243,243,243,.45) 28%, rgba(243,243,243,.9) 52%, var(--bg) 82%),
        url('https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1400&q=80') center/cover no-repeat;
      border-radius: 2px;
    }

    .section-title {
      text-align: center;
      margin: 0 0 44px;
      color: var(--navy);
      font-size: 22px;
      font-weight: 700;
      letter-spacing: .22em;
      text-transform: uppercase;
    }

    .meta-bar {
      display: flex;
      justify-content: center;
      margin: -8px 0 30px;
      color: #7a8392;
      font-size: 12px;
      letter-spacing: .12em;
      text-transform: uppercase;
    }

    .countries-grid {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 36px 22px;
      justify-items: center;
      max-width: 980px;
      margin: 0 auto;
    }

    .country {
      text-align: center;
      position: relative;
      width: 150px;
      cursor: pointer;
      transition: transform .25s ease;
    }

    .country:hover { transform: translateY(-6px); }

    .flag-wrap {
      width: 96px;
      margin: 0 auto;
      position: relative;
    }

    .flag {
      width: 96px;
      height: 96px;
      border-radius: 50%;
      border: 2px solid #f7f7f7;
      box-shadow: 0 0 0 2px #7c8394;
      overflow: hidden;
      background: linear-gradient(180deg, #d9dde4 0%, #cfd5df 100%);
      position: relative;
      display: grid;
      place-items: center;
      font-size: 42px;
    }

    .flag::after {
      content: "";
      position: absolute;
      inset: 7px;
      border-radius: 50%;
      border: 1px solid rgba(255,255,255,.85);
      pointer-events: none;
    }

    .connector-side, .connector-bottom {
      position: absolute;
      background: #4f5a74;
      opacity: .85;
    }

    .connector-side {
      width: 22px;
      height: 2px;
      right: -18px;
      top: 50%;
      transform: translateY(-50%);
    }

    .connector-side::after, .connector-bottom::after {
      content: "";
      position: absolute;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #30405c;
    }

    .connector-side::after { right: -4px; top: -3px; }

    .connector-bottom {
      width: 2px;
      height: 18px;
      left: 50%;
      bottom: -18px;
      transform: translateX(-50%);
    }

    .connector-bottom::after { left: -3px; bottom: -4px; }

    .country-name {
      margin-top: 22px;
      font-size: 15px;
      font-weight: 700;
      color: var(--navy);
      letter-spacing: .12em;
      text-transform: uppercase;
      line-height: 1.4;
    }

    .country-city {
      margin-top: 4px;
      font-size: 12px;
      font-weight: 500;
      color: #626a7d;
      letter-spacing: .12em;
      text-transform: uppercase;
    }

    .more-wrap {
      width: 300px;
      margin: 42px auto 0;
      text-align: center;
      color: #525b6f;
      font-size: 14px;
      letter-spacing: .22em;
      text-transform: uppercase;
      position: relative;
    }

    .more-wrap::before {
      content: "";
      position: absolute;
      top: -12px;
      left: 26px;
      right: 26px;
      height: 1px;
      background: #b9bcc4;
    }


    .search-results {
      max-width: 980px;
      margin: -10px auto 30px;
      display: grid;
      grid-template-columns: repeat(2, minmax(260px, 1fr));
      gap: 14px;
    }

    .search-result-card {
      background: #fff;
      border: 1px solid #e2e7ef;
      border-left: 4px solid var(--gold);
      border-radius: 14px;
      padding: 16px 18px;
      box-shadow: 0 4px 14px rgba(38, 49, 74, .08);
      cursor: pointer;
      transition: transform .2s ease, border-color .2s ease;
    }

    .search-result-card:hover {
      transform: translateY(-2px);
      border-color: var(--gold-light);
    }

    .search-result-card h4 {
      margin: 0 0 8px;
      color: var(--navy);
      font-size: 14px;
      letter-spacing: .08em;
      text-transform: uppercase;
    }

    .search-result-card p {
      margin: 0;
      color: #6f7788;
      font-size: 12px;
      line-height: 1.6;
    }

    .search-tag {
      display: inline-block;
      margin: 8px 6px 0 0;
      padding: 5px 9px;
      border-radius: 999px;
      background: #f5f6f9;
      border: 1px solid #e0e5ec;
      color: #6f7788;
      font-size: 10px;
      letter-spacing: .1em;
      text-transform: uppercase;
      font-weight: 700;
    }


    .search-summary {
      margin: 0 auto 16px;
      max-width: 920px;
      color: var(--navy);
      font-size: 13px;
      font-weight: 700;
      letter-spacing: .12em;
      text-transform: uppercase;
      text-align: center;
    }

    .empty-msg {
      text-align: center;
      color: #7a8392;
      font-size: 13px;
      letter-spacing: .08em;
      text-transform: uppercase;
      margin-top: 20px;
    }

    .detail-card, .info-card {
      background: var(--white);
      border-radius: 18px;
      box-shadow: var(--card-shadow);
      border: 1px solid #e4e7ed;
      overflow: hidden;
    }

    .detail-header {
      padding: 34px;
      background: linear-gradient(180deg, #eef1f5 0%, #f7f8fa 100%);
      position: relative;
      display: flex;
      gap: 24px;
      align-items: center;
    }

    .detail-header::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 4px;
      background: var(--gold);
    }

    .detail-flag {
      width: 110px;
      height: 110px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      font-size: 52px;
      background: linear-gradient(180deg, #d9dde4 0%, #cfd5df 100%);
      box-shadow: 0 0 0 2px #7c8394;
      position: relative;
      flex: 0 0 auto;
    }

    .detail-flag::after {
      content: "";
      position: absolute;
      inset: 8px;
      border-radius: 50%;
      border: 1px solid rgba(255,255,255,.85);
    }

    .detail-title {
      margin: 0;
      color: var(--navy);
      font-size: clamp(28px, 4vw, 42px);
      letter-spacing: .08em;
      text-transform: uppercase;
    }

    .detail-sub {
      margin-top: 8px;
      color: #6f7788;
      font-size: 12px;
      letter-spacing: .18em;
      text-transform: uppercase;
    }

    .back-btn {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 12px 18px;
      border-radius: 999px;
      background: var(--navy);
      color: white;
      border: 0;
      cursor: pointer;
      font-size: 12px;
      letter-spacing: .14em;
      text-transform: uppercase;
      font-weight: 700;
      margin-bottom: 24px;
    }

    .facts-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      border-top: 1px solid #e4e7ed;
      border-bottom: 1px solid #e4e7ed;
    }

    .fact {
      padding: 22px 16px;
      text-align: center;
      border-right: 1px solid #e4e7ed;
    }

    .fact:last-child { border-right: 0; }

    .fact-label {
      color: #929aab;
      font-size: 11px;
      letter-spacing: .16em;
      text-transform: uppercase;
      margin-bottom: 8px;
      font-weight: 700;
    }

    .fact-value {
      color: var(--navy);
      font-size: 15px;
      font-weight: 700;
      line-height: 1.5;
    }

    .detail-body {
      padding: 34px;
      display: grid;
      gap: 22px;
    }

    .info-block {
      background: #f7f8fa;
      border-left: 4px solid var(--gold);
      border-radius: 0 14px 14px 0;
      padding: 20px 22px;
    }

    .info-block h3 {
      margin: 0 0 10px;
      color: var(--navy);
      font-size: 15px;
      letter-spacing: .14em;
      text-transform: uppercase;
    }

    .info-block p,
    .info-block li {
      margin: 0;
      line-height: 1.8;
      color: #667085;
      font-size: 14px;
    }

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

    .gallery-item {
      aspect-ratio: 1.6 / 1;
      border-radius: 14px;
      background: linear-gradient(180deg, #d8dde8 0%, #e6e9ef 100%);
      border: 1px solid #dfe3ea;
      display: grid;
      place-items: center;
      color: #7d8799;
    }


    .states-wrap {
      margin-top: 8px;
    }

    .states-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(200px, 1fr));
      gap: 16px;
      margin-top: 18px;
    }

    .state-card {
      background: #fff;
      border: 1px solid #e2e7ef;
      border-radius: 14px;
      padding: 18px;
      box-shadow: 0 4px 14px rgba(38, 49, 74, .08);
      cursor: pointer;
      transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    }

    .state-card:hover {
      transform: translateY(-4px);
      border-color: var(--gold-light);
      box-shadow: 0 10px 24px rgba(38, 49, 74, .12);
    }

    .state-card h4 {
      margin: 0 0 8px;
      color: var(--navy);
      font-size: 15px;
      letter-spacing: .06em;
      text-transform: uppercase;
    }

    .state-card p {
      margin: 0;
      color: #6f7788;
      font-size: 13px;
      line-height: 1.7;
    }

    .state-detail-grid {
      display: grid;
      gap: 20px;
      margin-top: 26px;
    }

    .state-detail-card {
      background: #fff;
      border: 1px solid #e2e7ef;
      border-radius: 16px;
      padding: 24px;
      box-shadow: 0 6px 18px rgba(38,49,74,.08);
      scroll-margin-top: 110px;
    }

    .state-detail-head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 16px;
      margin-bottom: 16px;
      flex-wrap: wrap;
    }

    .state-detail-title {
      margin: 0;
      color: var(--navy);
      font-size: 22px;
      letter-spacing: .08em;
      text-transform: uppercase;
    }

    .state-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      border-radius: 999px;
      background: #f5f6f9;
      border: 1px solid #e0e5ec;
      color: #6f7788;
      padding: 8px 14px;
      font-size: 11px;
      letter-spacing: .12em;
      text-transform: uppercase;
      font-weight: 700;
    }

    .norm-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(220px, 1fr));
      gap: 16px;
    }

    .norm-grid.norm-grid-general {
      grid-template-columns: 1fr;
    }

    .norm-general-card {
      width: 100%;
    }

    .norm-general-header {
      margin-bottom: 14px;
    }

    .norm-general-header h5 {
      margin-bottom: 6px;
    }

    .norm-general-header p {
      margin: 0;
      color: #7a8392;
      font-size: 12px;
      line-height: 1.6;
    }

    .norm-general-documents {
      display: grid;
      grid-template-columns: repeat(3, minmax(220px, 1fr));
      gap: 12px;
    }

    .norm-general-documents .norm-link {
      margin-bottom: 0;
      height: 100%;
    }

    .norm-card {
      background: #f8f9fb;
      border: 1px solid #e3e7ee;
      border-top: 4px solid var(--gold);
      border-radius: 14px;
      padding: 18px;
    }

    .norm-card h5 {
      margin: 0 0 12px;
      color: var(--navy);
      font-size: 13px;
      letter-spacing: .12em;
      text-transform: uppercase;
    }

    .norm-link {
      display: block;
      text-decoration: none;
      color: inherit;
      background: #fff;
      border: 1px solid #e5e8ef;
      border-radius: 12px;
      padding: 12px;
      margin-bottom: 10px;
      transition: border-color .2s ease, transform .2s ease;
    }

    .norm-link:hover {
      border-color: var(--gold-light);
      transform: translateY(-2px);
    }

    .norm-link strong {
      display: block;
      color: var(--navy);
      font-size: 13px;
      margin-bottom: 6px;
    }

    .norm-link span {
      display: block;
      color: #6f7788;
      font-size: 12px;
      line-height: 1.6;
    }


    .municipality-section {
      display: grid;
      gap: 16px;
      margin-top: 22px;
    }

    .municipality-head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
    }

    .municipality-title {
      margin: 0;
      color: var(--navy);
      font-size: 15px;
      letter-spacing: .12em;
      text-transform: uppercase;
    }

    .municipality-note {
      margin: 0;
      color: #6f7788;
      font-size: 13px;
      line-height: 1.7;
    }

    .municipality-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(150px, 1fr));
      gap: 12px;
    }

    .municipality-card {
      background: #fff;
      border: 1px solid #e3e7ee;
      border-radius: 12px;
      padding: 14px;
      box-shadow: 0 4px 12px rgba(38,49,74,.06);
      transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
      cursor: pointer;
    }

    .municipality-card:hover {
      transform: translateY(-2px);
      border-color: var(--gold-light);
      box-shadow: 0 8px 18px rgba(38,49,74,.10);
    }

    .municipality-card.active {
      border-color: var(--gold);
      box-shadow: 0 10px 22px rgba(38,49,74,.14);
      background: #fffdf8;
    }

    .municipality-card strong {
      display: block;
      color: var(--navy);
      font-size: 13px;
      margin-bottom: 4px;
    }

    .municipality-card span {
      display: block;
      color: #6f7788;
      font-size: 12px;
      line-height: 1.5;
    }

    .municipality-empty {
      background: #f8f9fb;
      border: 1px dashed #cfd6e2;
      border-radius: 12px;
      padding: 16px;
      color: #6f7788;
      font-size: 13px;
      line-height: 1.7;
    }


    .municipal-detail-wrap {
      margin-top: 20px;
      display: grid;
      gap: 16px;
    }

    .municipal-detail-card {
      background: #fff;
      border: 1px solid #e2e7ef;
      border-radius: 16px;
      padding: 22px;
      box-shadow: 0 6px 18px rgba(38,49,74,.08);
    }

    .municipal-detail-head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
      margin-bottom: 16px;
    }

    .municipal-detail-title {
      margin: 0;
      color: var(--navy);
      font-size: 18px;
      letter-spacing: .08em;
      text-transform: uppercase;
    }

    .municipal-detail-sub {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      border-radius: 999px;
      background: #f5f6f9;
      border: 1px solid #e0e5ec;
      color: #6f7788;
      padding: 8px 14px;
      font-size: 11px;
      letter-spacing: .12em;
      text-transform: uppercase;
      font-weight: 700;
    }

    .municipal-placeholder {
      background: #f8f9fb;
      border-left: 4px solid var(--gold);
      border-radius: 0 14px 14px 0;
      padding: 14px 16px;
      color: #6f7788;
      font-size: 13px;
      line-height: 1.7;
    }
    .documents-grid, .activities-grid {
      display: grid;
      gap: 28px;
    }

    .documents-grid {
      grid-template-columns: repeat(3, minmax(220px, 1fr));
      max-width: 920px;
      margin: 0 auto;
    }

    .doc-card {
      min-height: 210px;
      border-radius: 14px;
      padding: 28px 20px;
      color: white;
      background:
        radial-gradient(circle at 30% 20%, rgba(255,255,255,.08), transparent 25%),
        repeating-radial-gradient(circle at 70% 40%, rgba(255,255,255,.08) 0 1px, transparent 1px 12px),
        linear-gradient(180deg, #425071 0%, #33415f 100%);
      box-shadow: 0 8px 22px rgba(38, 49, 74, .12);
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
    }

    .doc-card h3 {
      margin: 0 0 14px;
      font-size: 30px;
      line-height: 1;
      letter-spacing: .04em;
      text-transform: uppercase;
    }

    .doc-card p {
      margin: 0;
      font-size: 14px;
      line-height: 1.6;
      letter-spacing: .08em;
      text-transform: uppercase;
    }

    .activities-grid {
      grid-template-columns: repeat(3, 1fr);
      max-width: 1060px;
      margin: 0 auto;
    }

    .activity-card {
      display: block;
      text-decoration: none;
      color: inherit;
    }

    .activity-thumb {
      background: #d8dde8;
      aspect-ratio: 1.7 / 1;
      position: relative;
      overflow: hidden;
      border-radius: 10px;
    }

    .activity-thumb::before,
    .activity-thumb::after {
      content: "";
      position: absolute;
      left: 0;
      top: 0;
      width: 100%;
      height: 1px;
      background: #9099aa;
      transform-origin: left top;
    }

    .activity-thumb::before {
      transform: rotate(39deg) translateY(-1px);
      width: 150%;
    }

    .activity-label {
      margin-top: 10px;
      font-size: 16px;
      color: #616a7b;
    }

    .social-bar {
      margin-top: 60px;
      background: var(--navy);
      padding: 18px 0;
    }

    .social-list {
      display: flex;
      justify-content: center;
      gap: 28px;
    }

    .social {
      width: 42px;
      height: 42px;
      border-radius: 50%;
      background: rgba(255,255,255,.14);
      border: 1px solid rgba(255,255,255,.24);
      color: white;
      display: grid;
      place-items: center;
      font-size: 18px;
      font-weight: 700;
    }

    .collaborators {
      padding: 24px 0 48px;
      background: var(--bg);
    }

    .collaborators h3 {
      margin: 0;
      color: var(--navy);
      font-size: 22px;
      letter-spacing: .22em;
      text-transform: uppercase;
    }



    #mapaCatastro {
      height: 540px;
      width: 100%;
      margin-top: 24px;
      border-radius: 18px;
      overflow: hidden;
      border: 1px solid #e2e8f0;
      box-shadow: 0 8px 24px rgba(38, 49, 74, .10);
      background: #e8eef6;
    }

    .map-legend {
      background: rgba(255,255,255,.95);
      padding: 12px 14px;
      border-radius: 12px;
      box-shadow: 0 6px 18px rgba(38,49,74,.16);
      color: #475569;
      font-size: 12px;
      line-height: 1.8;
      border: 1px solid #e2e8f0;
    }

    .map-tooltip {
      background: var(--navy);
      color: #fff;
      border: 0;
      border-radius: 8px;
      padding: 6px 10px;
      font-size: 12px;
      font-weight: 700;
      box-shadow: 0 4px 12px rgba(38,49,74,.18);
    }

    .map-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 18px;
      justify-content: center;
    }

    .map-chip {
      border: 1px solid #e2e8f0;
      background: #fff;
      color: var(--navy);
      border-radius: 999px;
      padding: 9px 14px;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: .1em;
      text-transform: uppercase;
      cursor: pointer;
      transition: transform .2s ease, border-color .2s ease, background .2s ease;
    }

    .map-chip:hover {
      transform: translateY(-2px);
      border-color: var(--gold-light);
      background: #fffdf8;
    }

    @media (max-width: 980px) {
      .announcement-card,
      .facts-grid,
      .documents-grid,
      .activities-grid,
      .norm-grid {
        grid-template-columns: 1fr;
      }

      .announcement-copy { padding: 0 12px 24px; }
      .announcement-copy::after { display: none; }
      .countries-grid { grid-template-columns: repeat(3, 1fr); }
      .search-results { grid-template-columns: 1fr; }
      .states-grid { grid-template-columns: repeat(2, 1fr); }
      .municipality-grid { grid-template-columns: repeat(2, 1fr); }
      .norm-general-documents { grid-template-columns: 1fr; }
      .fact { border-right: 0; border-bottom: 1px solid #e4e7ed; }
      .fact:last-child { border-bottom: 0; }
      .gallery { grid-template-columns: 1fr; }
    }

    @media (max-width: 700px) {
      .nav-inner {
        flex-direction: column;
        align-items: stretch;
        padding: 20px 0;
      }

      .menu { justify-content: center; gap: 18px 24px; }
      .search { width: 100%; }
      .countries-grid { grid-template-columns: repeat(2, 1fr); }
      .states-grid { grid-template-columns: 1fr; }
      .municipality-grid { grid-template-columns: 1fr; }
      .country { width: 130px; }
      .flag-wrap, .flag { width: 84px; height: 84px; }
      .brand-title { font-size: 40px; }
      .announcement-sub { font-size: 18px; }
      .detail-header { flex-direction: column; text-align: center; }
      .detail-body, .detail-header { padding: 24px; }
    }
/* Información dinámica por país */
.country-content-card {
  background: #f8f9fb;
  border: 1px solid #e3e7ee;
  border-left: 4px solid var(--gold);
  border-radius: 0 16px 16px 0;
  padding: 24px;
}
.country-content-head { display:flex; align-items:center; gap:12px; margin-bottom:14px; }
.country-content-head svg { width:22px; height:22px; color:var(--gold); }
.country-content-head h3 { margin:0; color:var(--navy); font-size:16px; letter-spacing:.12em; text-transform:uppercase; }
.country-content-card > p { margin:0; color:#667085; font-size:14px; line-height:1.8; }
.country-data-grid { display:grid; grid-template-columns:repeat(2,minmax(220px,1fr)); gap:14px; margin-top:18px; }
.country-data-grid > div { background:#fff; border:1px solid #e4e8ef; border-radius:12px; padding:14px; }
.country-data-grid span { display:block; color:#929aab; font-size:10px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; margin-bottom:6px; }
.country-data-grid strong { color:var(--navy); font-size:13px; line-height:1.5; }
.country-links { display:flex; flex-wrap:wrap; gap:10px; margin-top:18px; }
.country-info-link { display:inline-flex; align-items:center; gap:8px; text-decoration:none; background:var(--navy); color:#fff; border-radius:999px; padding:10px 14px; font-size:11px; font-weight:700; letter-spacing:.08em; }
.country-info-link svg { width:15px; height:15px; }
.country-info-empty { display:block; padding:14px; background:#fff; border:1px dashed #cfd6e2; border-radius:12px; color:#778195; font-size:13px; line-height:1.6; }
.country-gallery-grid { display:grid; grid-template-columns:repeat(3,minmax(200px,1fr)); gap:16px; }
.country-gallery-card { margin:0; overflow:hidden; border-radius:14px; background:#fff; border:1px solid #e0e5ec; }
.country-gallery-card img { width:100%; aspect-ratio:1.55/1; object-fit:cover; display:block; }
.country-gallery-card figcaption { padding:12px 14px; color:var(--navy); font-size:12px; font-weight:700; }
.country-maps-grid { display:grid; grid-template-columns:repeat(2,minmax(240px,1fr)); gap:14px; }
.country-map-card { display:flex; gap:14px; text-decoration:none; background:#fff; border:1px solid #e0e5ec; border-radius:14px; padding:16px; transition:.2s ease; }
.country-map-card:hover { transform:translateY(-2px); border-color:var(--gold-light); box-shadow:0 8px 18px rgba(38,49,74,.09); }
.country-map-icon { width:42px; height:42px; flex:0 0 auto; display:grid; place-items:center; border-radius:12px; background:#f2ede3; color:var(--gold); }
.country-map-card strong,.country-map-card span,.country-map-card small { display:block; }
.country-map-card strong { color:var(--navy); font-size:13px; margin-bottom:5px; }
.country-map-card span { color:#6f7788; font-size:12px; line-height:1.5; }
.country-map-card small { margin-top:8px; color:var(--gold); font-weight:700; text-transform:uppercase; letter-spacing:.08em; }
.country-flag-img { width:100%; height:100%; object-fit:cover; display:block; }
.country-flag-img-detail { border-radius:50%; }
@media (max-width:980px){.country-gallery-grid,.country-maps-grid,.country-data-grid{grid-template-columns:1fr;}}


/* ============================================================
   BANDERAS COMPATIBLES EN TODOS LOS DISPOSITIVOS Y NAVEGADORES
   Usa la biblioteca Flag Icons en lugar de emojis del sistema.
   ============================================================ */
.flag .country-flag-img,
.detail-flag .country-flag-img {
  display: block;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  line-height: 1;
}

.flag .country-flag-img {
  border-radius: 50%;
}

.detail-flag .country-flag-img-detail {
  border-radius: 50%;
}

.search-flag {
  display: inline-block;
  width: 24px;
  height: 16px;
  margin-right: 8px;
  vertical-align: -2px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(57, 71, 102, .18);
}


/* ============================================================
   BANDERAS CUADRADAS, COMPLETAS Y CON SELECCIÓN PERSISTENTE
   ============================================================ */
.flag-wrap {
  width: 98px;
  height: 122px;
  display: flex;
  justify-content: center;
  position: relative;
}

.flag {
  width: 96px;
  height: 96px;
  border-radius: 8px;
  border: 2px solid #f7f7f7;
  box-shadow: 0 0 0 2px #7c8394;
  overflow: hidden;
  background: rgba(78, 102, 145, .16);
  transition: transform .28s ease, box-shadow .28s ease, background .28s ease;
}

.flag::after {
  inset: 5px;
  border-radius: 5px;
}

.flag .country-flag-img {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-color: #eef1f6;
  filter: grayscale(1) sepia(.35) hue-rotate(175deg) saturate(1.8) opacity(.62);
  transition: filter .28s ease, transform .28s ease, background-color .28s ease;
}

.country:hover .flag .country-flag-img,
.country.selected .flag .country-flag-img {
  filter: none;
  background-color: #fff;
}

.country:hover .flag,
.country.selected .flag {
  transform: translateY(-2px);
  box-shadow: 0 0 0 2px var(--gold), 0 9px 20px rgba(38,49,74,.16);
}

/* Todos los palitos empiezan horizontales */
.connector-side,
.connector-bottom {
  width: 24px;
  height: 2px;
  right: -20px;
  left: auto;
  top: 48px;
  bottom: auto;
  transform: none;
  transition: width .28s ease, height .28s ease, left .28s ease,
              right .28s ease, top .28s ease, bottom .28s ease,
              transform .28s ease, background .28s ease;
}

.connector-side::after,
.connector-bottom::after {
  right: -4px;
  left: auto;
  top: -3px;
  bottom: auto;
  transition: left .28s ease, right .28s ease, top .28s ease, bottom .28s ease,
              background .28s ease;
}

/* Al pasar el mouse o seleccionar, el palito baja y queda vertical */
.country:hover .connector-side,
.country:hover .connector-bottom,
.country.selected .connector-side,
.country.selected .connector-bottom {
  width: 2px;
  height: 20px;
  left: 50%;
  right: auto;
  top: auto;
  bottom: 3px;
  transform: translateX(-50%);
  background: var(--gold);
}

.country:hover .connector-side::after,
.country:hover .connector-bottom::after,
.country.selected .connector-side::after,
.country.selected .connector-bottom::after {
  left: -3px;
  right: auto;
  top: auto;
  bottom: -4px;
  background: var(--gold);
}

.country.selected .country-name {
  color: var(--gold);
}

.detail-flag {
  border-radius: 10px;
}

.detail-flag::after,
.detail-flag .country-flag-img-detail {
  border-radius: 8px;
}

.detail-flag .country-flag-img-detail {
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-color: #fff;
}

@media (max-width: 760px) {
  .flag-wrap {
    width: 86px;
    height: 108px;
  }

  .flag {
    width: 84px;
    height: 84px;
  }

  .connector-side,
  .connector-bottom {
    top: 42px;
  }
}


/* ============================================================
   GALERÍA CON TARJETAS COMPLETAMENTE CLICABLES
   ============================================================ */
.country-gallery-card {
  display: block;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.country-gallery-link {
  cursor: pointer;
}

.country-gallery-link:hover,
.country-gallery-link:focus-visible {
  transform: translateY(-3px);
  border-color: var(--gold-light);
  box-shadow: 0 10px 22px rgba(38, 49, 74, .12);
  outline: none;
}

.country-gallery-icon {
  min-height: 132px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f2ede3, #eef1f6);
  color: var(--gold);
}

.country-gallery-icon svg {
  width: 38px;
  height: 38px;
}

.country-gallery-content {
  padding: 14px;
}

.country-gallery-content strong,
.country-gallery-content span,
.country-gallery-content small {
  display: block;
}

.country-gallery-content strong {
  color: var(--navy);
  font-size: 13px;
  margin-bottom: 6px;
}

.country-gallery-content span {
  color: #6f7788;
  font-size: 12px;
  line-height: 1.55;
}

.country-gallery-content small {
  margin-top: 10px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ============================================================
   REDES SOCIALES Y CARRUSEL DE COLABORADORES
   ============================================================ */
.social-list {
  min-height: 118px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 38px;
}

.social-list .social {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255,255,255,.24);
  background: rgba(255,255,255,.10);
  color: #fff;
  text-decoration: none;
  font-size: 25px;
  font-weight: 600;
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}

.social-list .social:hover,
.social-list .social:focus-visible {
  transform: translateY(-5px) scale(1.05);
  background: rgba(255,255,255,.20);
  border-color: rgba(255,255,255,.65);
  outline: none;
}

.collaborators {
  min-height: 390px;
  padding: 46px 0 54px;
  background: #f7f7f8;
  overflow: hidden;
}

.collaborators h3 {
  margin: 0 0 34px;
  color: var(--navy);
  font-size: 31px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.collaborators-carousel {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 18px;
}

.collaborators-viewport {
  position: relative;
  min-height: 215px;
  overflow: hidden;
}

.collaborators-track {
  position: relative;
  min-height: 215px;
}

.collaborator-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(45px) scale(.98);
  transition: opacity .55s ease, transform .55s ease, visibility .55s;
  pointer-events: none;
}

.collaborator-slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.collaborator-card {
  min-height: 215px;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  padding: 28px 58px;
  border: 1px solid #e1e4ea;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--card-shadow);
  color: inherit;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
}

.collaborator-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(38,49,74,.16);
}

.collaborator-flag {
  width: 180px;
  height: 120px;
  display: block;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(38,49,74,.16);
}

.collaborator-copy {
  min-width: 0;
}

.collaborator-label {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.collaborator-copy h4 {
  margin: 0 0 9px;
  color: var(--navy);
  font-size: clamp(27px, 4vw, 43px);
  line-height: 1.1;
}

.collaborator-copy p {
  margin: 0 0 18px;
  color: #687285;
  font-size: 14px;
  line-height: 1.7;
}

.collaborator-link {
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.carousel-control {
  width: 48px;
  height: 48px;
  border: 1px solid #d9dde5;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.carousel-control:hover,
.carousel-control:focus-visible {
  background: var(--navy);
  color: #fff;
  transform: scale(1.06);
  outline: none;
}

.collaborators-dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.collaborator-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #c6cad3;
  cursor: pointer;
  transition: width .25s ease, background .25s ease;
}

.collaborator-dot.active {
  width: 28px;
  background: var(--gold);
}

@media (max-width: 760px) {
  .social-list { gap: 18px; min-height: 96px; }
  .social-list .social { width: 52px; height: 52px; font-size: 21px; }
  .collaborators h3 { font-size: 23px; letter-spacing: .14em; }
  .collaborators-carousel { grid-template-columns: 38px minmax(0, 1fr) 38px; gap: 8px; }
  .carousel-control { width: 38px; height: 38px; font-size: 27px; }
  .collaborators-viewport,
  .collaborators-track { min-height: 350px; }
  .collaborator-card {
    min-height: 350px;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 20px;
    padding: 28px 22px;
    text-align: center;
  }
  .collaborator-flag { width: 150px; height: 100px; }
}

@media (prefers-reduced-motion: reduce) {
  .collaborator-slide,
  .social-list .social,
  .collaborator-card,
  .carousel-control { transition: none; }
}

/* Normativa general del país, ubicada después del sistema catastral */
.country-general-norms {
  margin: 0;
}

.country-general-norms .norm-general-card {
  width: 100%;
}
.norm-files {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.norm-file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}

.norm-link {
  display: flex;
  flex-direction: column;
}
/* ============================================================
   BANNER AUTOMÁTICO DE ANUNCIOS
============================================================ */

.announcement {
  padding-top: 34px;
  padding-bottom: 34px;
}

.announcement-banner {
  position: relative;
  width: 100%;
  height: clamp(320px, 35vw, 520px);
  overflow: hidden;
  border-radius: 4px;
  background: #e5e7eb;
  box-shadow: 0 10px 28px rgba(38, 49, 74, 0.10);
}

.announcement-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.announcement-slide {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  transition:
    opacity 0.8s ease,
    visibility 0.8s ease,
    transform 5s ease;
  text-decoration: none;
  color: inherit;
  pointer-events: none;
}

.announcement-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  pointer-events: auto;
  z-index: 2;
}

.announcement-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

/* Degradado blanco parecido al diseño actual */
/* .announcement-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      1deg,
      rgba(243, 243, 243, 1) 0%,
      rgba(243, 243, 243, 0.98) 25%,
      rgba(243, 243, 243, 0.80) 43%,
      rgba(243, 243, 243, 0.18) 68%,
      rgba(243, 243, 243, 0) 100%
    );
} */

.announcement-slide-content {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: clamp(28px, 5vw, 70px);
  width: min(600px, 55%);
  transform: translateY(-50%);
}

.announcement-slide-content h2 {
  margin: 0;
  color: var(--gold);
  font-size: clamp(44px, 6vw, 86px);
  font-weight: 400;
  font-style: italic;
  line-height: 1;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.announcement-slide-content p {
  margin: 24px 0 0;
  color: var(--gold-light);
  font-size: clamp(17px, 2vw, 30px);
  font-weight: 300;
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-transform: uppercase;
}

/* Flechas */
.announcement-control {
  position: absolute;
  z-index: 5;
  top: 50%;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: rgba(47, 60, 89, 0.50);
  color: #ffffff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.announcement-control:hover {
  background: var(--gold);
  transform: translateY(-50%) scale(1.08);
}

.announcement-control-previous {
  left: 18px;
}

.announcement-control-next {
  right: 18px;
}

/* Puntos inferiores */
.announcement-dots {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transform: translateX(-50%);
}

.announcement-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  transition:
    width 0.25s ease,
    border-radius 0.25s ease,
    background 0.25s ease;
}

.announcement-dot.active {
  width: 27px;
  border-radius: 999px;
  background: var(--gold);
}

/* Pausar visualmente al pasar el mouse */
.announcement-banner:hover .announcement-control {
  opacity: 1;
}

/* Adaptación para celulares */
@media (max-width: 700px) {
  .announcement {
    padding-top: 20px;
  }

  .announcement-banner {
    height: 370px;
  }

  .announcement-slide img {
    object-position: 65% center;
  }

  /* .announcement-overlay {
    background:
      linear-gradient(
        1deg,
        rgba(243, 243, 243, 0.98) 0%,
        rgba(243, 243, 243, 0.88) 45%,
        rgba(243, 243, 243, 0.30) 100%
      );
  } */

  .announcement-slide-content {
    left: 28px;
    width: calc(100% - 70px);
  }

  .announcement-slide-content h2 {
    font-size: 42px;
  }

  .announcement-slide-content p {
    max-width: 280px;
    font-size: 17px;
  }

  .announcement-control {
    width: 38px;
    height: 38px;
  }

  .announcement-control-previous {
    left: 8px;
  }

  .announcement-control-next {
    right: 8px;
  }
}
/* ============================================================
   ÍCONO DEL ENCABEZADO
============================================================ */

.hero-brand-layout {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 48px);
}

.hero-logo {
  flex: 0 0 auto;
  width: clamp(115px, 12vw, 190px);
  height: clamp(145px, 15vw, 220px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.hero-brand-layout .brand {
  flex: 1;
  max-width: 800px;
}

/* Adaptación para tabletas */
@media (max-width: 900px) {
  .hero-logo {
    width: 120px;
    height: 155px;
  }

  .hero-brand-layout {
    gap: 24px;
  }
}

/* Adaptación para celulares */
@media (max-width: 650px) {
  .hero-inner {
    padding: 48px 0 42px;
  }

  .hero-brand-layout {
    align-items: center;
    gap: 15px;
  }

  .hero-logo {
    width: 75px;
    height: 115px;
  }

  .brand-title {
    font-size: clamp(25px, 2vw, 40px);
    letter-spacing: 0.07em;
  }

  .brand-title strong {
    letter-spacing: 0.06em;
  }

  .brand-subtitle {
    margin-top: 12px;
    font-size: 8px;
    line-height: 1.5;
  }
}
.search-result-card {
  cursor: pointer;
}

.search-result-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(38, 49, 74, 0.14);
}

/* ============================================================
   RESPONSIVE FINAL
   Conserva escritorio original y ajusta móvil/tablet
============================================================ */

/* No romper palabras del encabezado */
.brand-title {
  overflow-wrap: normal;
  word-break: normal;
}

.brand-title strong {
  display: block;
  white-space: nowrap;
}


/* ============================================================
   ESCRITORIO
   Se conserva el diseño original
============================================================ */

@media (min-width: 981px) {

  .container {
    width: min(1180px, calc(100% - 48px));
    margin-left: auto;
    margin-right: auto;
  }

  .hero-inner {
    padding: 82px 0 60px;
  }

  .hero-brand-layout {
    display: flex;
    align-items: center;
    gap: clamp(22px, 3vw, 48px);
  }

  .hero-logo {
    width: clamp(115px, 12vw, 190px);
    height: clamp(145px, 15vw, 220px);
  }

  .brand-title {
    font-size: clamp(34px, 4vw, 60px);
    line-height: .95;
    letter-spacing: .12em;
  }

  .brand-title strong {
    font-size: 1em;
    letter-spacing: .12em;
  }

  .announcement-banner {
    height: clamp(320px, 35vw, 520px);
  }

  .announcement-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }
}


/* ============================================================
   TABLET
============================================================ */

@media (max-width: 980px) {

  .container {
    width: calc(100% - 32px);
  }

  .hero-inner {
    padding: 50px 0 42px;
  }

  .hero-brand-layout {
    display: flex;
    align-items: center;
    gap: 22px;
  }

  .hero-logo {
    width: 105px;
    height: 135px;
    flex-shrink: 0;
  }

  .brand-title {
    font-size: clamp(29px, 5vw, 42px);
    letter-spacing: .06em;
  }

  .brand-title strong {
    white-space: nowrap;
    letter-spacing: .04em;
  }

  .announcement-banner {
    height: auto;
    aspect-ratio: 16 / 7;
  }

  .announcement-slide img {
    object-fit: contain;
    object-position: center;
  }

  .countries-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* ============================================================
   CELULAR
============================================================ */

@media (max-width: 700px) {

  .container {
    width: calc(100% - 24px);
  }

  .hero-inner {
    padding: 34px 0;
  }

  .hero-brand-layout {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
  }

  .hero-logo {
    width: 78px;
    height: 100px;
  }

  .brand-title {
    font-size: clamp(21px, 6vw, 30px);
    line-height: 1;
    letter-spacing: .025em;
  }

  .brand-title strong {
    display: block;
    white-space: nowrap;
    font-size: .90em;
    letter-spacing: 0;
  }

  .brand-subtitle {
    margin-top: 10px;
    font-size: 7px;
    line-height: 1.5;
    letter-spacing: .07em;
  }

  .nav-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 18px 0;
  }

  .menu {
    justify-content: center;
    gap: 16px 20px;
  }

  .search {
    width: 100%;
  }

  .announcement {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .announcement-banner {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .announcement-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }

  .countries-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ============================================================
   CELULAR PEQUEÑO
============================================================ */

@media (max-width: 420px) {

  .hero-brand-layout {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 10px;
  }

  .hero-logo {
    width: 60px;
    height: 82px;
  }

  .brand-title {
    font-size: clamp(18px, 6vw, 24px);
  }

  .brand-title strong {
    font-size: .88em;
  }

  .brand-subtitle {
    font-size: 6px;
  }

  .menu {
    gap: 13px 15px;
  }

  .menu button,
  .menu a {
    font-size: 8.5px;
  }
}
/* ============================================================
   AJUSTE SOLO PARA PANTALLAS PEQUEÑAS
   NO MODIFICA TABLET NI COMPUTADORA
============================================================ */

@media screen and (max-width: 600px) {

  /* ==========================================================
     GENERAL
  ========================================================== */

  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .container {
    width: calc(100% - 28px) !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }


  /* ==========================================================
     ENCABEZADO
  ========================================================== */

  .hero-inner {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 30px 0 !important;
  }

  .hero-brand-layout {
    width: 100% !important;

    display: flex !important;
    justify-content: center !important;
    align-items: center !important;

    gap: 12px !important;

    margin-left: auto !important;
    margin-right: auto !important;
  }

  .hero-logo {
    flex: 0 0 65px !important;

    width: 65px !important;
    height: 90px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .hero-logo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }

  .hero-brand-layout .brand {
    flex: 0 1 auto !important;
    width: auto !important;
    max-width: calc(100% - 80px) !important;

    text-align: left !important;
  }

  .brand-title {
    margin: 0 !important;

    font-size: clamp(20px, 6vw, 28px) !important;
    line-height: 1 !important;

    letter-spacing: .02em !important;

    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  .brand-title strong {
    display: block !important;

    white-space: nowrap !important;

    font-size: .88em !important;
    letter-spacing: 0 !important;
  }

  .brand-subtitle {
    max-width: 100% !important;

    margin-top: 10px !important;

    font-size: 6.5px !important;
    line-height: 1.5 !important;

    letter-spacing: .06em !important;

    text-align: left !important;
  }


  /* ==========================================================
     MENÚ
  ========================================================== */

  .nav-inner {
    display: flex !important;
    flex-direction: column !important;

    justify-content: center !important;
    align-items: center !important;

    gap: 18px !important;

    padding: 17px 0 20px !important;
  }

  .menu {
    width: 100% !important;

    display: flex !important;
    justify-content: center !important;
    align-items: center !important;

    flex-wrap: wrap !important;

    gap: 14px 18px !important;

    margin: 0 auto !important;
  }

  .menu button,
  .menu a {
    margin: 0 !important;

    font-size: 9px !important;
    letter-spacing: .12em !important;

    text-align: center !important;
  }


  /* ==========================================================
     BUSCADOR
  ========================================================== */

  .search {
    width: 100% !important;
    max-width: 100% !important;

    margin: 0 auto !important;
  }

  .search input {
    width: 100% !important;
    box-sizing: border-box !important;
  }


  /* ==========================================================
     BANNER
  ========================================================== */

  .announcement {
    width: 100% !important;

    padding: 20px 0 28px !important;

    display: flex !important;
    justify-content: center !important;
  }

  .announcement-banner {
    width: 100% !important;

    height: auto !important;
    aspect-ratio: 16 / 10 !important;

    margin: 0 auto !important;

    overflow: hidden !important;
  }

  .announcement-track,
  .announcement-slide {
    width: 100% !important;
    height: 100% !important;
  }

  .announcement-slide img {
    width: 100% !important;
    height: 100% !important;

    object-fit: contain !important;
    object-position: center center !important;
  }

  .announcement-control {
    top: 50% !important;

    width: 34px !important;
    height: 34px !important;

    transform: translateY(-50%) !important;
  }

  .announcement-control-previous {
    left: 8px !important;
  }

  .announcement-control-next {
    right: 8px !important;
  }

  .announcement-dots {
    left: 50% !important;
    bottom: 10px !important;

    transform: translateX(-50%) !important;
  }


  /* ==========================================================
     TÍTULOS DE SECCIONES
  ========================================================== */

  .section-title {
    width: 100% !important;

    margin-left: auto !important;
    margin-right: auto !important;

    text-align: center !important;
  }

  .section-kicker,
  .section-subtitle {
    text-align: center !important;
  }


  /* ==========================================================
     PAÍSES
  ========================================================== */

  #paises {
    width: 100% !important;
    text-align: center !important;
  }

  .countries-grid {
    width: 100% !important;

    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;

    justify-content: center !important;
    align-items: start !important;

    gap: 30px 12px !important;

    margin-left: auto !important;
    margin-right: auto !important;
  }

  .country {
    width: 100% !important;

    display: flex !important;
    flex-direction: column !important;

    justify-content: center !important;
    align-items: center !important;

    margin: 0 auto !important;

    text-align: center !important;
  }

  .flag-wrap {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .country-name,
  .country-city {
    width: 100% !important;
    text-align: center !important;
  }


  /* ==========================================================
     ESTADOS
  ========================================================== */

  .states-grid {
    width: 100% !important;

    grid-template-columns: 1fr !important;

    margin-left: auto !important;
    margin-right: auto !important;
  }

  .state-card {
    width: 100% !important;
    box-sizing: border-box !important;

    margin-left: auto !important;
    margin-right: auto !important;
  }


  /* ==========================================================
     MUNICIPIOS
  ========================================================== */

  .municipality-grid {
    width: 100% !important;

    grid-template-columns: 1fr !important;

    margin-left: auto !important;
    margin-right: auto !important;
  }

  .municipality-card {
    width: 100% !important;
    box-sizing: border-box !important;

    margin-left: auto !important;
    margin-right: auto !important;
  }


  /* ==========================================================
     NORMATIVAS
  ========================================================== */

  .norm-grid,
  .norm-grid-general {
    width: 100% !important;

    grid-template-columns: 1fr !important;

    margin-left: auto !important;
    margin-right: auto !important;
  }

  .norm-link {
    width: 100% !important;
    box-sizing: border-box !important;
  }


  /* ==========================================================
     DOCUMENTOS
  ========================================================== */

  .docs {
    width: 100% !important;

    margin-left: auto !important;
    margin-right: auto !important;
  }

  .doc {
    width: 100% !important;
    box-sizing: border-box !important;
  }


  /* ==========================================================
     DETALLE DEL PAÍS / ESTADO
  ========================================================== */

  .detail-card,
  .state-detail-card,
  .municipal-detail-card {
    width: 100% !important;

    margin-left: auto !important;
    margin-right: auto !important;

    box-sizing: border-box !important;
  }


  /* ==========================================================
     DOCUMENTOS / ACTIVIDADES / COLABORADORES
  ========================================================== */

  .accordion,
  .activity-section,
  .collaborators-section {
    width: 100% !important;

    margin-left: auto !important;
    margin-right: auto !important;
  }


  /* ==========================================================
     MAPA
  ========================================================== */

  #map,
  .map-container {
    width: 100% !important;

    margin-left: auto !important;
    margin-right: auto !important;
  }


  /* ==========================================================
     FOOTER
  ========================================================== */

  footer,
  .footer-inner {
    width: 100% !important;

    text-align: center !important;
  }

}
/* ============================================================
   IMÁGENES RESPONSIVE SOLO EN ACTIVIDADES
============================================================ */

#agendas .activity-card {
  display: block;
  width: 100%;
}

#agendas .activity-image-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#agendas .activity-image {
  display: block;
  width: 100%;
  max-width: 350px;
  height: auto;
  object-fit: contain;
}


/* SOLO PANTALLAS PEQUEÑAS */
@media (max-width: 600px) {

  #agendas .activities-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  #agendas .activity-card {
    width: 100%;
  }

  #agendas .activity-image-wrap {
    width: 100%;
  }

  #agendas .activity-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
  }

}
/* =========================================================
   INSTITUCIONES CATASTRALES Y REGISTRALES
   ========================================================= */

.state-institutions-section {
  margin-top: 34px;
  margin-bottom: 38px;
}

.state-institutions-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.state-institutions-line {
  width: 4px;
  height: 46px;
  background: var(--gold);
  border-radius: 20px;
  flex-shrink: 0;
}

.state-institutions-small-title {
  display: block;
  margin-bottom: 4px;

  font-size: 10px;
  font-weight: 700;

  letter-spacing: .16em;
  text-transform: uppercase;

  color: #94a3b8;
}

.state-institutions-heading h3 {
  margin: 0;

  font-size: 21px;
  font-weight: 700;

  color: var(--navy);
}


/* GRID */

.state-institutions-grid {
  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(280px, 1fr));

  gap: 16px;
}


/* TARJETA */

.state-institution-card {
  display: flex;
  align-items: flex-start;

  gap: 16px;

  padding: 20px;

  background: #ffffff;

  border: 1px solid #e5e7eb;
  border-radius: 16px;

  text-decoration: none;

  box-shadow:
    0 5px 18px rgba(38, 49, 74, .06);

  transition:
    transform .25s ease,
    box-shadow .25s ease,
    border-color .25s ease;
}


/* HOVER */

.state-institution-card:hover {
  transform: translateY(-4px);

  border-color: var(--gold);

  box-shadow:
    0 12px 30px rgba(38, 49, 74, .13);
}


/* ICONO */

.state-institution-icon {
  width: 48px;
  height: 48px;

  min-width: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #f5f1e8;

  border-radius: 14px;

  font-size: 22px;
}


/* CONTENIDO */

.state-institution-content {
  flex: 1;
}

.state-institution-label {
  display: inline-block;

  margin-bottom: 6px;

  font-size: 10px;
  font-weight: 800;

  letter-spacing: .14em;

  color: var(--gold);

  text-transform: uppercase;
}

.state-institution-content h4 {
  margin: 0 0 8px;

  color: var(--navy);

  font-size: 15px;
  line-height: 1.4;
}

.state-institution-content p {
  margin: 0 0 12px;

  color: #64748b;

  font-size: 12px;
  line-height: 1.65;
}

.state-institution-link {
  font-size: 11px;
  font-weight: 700;

  color: #387ece;

  transition: color .2s ease;
}

.state-institution-card:hover
.state-institution-link {
  color: var(--gold);
}


/* SIN INFORMACIÓN */

.state-institutions-empty {
  padding: 18px 20px;

  background: #f8fafc;

  border: 1px dashed #cbd5e1;
  border-radius: 14px;

  color: #64748b;

  font-size: 13px;
}


/* RESPONSIVE */

@media (max-width: 650px) {

  .state-institutions-grid {
    grid-template-columns: 1fr;
  }

  .state-institution-card {
    padding: 16px;
  }

  .state-institutions-heading h3 {
    font-size: 18px;
  }

}