:root {
      --azul: #0072bc;
      --azul2: #0d8fd3;
      --azulOsc: #082946;
      --verde: #72c943;
      --verde2: #a8df57;
      --naranja: #f59b12;
      --celeste: #eef8ff;
      --gris: #f5f8fc;
      --borde: #dfe8f2;
      --texto: #16243b;
      --muted: #657487;
      --shadow: 0 14px 34px rgba(10, 35, 70, 0.10);
      --shadow2: 0 8px 20px rgba(10, 35, 70, 0.075);
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: "Inter", sans-serif;
      color: var(--texto);
      background: #ffffff;
      overflow-x: hidden;
    }

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

    img {
      display: block;
      max-width: 100%;
    }

    button,
    input {
      font-family: inherit;
    }

    .container {
      width: min(1180px, 92%);
      margin: auto;
    }

    /* BARRAS SUPERIORES */
    .top-strip {
      background: linear-gradient(90deg, #128fd0, #68bf42);
      color: white;
      font-size: 10.5px;
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: 0.35px;
      overflow: hidden;
    }

    .top-strip .container {
      height: 22px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 28px;
      white-space: nowrap;
    }

    .topbar {
      background: #062743;
      color: white;
      font-size: 13px;
      font-weight: 700;
    }

    .topbar .container {
      min-height: 42px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      flex-wrap: wrap;
    }

    .top-info,
    .top-social {
      display: flex;
      align-items: center;
      gap: 18px;
      flex-wrap: wrap;
    }

    .topbar span {
      display: inline-flex;
      align-items: center;
      gap: 7px;
    }

    .top-social a {
      width: 29px;
      height: 29px;
      border: 1px solid rgba(255, 255, 255, 0.22);
      border-radius: 50%;
      display: grid;
      place-items: center;
      transition: 0.2s ease;
    }

    .top-social a:hover {
      background: rgba(255, 255, 255, 0.12);
    }

    /* HEADER BLANCO */
    .header {
      background: #ffffff;
      position: sticky;
      top: 0;
      z-index: 1000;
      box-shadow: 0 6px 22px rgba(12, 35, 70, 0.08);
      border-bottom: 1px solid rgba(223, 232, 242, 0.95);
    }

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

    .brand {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-shrink: 0;
    }

    .brand img {
      width: 64px;
      height: auto;
    }

    .brand strong {
      display: block;
      color: #173a5f;
      font-size: 15px;
      line-height: 1.05;
      font-weight: 900;
    }

    .brand small {
      display: block;
      color: #50708f;
      font-size: 10px;
      line-height: 1;
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: 0.4px;
    }

    .menu {
      display: flex;
      align-items: center;
      gap: 20px;
      color: #243a59;
      margin-left: auto;
    }

    .nav-item {
      position: relative;
    }

    .nav-link {
      border: 0;
      background: transparent;
      color: inherit;
      font-weight: 800;
      font-size: 14px;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      cursor: pointer;
      padding: 22px 0;
      position: relative;
      line-height: 1;
    }

    .nav-link:hover,
    .nav-link.active {
      color: var(--azul);
    }

    .nav-link.active::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: 11px;
      width: 100%;
      height: 4px;
      border-radius: 6px;
      background: linear-gradient(90deg, var(--azul), var(--verde), var(--naranja));
    }

    .dropdown {
      position: absolute;
      top: 100%;
      left: 50%;
      transform: translateX(-50%) translateY(10px);
      width: 410px;
      background: white;
      border: 1px solid var(--borde);
      border-radius: 18px;
      box-shadow: var(--shadow);
      padding: 12px;
      opacity: 0;
      pointer-events: none;
      transition: 0.18s ease;
      z-index: 1002;
    }

    .nav-item:hover .dropdown,
    .nav-item.open .dropdown {
      opacity: 1;
      pointer-events: auto;
      transform: translateX(-50%) translateY(0);
    }

    .dropdown-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
    }

    .drop-btn {
      border: 1px solid var(--borde);
      background: #fff;
      border-radius: 13px;
      padding: 12px;
      text-align: left;
      cursor: pointer;
      display: flex;
      gap: 10px;
      align-items: flex-start;
      transition: 0.2s ease;
    }

    .drop-btn:hover {
      background: var(--celeste);
      transform: translateY(-2px);
    }

    .drop-btn i {
      width: 33px;
      height: 33px;
      border-radius: 10px;
      display: grid;
      place-items: center;
      color: white;
      flex: 0 0 33px;
      background: linear-gradient(135deg, var(--azul), var(--azul2));
    }

    .drop-btn b {
      display: block;
      color: #173350;
      font-size: 13px;
      margin-bottom: 3px;
      font-weight: 900;
    }

    .drop-btn small {
      display: block;
      color: var(--muted);
      font-size: 11px;
      line-height: 1.25;
    }

    .header-actions {
      display: flex;
      align-items: center;
      gap: 9px;
      flex-shrink: 0;
    }

    .search-btn,
    .back-site-btn {
      height: 39px;
      border-radius: 10px;
      padding: 0 14px;
      border: 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      font-size: 13px;
      font-weight: 900;
      cursor: pointer;
    }

    .search-btn {
      background: white;
      color: var(--azul);
      border: 1px solid #cfe0ef;
    }

    .back-site-btn {
      background: linear-gradient(135deg, var(--azul), var(--azul2));
      color: white;
      box-shadow: 0 10px 20px rgba(0, 114, 188, 0.18);
    }

    .hamb {
      display: none;
      width: 42px;
      height: 42px;
      border: 0;
      border-radius: 10px;
      background: var(--azul);
      color: white;
      font-size: 24px;
      cursor: pointer;
    }

    /* BUSCADOR GLOBAL */
    .search-panel {
      position: fixed;
      inset: 0;
      background: rgba(5, 20, 38, 0.62);
      z-index: 3500;
      display: none;
      align-items: flex-start;
      justify-content: center;
      padding: 88px 20px 20px;
    }

    .search-panel.show {
      display: flex;
    }

    .search-box {
      width: min(900px, 100%);
      background: white;
      border-radius: 22px;
      box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
      overflow: hidden;
    }

    .search-head {
      padding: 18px;
      border-bottom: 1px solid var(--borde);
      display: flex;
      gap: 12px;
      align-items: center;
    }

    .search-head input {
      flex: 1;
      height: 48px;
      border: 1px solid var(--borde);
      border-radius: 12px;
      padding: 0 15px;
      outline: none;
      font-size: 15px;
      font-weight: 600;
    }

    .close-search {
      width: 45px;
      height: 45px;
      border: 0;
      border-radius: 50%;
      background: var(--azul);
      color: white;
      cursor: pointer;
      font-size: 21px;
      display: grid;
      place-items: center;
    }

    .search-results {
      padding: 16px;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
      max-height: 420px;
      overflow: auto;
    }

    .search-result {
      border: 1px solid var(--borde);
      border-radius: 14px;
      background: #fff;
      padding: 13px;
      cursor: pointer;
      display: flex;
      gap: 10px;
      text-align: left;
      align-items: flex-start;
    }

    .search-result:hover {
      background: var(--celeste);
    }

    .search-result i {
      width: 34px;
      height: 34px;
      border-radius: 10px;
      color: white;
      background: linear-gradient(135deg, var(--azul), var(--azul2));
      display: grid;
      place-items: center;
      flex: 0 0 34px;
    }

    .search-result b {
      display: block;
      font-size: 13px;
      margin-bottom: 3px;
      color: #173350;
    }

    .search-result small {
      color: var(--muted);
      font-size: 11px;
      line-height: 1.3;
      display: block;
    }

    /* PORTADA SIN FOTO */
    .trans-hero {
      position: relative;
      overflow: hidden;
      background:
        radial-gradient(circle at 87% 5%, rgba(255, 255, 255, 0.24) 0 110px, transparent 112px),
        radial-gradient(circle at 96% 92%, rgba(114, 201, 67, 0.42) 0 230px, transparent 232px),
        linear-gradient(135deg, #074b78 0%, #0072bc 52%, #72c943 100%);
      color: white;
      padding: 58px 0 44px;
    }

    .trans-hero::before {
      content: "";
      position: absolute;
      right: -110px;
      bottom: -160px;
      width: 430px;
      height: 430px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.10);
      pointer-events: none;
    }

    .trans-hero-grid {
      position: relative;
      z-index: 2;
      display: grid;
      grid-template-columns: 1.05fr 0.95fr;
      gap: 46px;
      align-items: start;
    }

    .trans-crumb {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 9px 14px;
      border-radius: 999px;
      border: 1px solid rgba(255, 255, 255, 0.34);
      background: rgba(255, 255, 255, 0.13);
      color: white;
      font-size: 12px;
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: 0.35px;
      margin-bottom: 17px;
    }

    .trans-hero h1 {
      font-size: clamp(42px, 6vw, 78px);
      line-height: 0.92;
      letter-spacing: -2.8px;
      font-weight: 900;
      max-width: 640px;
      margin-bottom: 18px;
    }

    .trans-hero h1 span {
      display: block;
      color: #c7f36b;
    }

    .trans-hero p {
      max-width: 650px;
      color: #f3f8ff;
      font-size: 17px;
      line-height: 1.52;
      font-weight: 750;
      margin-bottom: 22px;
    }

    .trans-hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }

    .btn {
      border: 0;
      border-radius: 11px;
      min-height: 43px;
      padding: 0 18px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      font-size: 14px;
      font-weight: 900;
      cursor: pointer;
      transition: 0.2s ease;
      line-height: 1.1;
    }

    .btn:hover {
      transform: translateY(-2px);
    }

    .btn-green {
      background: linear-gradient(135deg, var(--verde), var(--verde2));
      color: white;
    }

    .btn-blue {
      background: linear-gradient(135deg, var(--azul), var(--azul2));
      color: white;
    }

    .btn-orange {
      background: linear-gradient(135deg, var(--naranja), #ffb427);
      color: white;
    }

    .btn-white {
      background: white;
      color: var(--azul);
    }

    .quick-panel {
      margin-top: 22px;
      align-self: end;
      background: rgba(255, 255, 255, 0.16);
      border: 1px solid rgba(255, 255, 255, 0.30);
      border-radius: 24px;
      padding: 20px;
      box-shadow: 0 24px 60px rgba(7, 30, 58, 0.22);
      backdrop-filter: blur(5px);
    }

    .quick-panel h2 {
      font-size: 22px;
      line-height: 1;
      font-weight: 900;
      margin-bottom: 14px;
    }

    .quick-list {
      display: grid;
      gap: 11px;
    }

    .quick-list a {
      min-height: 54px;
      border-radius: 14px;
      padding: 10px 13px;
      display: flex;
      align-items: center;
      gap: 12px;
      color: white;
      font-size: 13px;
      font-weight: 900;
      background: rgba(255, 255, 255, 0.14);
      border: 1px solid rgba(255, 255, 255, 0.20);
      transition: 0.2s ease;
    }

    .quick-list a:hover {
      background: rgba(255, 255, 255, 0.22);
      transform: translateX(3px);
    }

    .quick-list i {
      width: 32px;
      height: 32px;
      border-radius: 10px;
      display: grid;
      place-items: center;
      background: rgba(255, 255, 255, 0.18);
      flex: 0 0 32px;
    }

    /* BUSCADOR INTERNO */
    .trans-search-section {
      padding: 24px 0 10px;
    }

    .trans-search-wrap {
      display: grid;
      grid-template-columns: 1fr 108px;
      gap: 10px;
      background: white;
      border: 1px solid var(--borde);
      border-radius: 18px;
      padding: 12px;
      box-shadow: var(--shadow2);
    }

    .trans-search-wrap input {
      height: 44px;
      border: 1px solid #d7e4f1;
      border-radius: 12px;
      padding: 0 15px;
      outline: none;
      font-size: 14px;
      font-weight: 750;
      color: var(--texto);
    }

    .trans-search-wrap input:focus {
      border-color: var(--azul);
      box-shadow: 0 0 0 4px rgba(0, 114, 188, 0.08);
    }

    .trans-search-wrap button {
      border: 0;
      border-radius: 12px;
      background: linear-gradient(135deg, var(--azul), var(--azul2));
      color: white;
      font-weight: 900;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
    }

    /* CONTENIDO */
    .content-layout {
      display: grid;
      grid-template-columns: 270px 1fr;
      gap: 18px;
      align-items: start;
      padding: 14px 0 28px;
    }

    .side-card {
      position: sticky;
      top: 88px;
      background: #ffffff;
      border: 1px solid var(--borde);
      border-radius: 18px;
      box-shadow: var(--shadow2);
      padding: 16px;
    }

    .side-card h3 {
      font-size: 16px;
      color: #173350;
      margin-bottom: 12px;
      font-weight: 900;
    }

    .side-nav {
      display: grid;
      gap: 5px;
    }

    .side-nav a {
      display: flex;
      align-items: center;
      gap: 9px;
      color: #31445f;
      font-size: 13px;
      font-weight: 900;
      padding: 10px 10px;
      border-radius: 12px;
      transition: 0.2s ease;
    }

    .side-nav a:hover {
      background: var(--celeste);
      color: var(--azul);
    }

    .trans-content {
      display: grid;
      gap: 14px;
    }

    .section-card {
      background: #ffffff;
      border: 1px solid var(--borde);
      border-radius: 20px;
      box-shadow: var(--shadow2);
      padding: 18px;
      display: grid;
      grid-template-columns: 62px 1fr auto;
      gap: 16px;
      align-items: center;
      min-height: 138px;
      scroll-margin-top: 98px;
    }

    .section-card:hover {
      box-shadow: var(--shadow);
    }

    .section-icon {
      width: 62px;
      height: 62px;
      border-radius: 18px;
      color: white;
      display: grid;
      place-items: center;
      font-size: 27px;
      box-shadow: 0 10px 22px rgba(0, 114, 188, 0.14);
    }

    .section-card.blue .section-icon {
      background: linear-gradient(135deg, var(--azul), var(--azul2));
    }

    .section-card.green .section-icon {
      background: linear-gradient(135deg, var(--verde), var(--verde2));
    }

    .section-card.orange .section-icon {
      background: linear-gradient(135deg, var(--naranja), #ffb427);
    }

    .section-card.dark .section-icon {
      background: linear-gradient(135deg, var(--azulOsc), #1c4b76);
    }

    .section-card h2 {
      font-size: 23px;
      color: #122b49;
      font-weight: 900;
      line-height: 1.1;
      margin-bottom: 6px;
      letter-spacing: -0.6px;
    }

    .section-card p {
      color: #657487;
      font-size: 14px;
      line-height: 1.48;
      font-weight: 650;
      max-width: 710px;
    }

    .includes {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-top: 10px;
    }

    .includes span {
      border: 1px solid #d7e4f1;
      background: #fbfdff;
      color: #334a66;
      border-radius: 999px;
      padding: 6px 10px;
      font-size: 11px;
      font-weight: 900;
    }

    .card-actions {
      display: flex;
      flex-direction: column;
      gap: 8px;
      min-width: 150px;
    }

    .small-btn {
      min-height: 40px;
      border: 0;
      border-radius: 12px;
      background: linear-gradient(135deg, var(--azul), var(--azul2));
      color: white;
      font-size: 13px;
      font-weight: 900;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
      padding: 0 14px;
      cursor: pointer;
      transition: 0.2s ease;
      text-align: center;
    }

    .small-btn:hover {
      transform: translateY(-2px);
    }

    .small-btn.pdf {
      background: #fff;
      color: var(--azul);
      border: 1px solid #cfe0ef;
    }

    .small-btn.orange {
      background: linear-gradient(135deg, var(--naranja), #ffb427);
      color: white;
    }

    .small-btn.green {
      background: linear-gradient(135deg, var(--verde), var(--verde2));
      color: white;
    }

    .help-cta {
      margin: 8px 0 4px;
      border-radius: 22px;
      padding: 22px;
      background:
        radial-gradient(circle at 95% 12%, rgba(255,255,255,.35) 0 78px, transparent 80px),
        linear-gradient(135deg, #082946, #0072bc 55%, #72c943);
      color: white;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      box-shadow: var(--shadow);
    }

    .help-cta h2 {
      font-size: 25px;
      line-height: 1.05;
      margin-bottom: 6px;
      font-weight: 900;
    }

    .help-cta p {
      color: #eef8ff;
      font-size: 14px;
      line-height: 1.45;
      font-weight: 700;
      max-width: 720px;
    }

    /* MODAL */
    .modal {
      position: fixed;
      inset: 0;
      background: rgba(6, 19, 36, 0.68);
      display: none;
      align-items: center;
      justify-content: center;
      padding: 20px;
      z-index: 5000;
    }

    .modal.show {
      display: flex;
    }

    .modal-box {
      width: min(780px, 94%);
      max-height: 88vh;
      overflow: hidden;
      background: #ffffff;
      border-radius: 24px;
      box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
      display: grid;
      grid-template-rows: auto 1fr;
    }

    .modal-head {
      background:
        radial-gradient(circle at 93% 5%, rgba(255, 255, 255, 0.22), transparent 24%),
        linear-gradient(135deg, #0b527e 0%, #0072bc 48%, #0d8fd3 100%);
      color: white;
      padding: 20px 22px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }

    .modal-title-wrap {
      display: flex;
      gap: 14px;
      align-items: center;
      min-width: 0;
    }

    .modal-icon {
      width: 58px;
      height: 58px;
      min-width: 58px;
      border-radius: 16px;
      background: #ffffff;
      color: var(--azul);
      display: grid;
      place-items: center;
      font-size: 29px;
      box-shadow: 0 12px 24px rgba(6, 28, 50, 0.18);
    }

    .modal-kicker {
      display: block;
      color: #c7f36b;
      font-size: 11px;
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: 1px;
      margin-bottom: 4px;
    }

    .modal-head h2 {
      font-size: clamp(22px, 3vw, 32px);
      line-height: 1.02;
      letter-spacing: -1px;
      margin-bottom: 5px;
      font-weight: 900;
    }

    .modal-head p {
      color: rgba(255, 255, 255, 0.90);
      font-size: 13.5px;
      line-height: 1.35;
      font-weight: 700;
    }

    .modal-close {
      width: 42px;
      height: 42px;
      min-width: 42px;
      border: 0;
      border-radius: 14px;
      background: rgba(255, 255, 255, 0.16);
      border: 1px solid rgba(255, 255, 255, 0.32);
      color: white;
      font-size: 20px;
      cursor: pointer;
      display: grid;
      place-items: center;
    }

    .modal-body {
      padding: 22px;
      overflow: auto;
      color: #50657a;
    }

    .modal-body p {
      font-size: 15px;
      line-height: 1.65;
      font-weight: 650;
      margin-bottom: 14px;
      color: #50657a;
    }

    .modal-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
      margin: 18px 0;
    }

    .modal-info {
      border: 1px solid var(--borde);
      background: #fbfdff;
      border-radius: 16px;
      padding: 14px;
    }

    .modal-info b {
      display: block;
      color: #1b3554;
      margin-bottom: 6px;
      font-size: 14px;
    }

    .modal-info small {
      display: block;
      color: #6a7689;
      line-height: 1.45;
      font-weight: 650;
      font-size: 12.5px;
    }

    .modal-note {
      background: #fff4e5;
      border: 1px solid #ffd89d;
      color: #7a4a00;
      border-radius: 14px;
      padding: 14px;
      line-height: 1.5;
      margin-top: 12px;
      font-size: 13px;
      font-weight: 750;
    }

    .modal-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 14px;
    }

    /* FOOTER */
    footer {
      background: #081d37;
      color: white;
      margin-top: 24px;
      padding-top: 34px;
    }

    .footer-grid {
      display: grid;
      grid-template-columns: 1.2fr 0.8fr 0.8fr 0.8fr 1fr;
      gap: 22px;
      padding-bottom: 28px;
    }

    .footer-brand img {
      width: 95px;
      background: white;
      border-radius: 10px;
      padding: 6px;
      margin-bottom: 12px;
    }

    footer h4 {
      font-size: 15px;
      margin-bottom: 10px;
    }

    footer p,
    footer li {
      font-size: 13px;
      line-height: 1.7;
      color: #d2dbe8;
      list-style: none;
    }

    .numbers {
      background: rgba(255, 255, 255, 0.08);
      border-radius: 14px;
      padding: 14px;
    }

    .numbers li {
      display: flex;
      justify-content: space-between;
      gap: 10px;
    }

    .numbers b {
      color: #ffb427;
    }

    .footer-bottom {
      background: #061426;
      color: #d2dbe8;
      padding: 12px 0;
      font-size: 12px;
    }

    .footer-bottom .container {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
    }

    /* FLOTANTES */
    .float-help,
    .float-wp {
      position: fixed;
      right: 18px;
      z-index: 2500;
      border-radius: 50%;
      display: grid;
      place-items: center;
      color: white;
      box-shadow: 0 16px 28px rgba(0, 0, 0, 0.20);
    }

    .float-help {
      bottom: 92px;
      width: 64px;
      height: 64px;
      background: #ffffff;
      border: 4px solid #dff3ff;
      overflow: visible;
      animation: toroFloat 2.5s ease-in-out infinite;
    }

    .float-help img {
      width: 62px;
      height: 62px;
      object-fit: contain;
      max-width: none;
      pointer-events: none;
    }

    .assistant-bubble {
      position: fixed;
      right: 88px;
      bottom: 106px;
      z-index: 2499;
      background: #ffffff;
      color: #07182d;
      border: 1px solid var(--borde);
      border-radius: 999px;
      padding: 9px 13px;
      box-shadow: var(--shadow2);
      font-size: 11px;
      font-weight: 900;
      white-space: nowrap;
    }

    .assistant-bubble::after {
      content: "";
      position: absolute;
      right: -6px;
      top: 50%;
      transform: translateY(-50%);
      border-left: 7px solid #ffffff;
      border-top: 7px solid transparent;
      border-bottom: 7px solid transparent;
    }

    .float-wp {
      bottom: 18px;
      width: 58px;
      height: 58px;
      background: #25d366;
      font-size: 30px;
    }

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

    /* RESPONSIVE */
    @media (max-width: 1100px) {
      .menu {
        gap: 14px;
      }

      .trans-hero-grid,
      .content-layout {
        grid-template-columns: 1fr;
      }

      .quick-panel {
        margin-top: 8px;
      }

      .side-card {
        position: static;
      }

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

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

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

    @media (max-width: 780px) {
      .top-strip,
      .topbar {
        display: none;
      }

      .container {
        width: min(94%, 520px);
      }

      .nav {
        min-height: 64px;
        gap: 8px;
      }

      .brand {
        min-width: 0;
        gap: 7px;
      }

      .brand img {
        width: 48px;
        flex: 0 0 48px;
      }

      .brand strong {
        font-size: 12px;
        max-width: 130px;
      }

      .brand small {
        display: none;
      }

      .hamb {
        display: grid;
        place-items: center;
        width: 40px;
        height: 40px;
        min-width: 40px;
        border-radius: 12px;
      }

      .menu {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: white;
        box-shadow: var(--shadow);
        flex-direction: column;
        align-items: stretch;
        padding: 14px 18px;
        gap: 0;
        transform: translateY(-140%);
        transition: 0.25s ease;
        max-height: calc(100vh - 64px);
        overflow: auto;
      }

      .menu.open {
        transform: translateY(0);
      }

      .nav-link {
        padding: 12px 0;
        justify-content: space-between;
        width: 100%;
      }

      .nav-link.active::after {
        display: none;
      }

      .dropdown {
        position: static;
        transform: none;
        width: 100%;
        opacity: 1;
        pointer-events: auto;
        display: none;
        box-shadow: none;
        margin: 4px 0 10px;
      }

      .nav-item.open .dropdown {
        display: block;
        transform: none;
      }

      .nav-item:hover .dropdown {
        transform: none;
      }

      .dropdown-grid {
        grid-template-columns: 1fr;
      }

      .header-actions {
        margin-left: auto;
        gap: 6px;
      }

      .search-btn {
        width: 40px;
        height: 40px;
        min-width: 40px;
        padding: 0;
        border-radius: 12px;
        font-size: 0;
      }

      .search-btn i {
        font-size: 18px;
      }

      .back-site-btn {
        display: none;
      }

      .trans-hero {
        padding: 34px 0 30px;
      }

      .trans-hero h1 {
        font-size: 42px;
        letter-spacing: -1.6px;
      }

      .trans-hero p {
        font-size: 14px;
      }

      .trans-hero-actions {
        flex-direction: column;
      }

      .trans-hero-actions .btn {
        width: 100%;
        min-height: 40px;
      }

      .quick-panel {
        padding: 16px;
        border-radius: 20px;
      }

      .quick-panel h2 {
        font-size: 19px;
      }

      .quick-list {
        gap: 8px;
      }

      .quick-list a {
        min-height: 48px;
        font-size: 12px;
      }

      .trans-search-wrap {
        grid-template-columns: 1fr;
      }

      .trans-search-wrap button {
        min-height: 42px;
      }

      .side-nav {
        grid-template-columns: 1fr;
      }

      .section-card {
        grid-template-columns: 1fr;
        text-align: left;
        padding: 16px;
        gap: 12px;
      }

      .section-icon {
        width: 54px;
        height: 54px;
        border-radius: 16px;
        font-size: 24px;
      }

      .section-card h2 {
        font-size: 21px;
      }

      .section-card p {
        font-size: 13px;
      }

      .includes span {
        font-size: 10.5px;
      }

      .card-actions {
        width: 100%;
        min-width: 0;
        flex-direction: column;
      }

      .small-btn {
        width: 100%;
      }

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

      .help-cta .btn {
        width: 100%;
      }

      .modal {
        align-items: flex-start;
        padding: 82px 12px 14px;
      }

      .modal-box {
        width: min(100%, 520px);
        max-height: 82vh;
        border-radius: 20px;
      }

      .modal-head {
        padding: 16px;
      }

      .modal-title-wrap {
        gap: 10px;
      }

      .modal-icon {
        width: 48px;
        height: 48px;
        min-width: 48px;
        font-size: 24px;
      }

      .modal-head h2 {
        font-size: 19px;
      }

      .modal-head p {
        font-size: 12px;
      }

      .modal-body {
        padding: 16px;
      }

      .modal-grid,
      .search-results,
      .footer-grid {
        grid-template-columns: 1fr;
      }

      .float-help {
        width: 54px;
        height: 54px;
        bottom: 82px;
        right: 15px;
      }

      .float-help img {
        width: 56px;
        height: 56px;
      }

      .assistant-bubble {
        display: none;
      }

      .float-wp {
        width: 52px;
        height: 52px;
        right: 16px;
        bottom: 18px;
      }
    }

    @media (max-width: 390px) {
      .brand img {
        width: 42px;
        flex-basis: 42px;
      }

      .brand strong {
        font-size: 11.5px;
        max-width: 116px;
      }

      .trans-hero h1 {
        font-size: 36px;
      }
    }

    /* ===== AJUSTE FINAL: PORTADA DE TRANSPARENCIA MÁS CHICA ===== */
    .trans-hero {
      padding: 32px 0 26px !important;
    }

    .trans-hero-grid {
      grid-template-columns: minmax(0, 1fr) minmax(360px, 500px) !important;
      gap: 28px !important;
      align-items: center !important;
    }

    .trans-crumb {
      padding: 7px 12px !important;
      font-size: 11px !important;
      margin-bottom: 10px !important;
    }

    .trans-hero h1 {
      font-size: clamp(34px, 4.4vw, 54px) !important;
      line-height: 0.94 !important;
      letter-spacing: -1.8px !important;
      margin-bottom: 10px !important;
      max-width: 520px !important;
    }

    .trans-hero p {
      max-width: 600px !important;
      font-size: 14px !important;
      line-height: 1.42 !important;
      margin-bottom: 14px !important;
    }

    .trans-hero-actions {
      gap: 8px !important;
    }

    .trans-hero-actions .btn {
      min-height: 38px !important;
      padding: 0 14px !important;
      border-radius: 10px !important;
      font-size: 12.5px !important;
    }

    .quick-panel {
      margin-top: 0 !important;
      padding: 15px !important;
      border-radius: 20px !important;
      max-width: 500px !important;
      justify-self: end !important;
      box-shadow: 0 14px 34px rgba(7, 30, 58, 0.16) !important;
    }

    .quick-panel h2 {
      font-size: 18px !important;
      margin-bottom: 10px !important;
    }

    .quick-list {
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      gap: 8px !important;
    }

    .quick-list a {
      min-height: 42px !important;
      border-radius: 12px !important;
      padding: 8px 10px !important;
      font-size: 11.5px !important;
      line-height: 1.15 !important;
    }

    .quick-list i {
      width: 28px !important;
      height: 28px !important;
      min-width: 28px !important;
      border-radius: 9px !important;
      font-size: 14px !important;
    }

    @media (max-width: 1100px) {
      .trans-hero-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
      }

      .quick-panel {
        max-width: 100% !important;
        justify-self: stretch !important;
      }
    }

    @media (max-width: 780px) {
      .trans-hero {
        padding: 24px 0 22px !important;
      }

      .trans-crumb {
        padding: 6px 10px !important;
        font-size: 10px !important;
        margin-bottom: 9px !important;
      }

      .trans-hero h1 {
        font-size: 34px !important;
        letter-spacing: -1.2px !important;
        margin-bottom: 8px !important;
      }

      .trans-hero p {
        font-size: 12.8px !important;
        line-height: 1.35 !important;
        margin-bottom: 12px !important;
      }

      .trans-hero-actions {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 7px !important;
      }

      .trans-hero-actions .btn {
        width: 100% !important;
        min-height: 36px !important;
        padding: 0 8px !important;
        font-size: 11px !important;
      }

      .quick-panel {
        padding: 13px !important;
        border-radius: 18px !important;
      }

      .quick-panel h2 {
        font-size: 16px !important;
        margin-bottom: 8px !important;
      }

      .quick-list {
        grid-template-columns: 1fr 1fr !important;
        gap: 7px !important;
      }

      .quick-list a {
        min-height: 40px !important;
        padding: 7px 8px !important;
        font-size: 10.5px !important;
        gap: 7px !important;
      }

      .quick-list i {
        width: 25px !important;
        height: 25px !important;
        min-width: 25px !important;
        font-size: 12px !important;
      }
    }

    @media (max-width: 390px) {
      .trans-hero h1 {
        font-size: 31px !important;
      }

      .trans-hero-actions {
        grid-template-columns: 1fr !important;
      }

      .quick-list {
        grid-template-columns: 1fr !important;
      }
    }
    .float-help {
  width: 64px;
  height: 64px;
  right: 18px;
  bottom: 92px;
  border-radius: 50%;
  background: #ffffff;
  border: 4px solid #dff3ff;
  overflow: hidden;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.float-help img,
#assistantToro {
  width: 54px;
  height: 54px;
  object-fit: contain;
  object-position: center;
  display: block;
  max-width: none;
  transform: scale(0.92);
}
    @media (max-width: 780px) {
  .float-help {
    width: 56px;
    height: 56px;
    right: 15px;
    bottom: 82px;
  }

  .float-help img,
  #assistantToro {
    width: 48px;
    height: 48px;
    transform: scale(0.92);
  }
}

  

    /* ===== AJUSTE: 6 OPCIONES EN GRILLA 3 + 3 ===== */
    .content-layout {
      grid-template-columns: 1fr !important;
      gap: 18px !important;
      padding: 16px 0 30px !important;
    }

    .side-card {
      position: static !important;
      top: auto !important;
      padding: 14px !important;
      border-radius: 18px !important;
    }

    .side-card h3 {
      margin-bottom: 10px !important;
    }

    .side-nav {
      display: grid !important;
      grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
      gap: 9px !important;
    }

    .side-nav a {
      min-height: 46px !important;
      justify-content: center !important;
      text-align: center !important;
      background: #fbfdff !important;
      border: 1px solid #dfe8f2 !important;
      border-radius: 13px !important;
      padding: 10px 8px !important;
    }

    .side-nav a i {
      color: var(--azul) !important;
      font-size: 16px !important;
    }

    .trans-content {
      display: grid !important;
      grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
      gap: 16px !important;
      align-items: stretch !important;
    }

    .section-card {
      grid-template-columns: 1fr !important;
      align-content: start !important;
      align-items: start !important;
      min-height: 100% !important;
      padding: 18px !important;
      gap: 12px !important;
      border-radius: 22px !important;
      transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
    }

    .section-card:hover {
      transform: translateY(-3px) !important;
      border-color: rgba(0, 114, 188, 0.22) !important;
    }

    .section-icon {
      width: 56px !important;
      height: 56px !important;
      border-radius: 17px !important;
      font-size: 24px !important;
    }

    .section-card h2 {
      font-size: 20px !important;
      line-height: 1.12 !important;
      margin-bottom: 7px !important;
    }

    .section-card p {
      font-size: 13px !important;
      line-height: 1.43 !important;
      max-width: none !important;
    }

    .includes {
      gap: 5px !important;
      margin-top: 10px !important;
    }

    .includes span {
      font-size: 10.2px !important;
      padding: 5px 8px !important;
    }

    .card-actions {
      width: 100% !important;
      min-width: 0 !important;
      flex-direction: row !important;
      gap: 8px !important;
      margin-top: auto !important;
    }

    .card-actions .small-btn {
      width: 100% !important;
      min-height: 39px !important;
      padding: 0 10px !important;
      font-size: 12px !important;
      border-radius: 12px !important;
      white-space: nowrap !important;
    }

    .help-cta {
      grid-column: 1 / -1 !important;
      margin-top: 2px !important;
    }

    @media (max-width: 1050px) {
      .trans-content {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      }

      .side-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      }
    }

    @media (max-width: 620px) {
      .trans-content,
      .side-nav {
        grid-template-columns: 1fr !important;
      }

      .section-card {
        padding: 16px !important;
      }

      .card-actions {
        flex-direction: column !important;
      }
    }


    /* ===== ADAPTACIÓN SIMPLE: TARJETAS COMO LA ÚLTIMA VERSIÓN ===== */
    .trans-search-section {
      display: none !important;
    }

    .trans-hero {
      padding: 34px 0 30px !important;
    }

    .trans-hero-grid {
      grid-template-columns: 1.05fr .95fr !important;
      gap: 30px !important;
      align-items: center !important;
    }

    .trans-hero h1 {
      font-size: clamp(42px, 5vw, 62px) !important;
      line-height: .92 !important;
      letter-spacing: -2px !important;
      max-width: 620px !important;
    }

    .trans-hero p {
      font-size: 15px !important;
      line-height: 1.45 !important;
      max-width: 650px !important;
    }

    .content-layout {
      display: block !important;
      padding: 24px 0 30px !important;
    }

    .simple-section-head {
      margin-bottom: 18px !important;
    }

    .simple-section-head h2 {
      font-size: 29px !important;
      line-height: 1.05 !important;
      font-weight: 900 !important;
      color: #122b49 !important;
      letter-spacing: -.8px !important;
      margin-bottom: 8px !important;
      position: relative !important;
      padding-bottom: 10px !important;
    }

    .simple-section-head h2::after {
      content: "" !important;
      position: absolute !important;
      left: 0 !important;
      bottom: 0 !important;
      width: 75px !important;
      height: 5px !important;
      border-radius: 999px !important;
      background: linear-gradient(90deg, var(--azul), var(--verde), var(--naranja)) !important;
    }

    .simple-section-head p {
      color: var(--muted) !important;
      font-size: 14px !important;
      line-height: 1.55 !important;
      max-width: 820px !important;
      font-weight: 650 !important;
    }

    .trans-content {
      display: grid !important;
      grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
      gap: 16px !important;
      align-items: stretch !important;
    }

    .section-card {
      display: grid !important;
      grid-template-columns: 1fr !important;
      grid-template-rows: auto 1fr auto !important;
      min-height: 205px !important;
      padding: 18px !important;
      gap: 0 !important;
      border-radius: 22px !important;
      background: #fff !important;
      border: 1px solid var(--borde) !important;
      box-shadow: var(--shadow2) !important;
      text-align: left !important;
      transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease !important;
    }

    .section-card:hover {
      transform: translateY(-4px) !important;
      box-shadow: var(--shadow) !important;
      border-color: rgba(0, 114, 188, .22) !important;
    }

    .section-icon {
      width: 58px !important;
      height: 58px !important;
      border-radius: 18px !important;
      font-size: 26px !important;
      margin-bottom: 14px !important;
    }

    .section-card h2 {
      font-size: 21px !important;
      line-height: 1.08 !important;
      font-weight: 900 !important;
      color: #143656 !important;
      margin-bottom: 10px !important;
      letter-spacing: -.4px !important;
    }

    .section-card p {
      color: #617185 !important;
      font-size: 13.8px !important;
      line-height: 1.45 !important;
      font-weight: 650 !important;
      max-width: none !important;
      margin: 0 0 18px !important;
    }

    .includes {
      display: none !important;
    }

    .card-actions {
      width: 100% !important;
      min-width: 0 !important;
      display: grid !important;
      grid-template-columns: 1fr !important;
      gap: 10px !important;
      margin-top: auto !important;
    }

    .card-actions .small-btn {
      width: 100% !important;
      min-height: 44px !important;
      border-radius: 12px !important;
      font-size: 14px !important;
      padding: 0 14px !important;
      white-space: normal !important;
    }

    .small-btn.pdf {
      display: none !important;
    }

    .simple-final-banner {
      grid-column: 1 / -1 !important;
      margin-top: 8px !important;
      border-radius: 24px !important;
      padding: 26px !important;
    }

    @media (max-width: 1100px) {
      .trans-hero-grid {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
      }

      .quick-panel {
        max-width: none !important;
        justify-self: stretch !important;
      }

      .trans-content {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      }
    }

    @media (max-width: 780px) {
      .trans-hero {
        padding: 28px 0 24px !important;
      }

      .trans-hero h1 {
        font-size: 38px !important;
        letter-spacing: -1.4px !important;
      }

      .trans-hero p {
        font-size: 13.5px !important;
      }

      .trans-hero-actions {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
      }

      .trans-content {
        grid-template-columns: 1fr !important;
      }

      .section-card {
        min-height: 210px !important;
        padding: 16px !important;
      }

      .simple-section-head h2 {
        font-size: 25px !important;
      }

      .simple-section-head p {
        font-size: 13px !important;
      }
    }

/* ===== V4 NATALIA - CARDS TRANSPARENCIA COMO CAPTURA MAS COMPACTAS ===== */
/* Mantiene el header igual.
   Portada más chica y centrada.
   Cards estilo captura, solo un poco más compactas. */

/* PORTADA: más baja, centrada, sin accesos rápidos */
.trans-hero {
  padding: 28px 0 26px !important;
  min-height: 0 !important;
  text-align: center !important;
}

.trans-hero-grid {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  grid-template-columns: 1fr !important;
}

.trans-hero-grid > div:first-child {
  width: 100% !important;
  max-width: 900px !important;
  margin: 0 auto !important;
}

.quick-panel {
  display: none !important;
}

.trans-crumb {
  margin: 0 auto 10px !important;
  padding: 7px 12px !important;
  font-size: 10px !important;
}

.trans-hero h1 {
  max-width: 100% !important;
  margin: 0 auto 10px !important;
  text-align: center !important;
  font-size: clamp(34px, 4.3vw, 50px) !important;
  line-height: 1 !important;
  letter-spacing: -1.4px !important;
}

.trans-hero h1 span {
  display: inline !important;
  color: #c7f36b !important;
}

.trans-hero p {
  max-width: 760px !important;
  margin: 0 auto 13px !important;
  text-align: center !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
}

.trans-hero-actions {
  justify-content: center !important;
}

.trans-hero-actions .btn {
  min-height: 35px !important;
  padding: 0 13px !important;
  font-size: 12px !important;
  border-radius: 10px !important;
}

/* En celular: que solo se vea el título */
@media (max-width: 780px) {
  .trans-hero {
    padding: 24px 0 22px !important;
  }

  .trans-crumb,
  .trans-hero p,
  .trans-hero-actions,
  .quick-panel {
    display: none !important;
  }

  .trans-hero h1 {
    font-size: 31px !important;
    line-height: 1 !important;
    margin: 0 auto !important;
    letter-spacing: -1px !important;
  }

  .trans-hero h1 span {
    display: inline !important;
  }
}

/* CONTENEDOR DE CARDS */
.content-layout {
  display: block !important;
  padding: 14px 0 28px !important;
}

.side-card {
  display: none !important;
}

.trans-content {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
}

/* CARD COMO LA CAPTURA, PERO UN POCO MÁS CHICA */
.section-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  min-height: 238px !important;
  padding: 18px !important;
  border-radius: 20px !important;
  background: #ffffff !important;
  border: 1px solid #dfe8f2 !important;
  box-shadow: 0 8px 20px rgba(10, 35, 70, 0.075) !important;
  gap: 0 !important;
}

.section-card:hover {
  box-shadow: 0 14px 34px rgba(10, 35, 70, 0.10) !important;
  transform: translateY(-2px) !important;
}

/* ÍCONOS */
.section-icon {
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
  border-radius: 18px !important;
  font-size: 25px !important;
  margin-bottom: 13px !important;
  display: grid !important;
  place-items: center !important;
}

/* TEXTO DE CARD */
.section-card h2 {
  font-size: 21px !important;
  line-height: 1.08 !important;
  margin: 0 0 9px !important;
  color: #082946 !important;
  font-weight: 950 !important;
  letter-spacing: -0.65px !important;
}

.section-card p {
  font-size: 13px !important;
  line-height: 1.45 !important;
  color: #56677d !important;
  font-weight: 750 !important;
  max-width: 100% !important;
  margin: 0 !important;
}

/* Ocultar chips internos si aparecieran, para dejar la card limpia como captura */
.includes {
  display: none !important;
}

/* BOTÓN DE CARD */
.card-actions {
  width: 100% !important;
  margin-top: 17px !important;
  display: flex !important;
  gap: 8px !important;
  min-width: 0 !important;
}

.small-btn {
  width: 100% !important;
  min-height: 43px !important;
  border-radius: 11px !important;
  padding: 0 14px !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  justify-content: center !important;
}

/* Colores de botones por card */
.section-card.blue .small-btn,
.section-card.dark .small-btn {
  background: linear-gradient(135deg, #0072bc, #0d8fd3) !important;
  color: #ffffff !important;
}

.section-card.green .small-btn {
  background: linear-gradient(135deg, #72c943, #a8df57) !important;
  color: #ffffff !important;
}

.section-card.orange .small-btn {
  background: linear-gradient(135deg, #f59b12, #ffb427) !important;
  color: #ffffff !important;
}

/* Si hay botón secundario PDF, que no rompa la card */
.card-actions .small-btn + .small-btn {
  display: none !important;
}

/* Responsive tablet */
@media (max-width: 1100px) {
  .trans-content {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }

  .section-card {
    min-height: 225px !important;
  }
}

/* Responsive celular */
@media (max-width: 780px) {
  .content-layout {
    padding: 12px 0 24px !important;
  }

  .trans-content {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .section-card {
    min-height: auto !important;
    padding: 16px !important;
    border-radius: 18px !important;
  }

  .section-icon {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    border-radius: 16px !important;
    font-size: 22px !important;
    margin-bottom: 12px !important;
  }

  .section-card h2 {
    font-size: 19px !important;
  }

  .section-card p {
    font-size: 12.5px !important;
  }

  .small-btn {
    min-height: 40px !important;
    font-size: 12.5px !important;
  }
}
/* ACHICAR CARDS TRANSPARENCIA */
.section-card {
  min-height: 150px !important;
  padding: 15px !important;
  border-radius: 18px !important;
}

.section-icon {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  border-radius: 15px !important;
  font-size: 21px !important;
  margin-bottom: 10px !important;
}

.section-card h2 {
  font-size: 17px !important;
  margin-bottom: 7px !important;
}

.section-card p {
  font-size: 12px !important;
  line-height: 1.38 !important;
}

.card-actions {
  margin-top: 10px !important;
}

.small-btn {
  min-height: 38px !important;
  font-size: 12px !important;
}
/* CENTRAR ICONOS DE LAS CARDS DE TRANSPARENCIA */
.section-card {
  align-items: center !important;
  text-align: center !important;
}

.section-icon {
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: 12px !important;
}

.section-card h2,
.section-card p {
  text-align: center !important;
}

.card-actions {
  justify-content: center !important;
}

/* ===== V5 INSTITUCIONAL CON BOTONES INTERNOS ===== */
/* Panel dentro de Gobierno Abierto: 4 botones y contenido por sección */

.section-detail-panel[hidden],
.inst-tab-content[hidden],
.inst-start-box[hidden] {
  display: none !important;
}

.section-detail-panel {
  grid-column: 1 / -1 !important;
  position: relative;
  margin-top: 10px;
  padding: 22px;
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid #dfe8f2;
  box-shadow: 0 18px 45px rgba(10, 35, 70, 0.12);
  overflow: hidden;
}

.section-detail-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 145px;
  background:
    radial-gradient(circle at 92% 12%, rgba(255,255,255,.22) 0 90px, transparent 92px),
    linear-gradient(135deg, #075382 0%, #0072bc 50%, #72c943 100%);
  z-index: 0;
}

.section-detail-panel.show {
  display: block !important;
}

.detail-close {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 6;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 14px;
  background: rgba(255,255,255,.16);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 20px;
  cursor: pointer;
}

.inst-panel-head {
  position: relative;
  z-index: 2;
  color: #ffffff;
  padding: 4px 54px 20px 0;
}

.detail-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.28);
  color: #ffffff;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: 10px;
}

.inst-panel-head h2 {
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: .95;
  letter-spacing: -1.8px;
  font-weight: 950;
  margin: 0 0 9px;
  color: #ffffff;
}

.inst-panel-head p {
  max-width: 820px;
  color: #eef8ff;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 750;
}

.inst-menu-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
  margin: 6px 0 18px;
}

.inst-menu-btn {
  min-height: 82px;
  border: 1px solid #dfe8f2;
  border-radius: 18px;
  background: #ffffff;
  color: #0b2c4c;
  box-shadow: 0 8px 20px rgba(10, 35, 70, 0.075);
  cursor: pointer;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 7px;
  padding: 12px 10px;
  font-weight: 950;
  transition: .18s ease;
}

.inst-menu-btn i {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--azul), var(--azul2));
  color: #ffffff;
  font-size: 19px;
}

.inst-menu-btn span {
  font-size: 13px;
  line-height: 1.12;
}

.inst-menu-btn:hover,
.inst-menu-btn.active {
  transform: translateY(-2px);
  border-color: rgba(0,114,188,.28);
  box-shadow: 0 14px 30px rgba(10, 35, 70, 0.12);
}

.inst-menu-btn.active {
  background: linear-gradient(135deg, #eef8ff, #ffffff);
}

.inst-menu-btn.active i {
  background: linear-gradient(135deg, var(--verde), var(--verde2));
}

.inst-start-box {
  position: relative;
  z-index: 2;
  border: 1px dashed #c9d9e8;
  border-radius: 22px;
  background: #fbfdff;
  padding: 22px;
  text-align: center;
  color: #557087;
}

.inst-start-box i {
  width: 52px;
  height: 52px;
  margin: 0 auto 10px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--azul), var(--azul2));
  color: #ffffff;
  font-size: 22px;
}

.inst-start-box h3 {
  color: #082946;
  font-size: 22px;
  font-weight: 950;
  margin-bottom: 6px;
}

.inst-start-box p {
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
}

.inst-tab-content {
  position: relative;
  z-index: 2;
}

.inst-section-title {
  margin: 4px 0 14px;
}

.inst-section-title span,
.cabinet-head span,
.role-pill,
.coming-card span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 11px;
  background: #eef8ff;
  color: var(--azul);
  font-size: 10.5px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .45px;
  margin-bottom: 8px;
}

.inst-section-title h3,
.cabinet-head h3 {
  color: #082946;
  font-size: 28px;
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -.8px;
}

.mayor-feature {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 20px;
  align-items: start;
  padding: 20px;
  border: 1px solid #dfe8f2;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(10,35,70,.07);
}

.mayor-badge {
  width: 116px;
  height: 116px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 78% 20%, rgba(255,255,255,.28) 0 28px, transparent 29px),
    linear-gradient(135deg, var(--azul), var(--azul2));
  color: #ffffff;
  font-size: 34px;
  font-weight: 950;
  letter-spacing: -1px;
}

.mayor-info h3 {
  color: #082946;
  font-size: 28px;
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -.8px;
  margin-bottom: 10px;
}

.mayor-info p {
  color: #445873;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 700;
  margin-bottom: 10px;
}

.contact-row,
.person-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.contact-row a,
.person-contact a {
  min-height: 34px;
  border-radius: 999px;
  border: 1px solid #d5e5f3;
  background: #fbfdff;
  color: #082946;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 900;
}

.contact-row a i,
.person-contact a i {
  color: var(--azul);
}

.cabinet-head {
  margin: 20px 0 12px;
}

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

.person-card {
  border: 1px solid #dfe8f2;
  border-radius: 20px;
  background: #ffffff;
  padding: 15px;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 13px;
  box-shadow: 0 8px 20px rgba(10,35,70,.055);
}

.person-avatar {
  width: 52px;
  height: 52px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #082946, #0072bc);
  color: #ffffff;
  font-size: 15px;
  font-weight: 950;
}

.person-card h4 {
  color: #082946;
  font-size: 17px;
  line-height: 1.1;
  font-weight: 950;
  margin-bottom: 4px;
}

.person-card > div > span {
  display: block;
  color: var(--azul);
  font-size: 12px;
  line-height: 1.25;
  font-weight: 950;
  margin-bottom: 8px;
}

.person-card p {
  color: #596b80;
  font-size: 12.5px;
  line-height: 1.45;
  font-weight: 650;
}

.institutional-map-section {
  margin-top: 18px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid #dfe8f2;
  background: linear-gradient(135deg, #f7fbff, #ffffff);
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 18px;
  align-items: center;
}

.map-text h3 {
  color: #082946;
  font-size: 22px;
  font-weight: 950;
  margin: 6px 0 7px;
}

.map-text p {
  color: #596b80;
  font-size: 13px;
  line-height: 1.48;
  font-weight: 680;
  margin-bottom: 10px;
}

.institutional-map-img {
  min-height: 300px;
  border-radius: 20px;
  border: 1px solid #dce8f3;
  background:
    radial-gradient(circle at 90% 10%, rgba(114,201,67,.16) 0 90px, transparent 92px),
    linear-gradient(135deg, #eef8ff, #ffffff);
  overflow: hidden;
  display: grid;
  place-items: center;
  position: relative;
}

.institutional-map-img img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: contain;
  background: #ffffff;
}

.map-placeholder {
  display: none;
  text-align: center;
  padding: 20px;
  color: #587087;
}

.institutional-map-img.is-empty .map-placeholder {
  display: grid;
  gap: 6px;
  place-items: center;
}

.map-placeholder i {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--azul), var(--azul2));
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 23px;
  margin-bottom: 4px;
}

.map-placeholder strong {
  color: #082946;
  font-size: 17px;
  font-weight: 950;
}

.map-placeholder small {
  max-width: 310px;
  line-height: 1.45;
  font-size: 12px;
  font-weight: 750;
}

.coming-card {
  border: 1px dashed #cfddea;
  border-radius: 22px;
  background: #fbfdff;
  padding: 24px;
  text-align: center;
}

.coming-card i {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--azul), var(--azul2));
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 25px;
  margin: 0 auto 12px;
}

.coming-card h3 {
  color: #082946;
  font-size: 25px;
  line-height: 1.08;
  font-weight: 950;
  margin-bottom: 8px;
}

.coming-card p {
  color: #657487;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 680;
  max-width: 680px;
  margin: 0 auto;
}

@media (max-width: 980px) {
  .inst-menu-grid,
  .cabinet-grid,
  .institutional-map-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .institutional-map-section {
    grid-template-columns: 1fr;
  }

  .mayor-feature {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .section-detail-panel {
    padding: 16px;
    border-radius: 22px;
  }

  .section-detail-panel::before {
    height: 132px;
  }

  .detail-close {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border-radius: 13px;
  }

  .inst-panel-head {
    padding: 0 46px 16px 0;
  }

  .inst-panel-head h2 {
    font-size: 30px;
  }

  .inst-panel-head p {
    font-size: 12.5px;
  }

  .inst-menu-grid {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .inst-menu-btn {
    min-height: 76px;
    border-radius: 16px;
  }

  .inst-menu-btn i {
    width: 36px;
    height: 36px;
    font-size: 17px;
  }

  .inst-menu-btn span {
    font-size: 11.5px;
  }

  .mayor-feature {
    padding: 16px;
    border-radius: 20px;
    gap: 14px;
  }

  .mayor-badge {
    width: 76px;
    height: 76px;
    border-radius: 22px;
    font-size: 24px;
  }

  .mayor-info h3 {
    font-size: 23px;
  }

  .mayor-info p {
    font-size: 12.8px;
    line-height: 1.5;
  }

  .contact-row a,
  .person-contact a {
    width: 100%;
    justify-content: center;
    border-radius: 12px;
  }

  .cabinet-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .person-card {
    grid-template-columns: 46px 1fr;
    padding: 13px;
    border-radius: 18px;
  }

  .person-avatar {
    width: 46px;
    height: 46px;
    border-radius: 15px;
    font-size: 14px;
  }

  .person-card h4 {
    font-size: 16px;
  }

  .person-card p {
    font-size: 12.2px;
  }

  .institutional-map-section {
    padding: 15px;
    border-radius: 20px;
  }

  .institutional-map-img,
  .institutional-map-img img {
    min-height: 230px;
  }

  .coming-card {
    padding: 18px;
    border-radius: 20px;
  }
}

@media (max-width: 420px) {
  .inst-menu-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== V6 INSTITUCIONAL MAS FINO Y BOTONES PROLIJOS ===== */
/* Mejora visual del panel Institucional:
   - título más fino
   - sin icono/chip superior
   - sin caja "Seleccioná una sección"
   - botones más lindos con íconos de color
*/

/* Panel general más limpio */
.section-detail-panel {
  padding: 0 22px 22px !important;
  border-radius: 26px !important;
  background: #ffffff !important;
  border: 1px solid #dfe8f2 !important;
  box-shadow: 0 16px 42px rgba(10, 35, 70, 0.12) !important;
  overflow: hidden !important;
}

/* Franja superior más baja y fina */
.section-detail-panel::before {
  height: 112px !important;
  background:
    radial-gradient(circle at 92% 0%, rgba(255,255,255,.18) 0 78px, transparent 80px),
    linear-gradient(135deg, #075382 0%, #0072bc 48%, #72c943 100%) !important;
}

/* Sacar el chip/iconito de arriba */
.detail-kicker {
  display: none !important;
}

/* Encabezado institucional más delicado */
.inst-panel-head {
  position: relative !important;
  z-index: 2 !important;
  color: #ffffff !important;
  padding: 24px 58px 18px 0 !important;
}

.inst-panel-head h2 {
  width: fit-content !important;
  max-width: 100% !important;
  color: #ffffff !important;
  font-size: clamp(30px, 4vw, 44px) !important;
  line-height: 1 !important;
  letter-spacing: -1.3px !important;
  font-weight: 950 !important;
  margin: 0 0 8px !important;
  position: relative !important;
  padding-bottom: 10px !important;
}

.inst-panel-head h2::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  bottom: 0 !important;
  width: 82px !important;
  height: 4px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, #ffffff, #c7f36b) !important;
}

.inst-panel-head p {
  max-width: 760px !important;
  color: #eef8ff !important;
  font-size: 13.5px !important;
  line-height: 1.42 !important;
  font-weight: 750 !important;
  margin: 0 !important;
}

/* X más fina */
.detail-close {
  top: 14px !important;
  right: 14px !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 13px !important;
  background: rgba(255,255,255,.13) !important;
  border: 1px solid rgba(255,255,255,.35) !important;
  color: #ffffff !important;
}

/* Botonera interna más fina */
.inst-menu-grid {
  position: relative !important;
  z-index: 4 !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin: 0 0 18px !important;
  padding-top: 2px !important;
}

.inst-menu-btn {
  min-height: 76px !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  border: 1px solid #dbe8f4 !important;
  box-shadow: 0 8px 22px rgba(10, 35, 70, 0.075) !important;
  color: #082946 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 11px !important;
  padding: 12px 14px !important;
  text-align: left !important;
  font-weight: 950 !important;
  cursor: pointer !important;
  transition: .18s ease !important;
}

.inst-menu-btn i {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  border-radius: 14px !important;
  display: grid !important;
  place-items: center !important;
  font-size: 18px !important;
  background: #eef8ff !important;
  color: var(--azul) !important;
}

.inst-menu-btn span {
  font-size: 13px !important;
  line-height: 1.15 !important;
  color: #082946 !important;
}

/* Íconos con color por botón */
.inst-menu-btn:nth-child(1) i {
  background: rgba(0, 114, 188, .12) !important;
  color: #0072bc !important;
}

.inst-menu-btn:nth-child(2) i {
  background: rgba(245, 155, 18, .15) !important;
  color: #f59b12 !important;
}

.inst-menu-btn:nth-child(3) i {
  background: rgba(114, 201, 67, .16) !important;
  color: #5eb833 !important;
}

.inst-menu-btn:nth-child(4) i {
  background: rgba(8, 41, 70, .12) !important;
  color: #082946 !important;
}

.inst-menu-btn:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(0,114,188,.28) !important;
  box-shadow: 0 14px 30px rgba(10, 35, 70, 0.12) !important;
}

.inst-menu-btn.active {
  border-color: rgba(0,114,188,.34) !important;
  background: linear-gradient(135deg, #f7fbff, #ffffff) !important;
  box-shadow: 0 14px 30px rgba(10, 35, 70, 0.12) !important;
}

.inst-menu-btn.active i {
  background: linear-gradient(135deg, var(--azul), var(--azul2)) !important;
  color: #ffffff !important;
}

/* Sacar definitivamente la caja "Seleccioná una sección" */
.inst-start-box {
  display: none !important;
}

/* Contenido que aparece después de tocar un botón */
.inst-tab-content {
  margin-top: 4px !important;
  animation: instFade .2s ease both !important;
}

@keyframes instFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.inst-section-title {
  margin: 8px 0 14px !important;
}

.inst-section-title span,
.cabinet-head span,
.role-pill,
.coming-card span {
  border-radius: 999px !important;
  padding: 6px 11px !important;
  background: #eef8ff !important;
  color: var(--azul) !important;
  font-size: 10.5px !important;
  font-weight: 950 !important;
  text-transform: uppercase !important;
  letter-spacing: .45px !important;
}

.inst-section-title h3,
.cabinet-head h3 {
  color: #082946 !important;
  font-size: 27px !important;
  line-height: 1.05 !important;
  font-weight: 950 !important;
  letter-spacing: -.8px !important;
}

/* Hacer un poco más elegante la card de Matías */
.mayor-feature {
  border-radius: 24px !important;
  border: 1px solid #dfe8f2 !important;
  box-shadow: 0 10px 26px rgba(10, 35, 70, .075) !important;
  background:
    radial-gradient(circle at 98% 8%, rgba(114,201,67,.09) 0 110px, transparent 112px),
    #ffffff !important;
}

/* Responsive */
@media (max-width: 980px) {
  .inst-menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 780px) {
  .section-detail-panel {
    padding: 0 16px 18px !important;
    border-radius: 22px !important;
  }

  .section-detail-panel::before {
    height: 104px !important;
  }

  .inst-panel-head {
    padding: 21px 48px 16px 0 !important;
  }

  .inst-panel-head h2 {
    font-size: 30px !important;
    letter-spacing: -1px !important;
  }

  .inst-panel-head p {
    font-size: 12.5px !important;
  }

  .inst-menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px !important;
  }

  .inst-menu-btn {
    min-height: 68px !important;
    border-radius: 16px !important;
    gap: 8px !important;
    padding: 10px !important;
  }

  .inst-menu-btn i {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    border-radius: 12px !important;
    font-size: 16px !important;
  }

  .inst-menu-btn span {
    font-size: 11.5px !important;
  }
}

@media (max-width: 430px) {
  .inst-menu-grid {
    grid-template-columns: 1fr !important;
  }

  .inst-menu-btn {
    justify-content: flex-start !important;
    text-align: left !important;
  }
}

/* ===== V7 GABINETE CON FOTOS RESPONSIVE PROFESIONAL ===== */
/* Fotos reales de gabinete, mapa institucional y responsive más profesional */

/* Panel Institucional más equilibrado */
.section-detail-panel {
  max-width: 100% !important;
}

/* Botones internos más suaves */
.inst-menu-grid {
  margin-bottom: 20px !important;
}

.inst-menu-btn {
  min-height: 72px !important;
  background: linear-gradient(180deg, #ffffff, #fbfdff) !important;
}

.inst-menu-btn span {
  font-weight: 950 !important;
}

/* Título interno */
.inst-section-title {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 2px !important;
  margin: 8px 0 16px !important;
}

.inst-section-title h3 {
  font-size: clamp(25px, 3vw, 34px) !important;
}

/* Card principal Intendente */
.mayor-feature {
  display: grid !important;
  grid-template-columns: 230px 1fr !important;
  gap: 24px !important;
  align-items: center !important;
  padding: 24px !important;
  border-radius: 28px !important;
  background:
    radial-gradient(circle at 96% 0%, rgba(114, 201, 67, .11) 0 120px, transparent 122px),
    linear-gradient(135deg, #ffffff 0%, #f8fcff 100%) !important;
  border: 1px solid #dbe8f4 !important;
  box-shadow: 0 16px 38px rgba(10, 35, 70, .10) !important;
}

.mayor-photo {
  width: 210px !important;
  height: 210px !important;
  margin: 0 auto !important;
  border-radius: 50% !important;
  padding: 7px !important;
  background: linear-gradient(135deg, var(--azul), var(--verde)) !important;
  box-shadow: 0 18px 34px rgba(0, 114, 188, .20) !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
  position: relative !important;
}

.mayor-photo img {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  background: #eef8ff !important;
  border: 5px solid #ffffff !important;
}

.mayor-photo span {
  display: none !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  place-items: center !important;
  background: linear-gradient(135deg, var(--azul), var(--azul2)) !important;
  color: #ffffff !important;
  font-size: 48px !important;
  font-weight: 950 !important;
  border: 5px solid #ffffff !important;
}

.mayor-photo.no-photo span {
  display: grid !important;
}

.mayor-info h3 {
  font-size: clamp(27px, 3vw, 38px) !important;
  letter-spacing: -1.1px !important;
  margin-bottom: 12px !important;
}

.mayor-info p {
  font-size: 14.2px !important;
  line-height: 1.58 !important;
  color: #445873 !important;
}

/* Contacto más limpio */
.contact-row a,
.person-contact a {
  background: #ffffff !important;
  border: 1px solid #d4e5f4 !important;
  color: #082946 !important;
}

.contact-row a:hover,
.person-contact a:hover {
  background: #eef8ff !important;
  color: var(--azul) !important;
}

/* Gabinete */
.cabinet-head {
  margin: 26px 0 14px !important;
}

.cabinet-head h3 {
  font-size: clamp(24px, 2.8vw, 32px) !important;
}

.cabinet-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

.person-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  padding: 18px 16px !important;
  border-radius: 24px !important;
  background: #ffffff !important;
  border: 1px solid #dfe8f2 !important;
  box-shadow: 0 8px 22px rgba(10, 35, 70, .07) !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease !important;
}

.person-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 16px 34px rgba(10, 35, 70, .11) !important;
  border-color: rgba(0, 114, 188, .25) !important;
}

.person-photo {
  width: 118px !important;
  height: 118px !important;
  min-width: 118px !important;
  border-radius: 50% !important;
  padding: 5px !important;
  margin: 0 auto 12px !important;
  background: linear-gradient(135deg, var(--azul), var(--verde)) !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
  box-shadow: 0 12px 24px rgba(0, 114, 188, .16) !important;
}

.person-photo img {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  background: #eef8ff !important;
  border: 4px solid #ffffff !important;
}

.person-photo span {
  display: none !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  place-items: center !important;
  background: linear-gradient(135deg, #082946, var(--azul)) !important;
  color: #ffffff !important;
  font-size: 25px !important;
  font-weight: 950 !important;
  border: 4px solid #ffffff !important;
}

.person-photo.no-photo span {
  display: grid !important;
}

.person-avatar {
  display: none !important;
}

.person-card h4 {
  color: #082946 !important;
  font-size: 18px !important;
  line-height: 1.08 !important;
  letter-spacing: -.35px !important;
  font-weight: 950 !important;
  margin: 0 0 5px !important;
}

.person-card > div > span {
  min-height: 34px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--azul) !important;
  font-size: 12px !important;
  line-height: 1.22 !important;
  font-weight: 950 !important;
  margin-bottom: 10px !important;
}

.person-card p {
  color: #596b80 !important;
  font-size: 12.4px !important;
  line-height: 1.45 !important;
  font-weight: 650 !important;
  margin: 0 !important;
}

.person-contact {
  width: 100% !important;
  justify-content: center !important;
  margin-top: 13px !important;
}

.person-contact a {
  min-height: 32px !important;
  max-width: 100% !important;
  border-radius: 999px !important;
  padding: 0 10px !important;
  font-size: 11px !important;
  word-break: break-word !important;
}

/* Mapa institucional */
.institutional-map-section {
  margin-top: 22px !important;
  padding: 22px !important;
  border-radius: 28px !important;
  background:
    radial-gradient(circle at 95% 10%, rgba(114, 201, 67, .12) 0 120px, transparent 122px),
    linear-gradient(135deg, #f7fbff 0%, #ffffff 100%) !important;
  border: 1px solid #dbe8f4 !important;
  box-shadow: 0 10px 26px rgba(10, 35, 70, .075) !important;
}

.institutional-map-img {
  min-height: 360px !important;
  border-radius: 24px !important;
  background: #ffffff !important;
  border: 1px solid #dce8f3 !important;
  box-shadow: inset 0 0 0 8px #f4f9fd !important;
}

.institutional-map-img img {
  width: 100% !important;
  height: 100% !important;
  min-height: 360px !important;
  object-fit: contain !important;
  padding: 14px !important;
  background: #ffffff !important;
}

/* Para que el hash no quede tapado por el header */
#sectionDetailPanel,
#inst-tab-gabinete,
#inst-tab-historia,
#inst-tab-mision,
#inst-tab-servicios {
  scroll-margin-top: 94px !important;
}

/* Responsive tablet */
@media (max-width: 1120px) {
  .cabinet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .mayor-feature {
    grid-template-columns: 190px 1fr !important;
  }

  .mayor-photo {
    width: 178px !important;
    height: 178px !important;
  }
}

/* Responsive celular: parecido a la referencia, imagen centrada arriba */
@media (max-width: 780px) {
  .section-detail-panel {
    margin-top: 8px !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .inst-panel-head {
    text-align: left !important;
  }

  .inst-menu-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 9px !important;
  }

  .inst-menu-btn {
    min-height: 72px !important;
    flex-direction: column !important;
    gap: 7px !important;
    text-align: center !important;
    padding: 10px 8px !important;
  }

  .inst-menu-btn i {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
  }

  .inst-section-title {
    align-items: center !important;
    text-align: center !important;
    margin-top: 10px !important;
  }

  .inst-section-title h3 {
    font-size: 25px !important;
  }

  .mayor-feature {
    grid-template-columns: 1fr !important;
    text-align: center !important;
    padding: 19px 16px !important;
    border-radius: 24px !important;
    gap: 14px !important;
  }

  .mayor-photo {
    width: 165px !important;
    height: 165px !important;
  }

  .mayor-info {
    text-align: center !important;
  }

  .mayor-info h3 {
    font-size: 25px !important;
    margin-bottom: 6px !important;
  }

  .mayor-info p {
    text-align: left !important;
    font-size: 13px !important;
    line-height: 1.52 !important;
  }

  .role-pill {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .contact-row {
    justify-content: center !important;
  }

  .cabinet-head {
    text-align: center !important;
    margin-top: 22px !important;
  }

  .cabinet-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .person-card {
    padding: 18px 15px !important;
    border-radius: 22px !important;
  }

  .person-photo {
    width: 130px !important;
    height: 130px !important;
  }

  .person-card h4 {
    font-size: 18px !important;
  }

  .person-card > div > span {
    min-height: auto !important;
    margin-bottom: 9px !important;
  }

  .person-card p {
    text-align: left !important;
    font-size: 12.6px !important;
    line-height: 1.48 !important;
  }

  .person-contact a {
    width: 100% !important;
    justify-content: center !important;
    border-radius: 12px !important;
  }

  .institutional-map-section {
    grid-template-columns: 1fr !important;
    padding: 17px !important;
    border-radius: 24px !important;
  }

  .map-text {
    text-align: center !important;
  }

  .map-text p {
    text-align: left !important;
  }

  .institutional-map-img,
  .institutional-map-img img {
    min-height: 260px !important;
  }

  .institutional-map-img img {
    padding: 10px !important;
  }
}

@media (max-width: 430px) {
  .inst-menu-grid {
    grid-template-columns: 1fr !important;
  }

  .inst-menu-btn {
    flex-direction: row !important;
    justify-content: flex-start !important;
    text-align: left !important;
  }

  .mayor-photo {
    width: 148px !important;
    height: 148px !important;
  }

  .person-photo {
    width: 118px !important;
    height: 118px !important;
  }
}

/* ===== V8 INSTITUCIONAL COMPLETA HISTORIA MISION CARTA ===== */
/* Historia, Misión/Visión y Carta de Servicios */

.institutional-inner-section {
  border: 1px solid #dfe8f2;
  border-radius: 26px;
  background:
    radial-gradient(circle at 96% 0%, rgba(114, 201, 67, .08) 0 130px, transparent 132px),
    linear-gradient(135deg, #ffffff 0%, #f8fcff 100%);
  box-shadow: 0 10px 28px rgba(10, 35, 70, .075);
  padding: 24px;
}

.center-title {
  align-items: center !important;
  text-align: center !important;
  margin-bottom: 20px !important;
}

.center-title span {
  margin-left: auto;
  margin-right: auto;
}

.center-title h3 {
  font-size: clamp(28px, 3.8vw, 42px) !important;
  letter-spacing: -1.2px !important;
}

.center-title p {
  max-width: 760px;
  margin: 4px auto 0;
  color: #617185;
  font-size: 14px;
  line-height: 1.48;
  font-weight: 700;
}

/* HISTORIA */
.history-layout {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 16px;
  align-items: start;
}

.history-text-card {
  background: #ffffff;
  border: 1px solid #dfe8f2;
  border-radius: 22px;
  padding: 20px;
}

.history-text-card p {
  color: #4d6076;
  font-size: 14px;
  line-height: 1.7;
  font-weight: 650;
  margin-bottom: 13px;
}

.history-text-card p:last-child {
  margin-bottom: 0;
}

.history-highlight-card {
  position: sticky;
  top: 92px;
  border-radius: 22px;
  padding: 22px;
  color: #ffffff;
  background:
    radial-gradient(circle at 90% 12%, rgba(255,255,255,.20) 0 70px, transparent 72px),
    linear-gradient(135deg, #082946 0%, #0072bc 58%, #72c943 100%);
  box-shadow: 0 14px 30px rgba(0, 114, 188, .16);
}

.history-highlight-card i {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.26);
  display: grid;
  place-items: center;
  font-size: 24px;
  margin-bottom: 12px;
}

.history-highlight-card h4 {
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -.6px;
  font-weight: 950;
  margin-bottom: 10px;
}

.history-highlight-card p {
  color: #eef8ff;
  font-size: 13.5px;
  line-height: 1.5;
  font-weight: 700;
}

.maipu-gallery {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 10px;
}

.maipu-gallery figure {
  min-height: 150px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 90% 10%, rgba(114,201,67,.16) 0 70px, transparent 72px),
    linear-gradient(135deg, #eef8ff, #ffffff);
  border: 1px solid #dbe8f4;
  box-shadow: 0 8px 20px rgba(10, 35, 70, .06);
}

.maipu-gallery figure:first-child {
  grid-row: span 2;
  min-height: 310px;
}

.maipu-gallery img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.maipu-gallery figcaption {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  min-height: 28px;
  border-radius: 999px;
  background: rgba(8, 41, 70, .74);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 900;
  backdrop-filter: blur(4px);
}

.maipu-gallery figure.empty-img::before {
  content: "\F42A";
  font-family: "bootstrap-icons";
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--azul), var(--azul2));
  color: #fff;
  font-size: 20px;
  margin: 42px auto 8px;
}

.maipu-gallery figure.empty-img::after {
  content: "Agregar imagen";
  display: block;
  text-align: center;
  color: #557087;
  font-size: 12px;
  font-weight: 900;
}

/* MISIÓN Y VISIÓN */
.mission-vision-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 16px;
  align-items: stretch;
}

.mission-card {
  border-radius: 24px;
  padding: 24px;
  border: 1px solid #dfe8f2;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(10, 35, 70, .075);
  position: relative;
  overflow: hidden;
}

.mission-card::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -70px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(0, 114, 188, .07);
}

.vision-main::after {
  background: rgba(114, 201, 67, .12);
}

.mv-icon {
  width: 58px;
  height: 58px;
  border-radius: 19px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--azul), var(--azul2));
  font-size: 25px;
  margin-bottom: 13px;
  position: relative;
  z-index: 2;
}

.vision-main .mv-icon {
  background: linear-gradient(135deg, var(--verde), var(--verde2));
}

.mission-card span {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 11px;
  background: #eef8ff;
  color: var(--azul);
  font-size: 10.5px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .45px;
  margin-bottom: 9px;
  position: relative;
  z-index: 2;
}

.vision-main span {
  background: #effbe8;
  color: #55a72d;
}

.mission-card h4 {
  color: #082946;
  font-size: clamp(23px, 2.6vw, 32px);
  line-height: 1.05;
  letter-spacing: -.8px;
  font-weight: 950;
  margin-bottom: 13px;
  position: relative;
  z-index: 2;
}

.mission-card p {
  color: #52667d;
  font-size: 14px;
  line-height: 1.62;
  font-weight: 680;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}

.mission-card p:last-child {
  margin-bottom: 0;
}

/* CARTA DE SERVICIOS */
.service-letter-hero {
  border-radius: 24px;
  padding: 24px;
  color: #ffffff;
  background:
    radial-gradient(circle at 92% 12%, rgba(255,255,255,.22) 0 86px, transparent 88px),
    linear-gradient(135deg, #082946 0%, #0072bc 54%, #72c943 100%);
  margin-bottom: 16px;
  box-shadow: 0 14px 30px rgba(0, 114, 188, .14);
}

.service-letter-hero i {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.28);
  display: grid;
  place-items: center;
  font-size: 26px;
  margin-bottom: 12px;
}

.service-letter-hero h4 {
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.05;
  letter-spacing: -.9px;
  font-weight: 950;
  margin-bottom: 8px;
}

.service-letter-hero p {
  color: #eef8ff;
  font-size: 14px;
  line-height: 1.48;
  font-weight: 750;
  max-width: 760px;
}

.service-letter-content {
  column-count: 2;
  column-gap: 24px;
  background: #ffffff;
  border: 1px solid #dfe8f2;
  border-radius: 24px;
  padding: 22px;
}

.service-letter-content p {
  break-inside: avoid;
  color: #506379;
  font-size: 13.6px;
  line-height: 1.68;
  font-weight: 650;
  margin: 0 0 13px;
}

.service-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 15px;
}

.service-pill-grid span {
  min-height: 36px;
  border-radius: 999px;
  border: 1px solid #d6e6f4;
  background: #fbfdff;
  color: #082946;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  font-size: 12px;
  font-weight: 900;
}

.service-pill-grid i {
  color: var(--verde);
}

/* Responsive institucional completa */
@media (max-width: 1050px) {
  .history-layout,
  .mission-vision-grid {
    grid-template-columns: 1fr;
  }

  .history-highlight-card {
    position: static;
  }

  .maipu-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .maipu-gallery figure:first-child {
    grid-row: auto;
    grid-column: span 2;
    min-height: 220px;
  }

  .service-letter-content {
    column-count: 1;
  }
}

@media (max-width: 780px) {
  .institutional-inner-section {
    padding: 16px;
    border-radius: 22px;
  }

  .center-title h3 {
    font-size: 28px !important;
  }

  .center-title p {
    font-size: 12.8px;
  }

  .history-text-card,
  .mission-card,
  .service-letter-content {
    padding: 17px;
    border-radius: 20px;
  }

  .history-text-card p,
  .mission-card p,
  .service-letter-content p {
    font-size: 12.8px;
    line-height: 1.58;
  }

  .history-highlight-card {
    padding: 18px;
    border-radius: 20px;
    text-align: center;
  }

  .history-highlight-card i {
    margin-left: auto;
    margin-right: auto;
  }

  .maipu-gallery {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .maipu-gallery figure,
  .maipu-gallery figure:first-child {
    grid-column: auto;
    min-height: 135px;
  }

  .maipu-gallery figcaption {
    font-size: 10px;
    left: 7px;
    right: 7px;
    bottom: 7px;
  }

  .mv-icon,
  .service-letter-hero i {
    margin-left: auto;
    margin-right: auto;
  }

  .mission-card,
  .service-letter-hero {
    text-align: center;
  }

  .mission-card p,
  .service-letter-content p {
    text-align: left;
  }

  .service-letter-hero {
    padding: 19px;
    border-radius: 22px;
  }

  .service-letter-hero h4 {
    font-size: 26px;
  }

  .service-pill-grid {
    justify-content: center;
  }
}

@media (max-width: 430px) {
  .maipu-gallery {
    grid-template-columns: 1fr;
  }

  .maipu-gallery figure,
  .maipu-gallery figure:first-child {
    min-height: 180px;
  }

  .service-pill-grid span {
    width: 100%;
    justify-content: center;
  }
}

/* ===== V9 INSTITUCIONAL FINAL AJUSTES HISTORIA MISION CARTA ===== */
/* Ajustes finales:
   - Historia sin cartel lateral
   - Galería con maipu1.jpg a maipu5.jpg
   - Misión y Visión más fino
   - Carta de Servicios con valores centrados abajo
*/

/* HISTORIA: solo texto + galería */
.historia-section {
  background:
    radial-gradient(circle at 95% 0%, rgba(114, 201, 67, .07) 0 130px, transparent 132px),
    linear-gradient(135deg, #ffffff 0%, #f8fcff 100%) !important;
}

.history-layout {
  display: block !important;
}

.history-highlight-card {
  display: none !important;
}

.history-text-card {
  max-width: 980px !important;
  margin: 0 auto !important;
  padding: 24px !important;
  border-radius: 24px !important;
  background: #ffffff !important;
  border: 1px solid #dfe8f2 !important;
  box-shadow: 0 10px 26px rgba(10, 35, 70, .065) !important;
}

.history-text-card p {
  color: #4d6076 !important;
  font-size: 14.2px !important;
  line-height: 1.74 !important;
  font-weight: 650 !important;
  margin-bottom: 14px !important;
}

.history-text-card p:last-child {
  margin-bottom: 0 !important;
}

/* Galería más limpia */
.maipu-gallery {
  max-width: 980px !important;
  margin: 18px auto 0 !important;
  display: grid !important;
  grid-template-columns: 1.35fr repeat(2, 1fr) !important;
  grid-auto-rows: 155px !important;
  gap: 11px !important;
}

.maipu-gallery figure {
  min-height: auto !important;
  height: 100% !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 90% 10%, rgba(114,201,67,.16) 0 70px, transparent 72px),
    linear-gradient(135deg, #eef8ff, #ffffff) !important;
  border: 1px solid #dbe8f4 !important;
  box-shadow: 0 8px 20px rgba(10, 35, 70, .06) !important;
}

.maipu-gallery figure:first-child {
  grid-row: span 2 !important;
  min-height: auto !important;
}

.maipu-gallery img {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  object-fit: cover !important;
}

.maipu-gallery figcaption {
  left: 9px !important;
  right: 9px !important;
  bottom: 9px !important;
  min-height: 28px !important;
  font-size: 10.8px !important;
  background: rgba(8, 41, 70, .76) !important;
}

/* MISIÓN Y VISIÓN: más fino, menos tosco */
.mission-section {
  padding: 22px !important;
  background:
    radial-gradient(circle at 96% 0%, rgba(114, 201, 67, .07) 0 120px, transparent 122px),
    linear-gradient(135deg, #ffffff 0%, #f8fcff 100%) !important;
}

.mission-vision-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr) !important;
  gap: 14px !important;
  align-items: stretch !important;
  max-width: 1040px !important;
  margin: 0 auto !important;
}

.mission-card {
  padding: 20px !important;
  border-radius: 22px !important;
  border: 1px solid #dfe8f2 !important;
  background: #ffffff !important;
  box-shadow: 0 10px 24px rgba(10, 35, 70, .065) !important;
  overflow: hidden !important;
  position: relative !important;
}

.mission-card::after {
  width: 120px !important;
  height: 120px !important;
  right: -42px !important;
  top: -42px !important;
  background: rgba(0, 114, 188, .055) !important;
}

.vision-main::after {
  background: rgba(114, 201, 67, .09) !important;
}

.mv-icon {
  width: 46px !important;
  height: 46px !important;
  border-radius: 15px !important;
  font-size: 20px !important;
  margin-bottom: 11px !important;
}

.mission-card span {
  padding: 5px 10px !important;
  font-size: 10px !important;
  margin-bottom: 8px !important;
}

.mission-card h4 {
  color: #082946 !important;
  font-size: clamp(21px, 2.2vw, 27px) !important;
  line-height: 1.08 !important;
  letter-spacing: -.65px !important;
  margin-bottom: 11px !important;
}

.mission-card p {
  color: #52667d !important;
  font-size: 13.3px !important;
  line-height: 1.58 !important;
  font-weight: 660 !important;
  margin-bottom: 10px !important;
}

.vision-main {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

/* Título de Misión y Visión más prolijo */
.mission-section .center-title {
  margin-bottom: 18px !important;
}

.mission-section .center-title h3 {
  font-size: clamp(29px, 3.5vw, 40px) !important;
  line-height: 1 !important;
}

.mission-section .center-title p {
  font-size: 13.2px !important;
}

/* CARTA DE SERVICIOS */
.service-letter-section {
  background:
    radial-gradient(circle at 96% 0%, rgba(0, 114, 188, .06) 0 130px, transparent 132px),
    linear-gradient(135deg, #ffffff 0%, #f8fcff 100%) !important;
}

.service-letter-hero {
  max-width: 980px !important;
  margin: 0 auto 16px !important;
  border-radius: 22px !important;
  padding: 21px !important;
  text-align: center !important;
}

.service-letter-hero i {
  margin-left: auto !important;
  margin-right: auto !important;
}

.service-letter-hero h4 {
  font-size: clamp(24px, 2.7vw, 32px) !important;
}

.service-letter-hero p {
  margin-left: auto !important;
  margin-right: auto !important;
}

.service-letter-content {
  max-width: 980px !important;
  margin: 0 auto !important;
  column-count: 2 !important;
  column-gap: 24px !important;
  padding: 22px !important;
  border-radius: 22px !important;
  background: #ffffff !important;
  border: 1px solid #dfe8f2 !important;
  box-shadow: 0 10px 24px rgba(10, 35, 70, .055) !important;
}

.service-letter-content p {
  color: #506379 !important;
  font-size: 13.3px !important;
  line-height: 1.66 !important;
  font-weight: 650 !important;
  margin-bottom: 12px !important;
}

/* Valores centrados abajo */
.service-pill-grid {
  max-width: 820px !important;
  margin: 18px auto 0 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 10px !important;
  text-align: center !important;
}

.service-pill-grid span {
  min-height: 38px !important;
  border-radius: 999px !important;
  border: 1px solid #d6e6f4 !important;
  background: #ffffff !important;
  color: #082946 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  padding: 0 15px !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  box-shadow: 0 6px 14px rgba(10, 35, 70, .055) !important;
}

.service-pill-grid i {
  color: var(--verde) !important;
}

/* Responsive final */
@media (max-width: 1050px) {
  .mission-vision-grid {
    grid-template-columns: 1fr !important;
  }

  .vision-main {
    justify-content: flex-start !important;
  }

  .service-letter-content {
    column-count: 1 !important;
  }

  .maipu-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-auto-rows: 145px !important;
  }

  .maipu-gallery figure:first-child {
    grid-row: auto !important;
    grid-column: span 2 !important;
  }
}

@media (max-width: 780px) {
  .history-text-card,
  .mission-card,
  .service-letter-content {
    padding: 16px !important;
    border-radius: 20px !important;
  }

  .history-text-card p,
  .mission-card p,
  .service-letter-content p {
    font-size: 12.7px !important;
    line-height: 1.56 !important;
  }

  .mission-card {
    text-align: left !important;
  }

  .mission-card .mv-icon {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .mission-card span {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .mission-card h4 {
    font-size: 22px !important;
  }

  .maipu-gallery {
    grid-template-columns: 1fr 1fr !important;
    grid-auto-rows: 135px !important;
    gap: 9px !important;
  }

  .maipu-gallery figure:first-child {
    grid-column: 1 / -1 !important;
  }

  .service-letter-hero {
    padding: 18px !important;
    border-radius: 20px !important;
  }

  .service-pill-grid {
    gap: 8px !important;
  }

  .service-pill-grid span {
    min-height: 36px !important;
    font-size: 11.5px !important;
    padding: 0 12px !important;
  }
}

@media (max-width: 430px) {
  .maipu-gallery {
    grid-template-columns: 1fr !important;
    grid-auto-rows: 180px !important;
  }

  .maipu-gallery figure:first-child {
    grid-column: auto !important;
  }

  .service-pill-grid span {
    width: 100% !important;
  }
}
