.page-mi-ciudad {
    background: #ffffff;
}

.city-page {
    min-height: 100vh;
    padding: 0rem 0 2.75rem;
    color: #12172a;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 44%, #ffffff 100%);
}

.city-shell {
    width: 100%;
    margin-inline: 0;
}

.city-hero {
    position: relative;
    min-height: 320px;
    margin-bottom: 35px;
    overflow: visible;
    background: #f8fafc;
}

.city-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background-image: url('../img/aguascalientes.jpg');
    background-size: cover;
    background-position: center 48%;
    z-index: 0;
}

.city-hero__image {
    display: none;
}

.city-hero__fade {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    z-index: 1;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.86) 38%, rgba(255, 255, 255, 0.16) 78%), linear-gradient(180deg, rgba(255, 255, 255, 0) 64%, #ffffff 100%);
}

.city-hero__inner {
    position: relative;
    z-index: 2;
    padding-top: 6rem;
}

.city-hero__copy h1 {
    margin: 0 0 13px;
    font-size: 36px;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #12172a;
    font-weight: 800;
}

.city-hero__copy p {
    margin: 0;
    color: #111827;
    font-size: 16px;
    line-height: 1.55;
    font-weight: 500;
}

.city-search {
    position: absolute;
    left: 0;
    bottom: -130px;
    width: min(100%, 808px);
    min-height: 78px;
    padding: 18px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.12);
}

.city-search .search-form {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.city-search .search-input-wrapper {
    flex: 1;
    position: relative;
    min-width: 0;
}

.city-search .search-input-wrapper--location {
    flex: 0 0 260px;
    position: relative;
    min-width: 0;
    z-index: 1;
}

.city-search .search-input-wrapper--location .search-input {
    cursor: pointer;
    padding-right: 1rem;
}

.city-search .search-icon {
    width: 1.1rem;
    height: 1.1rem;
    color: var(--gray-400);
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.city-search .search-input {
    width: 100%;
    min-height: 3.25rem;
    padding: 0.85rem 3.5rem 0.85rem 3rem;
    border-radius: 0.875rem;
    border: 1px solid var(--gray-200);
    background-color: #fff;
    color: var(--gray-700);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s ease;
    font-family: inherit;
}

.city-search .search-input::placeholder {
    color: var(--gray-400);
}

.city-search .search-input:focus {
    background-color: white;
    border-color: rgba(41, 108, 255, 0.28);
    box-shadow: 0 0 0 4px rgba(41, 108, 255, 0.08);
}

.city-search .search-voice-btn {
    position: absolute;
    right: 0.8rem;
    top: 50%;
    width: 2.65rem;
    height: 2.65rem;
    display: none;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: rgba(41, 108, 255, 0.08);
    color: var(--primary-600);
    transform: translateY(-50%);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    font-size: 1.1rem;
}

.city-search .search-voice-btn:hover {
    background: rgba(41, 108, 255, 0.14);
    transform: translateY(-50%) scale(1.03);
}

.city-search .search-voice-btn:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 4px rgba(41, 108, 255, 0.14);
}

.city-search .search-voice-btn.is-visible {
    display: inline-flex;
}

.city-search .search-voice-btn.is-listening {
    background: rgba(239, 68, 68, 0.12);
    color: var(--red-600);
}

.city-search .search-voice-btn.is-hidden {
    display: none;
}

.city-search .btn-search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background-color: var(--secondary-500);
    color: var(--gray-900);
    font-weight: 700;
    min-height: 3.25rem;
    padding: 0.85rem 1.75rem;
    border-radius: 0.875rem;
    transition: all 0.2s ease;
    border: 0;
    cursor: pointer;
    font-family: inherit;
}

.city-search .btn-search:hover {
    background-color: var(--secondary-600);
    transform: translateY(-1px);
}

.city-search .location-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--gray-200);
    z-index: 150;
    max-height: 340px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.city-search .location-dropdown__option {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--gray-700);
    transition: background-color 0.15s;
}

.city-search .location-dropdown__option:hover {
    background-color: var(--gray-50);
}

.city-search .location-dropdown__option--geo {
    color: var(--primary-600);
    font-weight: 500;
}

.city-search .location-dropdown__option--geo:hover {
    background-color: var(--primary-50);
}

.city-search .location-dropdown__option--all {
    color: var(--gray-500);
}

.city-search .location-dropdown__icon {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
}

.city-search .location-dropdown__icon-ri {
    font-size: 1.125rem;
    flex-shrink: 0;
    width: 1.125rem;
    text-align: center;
}

.city-search .location-dropdown__loading {
    width: 1rem;
    height: 1rem;
    margin-left: auto;
    animation: spin 1s linear infinite;
}

.city-search .location-dropdown__divider {
    height: 1px;
    background: var(--gray-200);
    margin: 0;
}

.city-search .location-dropdown__list {
    padding: 0.25rem 0;
    max-height: 220px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.city-search .location-dropdown__loading-text {
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
    color: var(--gray-400);
    text-align: center;
}

.city-search .location-dropdown__estado-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 1rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--gray-700);
    transition: background-color 0.15s;
}

.city-search .location-dropdown__estado-header:hover {
    background-color: var(--gray-50);
}

.city-search .location-dropdown__estado-name {
    flex: 1;
    font-weight: 500;
}

.city-search .location-dropdown__estado-count {
    font-size: 0.75rem;
    color: var(--gray-400);
    background: var(--gray-100);
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-full);
}

.city-search .location-dropdown__chevron {
    font-size: 1.125rem;
    color: var(--gray-400);
    transition: transform 0.2s;
}

.city-search .location-dropdown__estado--expanded .location-dropdown__chevron {
    transform: rotate(90deg);
    color: var(--primary-500);
}

.city-search .location-dropdown__estado--expanded > .location-dropdown__estado-header {
    background-color: var(--primary-50);
    color: var(--primary-700);
}

.city-search .location-dropdown__ciudades {
    border-top: 1px solid var(--gray-100);
    background: var(--gray-50);
}

.city-search .location-dropdown__ciudad {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    cursor: pointer;
    font-size: 0.8125rem;
    color: var(--gray-600);
    transition: background-color 0.15s;
}

.city-search .location-dropdown__ciudad:hover {
    background-color: var(--primary-50);
    color: var(--primary-700);
}

.city-search .location-dropdown__ciudad--all {
    font-weight: 500;
    color: var(--primary-600);
}

.city-search .location-dropdown__ciudad-count {
    margin-left: auto;
    font-size: 0.6875rem;
    color: var(--gray-400);
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.city-content {
    display: grid;
    gap: 29px;
}

.city-title {
    margin: 0;
    color: #111827;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.015em;
}

.city-block--quick {
    padding-top: 8px;
}

.quick-grid {
    margin-top: 13px;
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 13px;
}

.quick-card {
    min-height: 111px;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 5px;
    padding: 14px 9px;
    border: 1px solid #e6eaf1;
    border-radius: 9px;
    background: #ffffff;
    color: #111827;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 9px 20px rgba(15, 23, 42, 0.035);
}

.quick-card__icon {
    width: 33px;
    height: 33px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 21px;
    background: #f1f5f9;
    color: #0f172a;
}

.quick-card__label {
    color: #9aa3b2;
    font-size: 8px;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
}

.quick-card strong {
    color: #111827;
    font-size: 12px;
    line-height: 1.15;
    font-weight: 800;
}

.quick-card--red .quick-card__icon,
.quick-card--red-soft .quick-card__icon {
    background: #fff0f0;
    color: #ef4444;
}

.quick-card--navy .quick-card__icon {
    background: #eef2ff;
    color: #16204a;
}

.quick-card--dark .quick-card__icon {
    background: #f1f5f9;
    color: #374151;
}

.quick-card--orange .quick-card__icon {
    background: #fff2e6;
    color: #f97316;
}

.quick-card--blue .quick-card__icon,
.quick-card--water .quick-card__icon {
    background: #eaf4ff;
    color: #1d6fe8;
}

.city-main-grid {
    display: grid;
    grid-template-columns: 272px minmax(0, 1fr);
    gap: 31px;
    align-items: start;
}

.services-card {
    min-width: 0;
}

.services-list {
    margin-top: 12px;
    overflow: hidden;
    border: 1px solid #e6eaf1;
    border-radius: 9px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.035);
}

.services-row,
.services-all {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 18px;
    color: #111827;
    text-decoration: none;
    border-bottom: 1px solid #edf0f5;
}

.services-row span {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    font-weight: 500;
}

.services-row i {
    width: 20px;
    color: #112a67;
    font-size: 17px;
    text-align: center;
}

.services-row small {
    color: #111827;
    font-size: 9px;
    font-weight: 700;
}

.services-all {
    justify-content: center;
    color: #006ae6;
    font-size: 12px;
    font-weight: 800;
    border-bottom: 0;
}

.city-main-right {
    min-width: 0;
    display: grid;
    gap: 26px;
}

.emergency-card {
    position: relative;
    min-height: 238px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 362px;
    border-radius: 9px;
    background: linear-gradient(135deg, #07104d 0%, #0a2f7d 62%, #061443 100%);
    color: #ffffff;
    box-shadow: 0 13px 28px rgba(4, 17, 64, 0.18);
}

.emergency-card__text {
    position: relative;
    z-index: 2;
    padding: 32px 0 30px 32px;
}

.emergency-card__text span {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
}

.emergency-card__text h2 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 36px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.emergency-card__text p {
    margin: 0 0 22px;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 600;
}

.emergency-card__text a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    padding: 0 22px;
    border-radius: 5px;
    background: #ff7a19;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

.emergency-card__art {
    position: relative;
    min-height: 100%;
}

.city-skyline {
    position: absolute;
    inset: 62px 0 0 -80px;
    opacity: 0.32;
    background: linear-gradient(to top, #123d94 0 46px, transparent 46px), linear-gradient(to top, transparent 0 84px, #17499e 84px 132px, transparent 132px), linear-gradient(90deg, transparent 0 4%, #17499e 4% 14%, transparent 14% 24%, #17499e 24% 34%, transparent 34% 42%, #17499e 42% 52%, transparent 52% 62%, #17499e 62% 72%, transparent 72% 82%, #17499e 82% 92%, transparent 92% 100%);
}

.police-car {
    position: absolute;
    left: 14px;
    bottom: 31px;
    width: 188px;
    height: 74px;
}

.police-car__body {
    position: absolute;
    left: 0;
    bottom: 12px;
    width: 178px;
    height: 44px;
    border-radius: 38px 46px 14px 14px;
    background: linear-gradient(90deg, #105ca9 0 35%, #dbeafe 35% 70%, #2f70b8 70% 100%);
    box-shadow: inset 0 -7px 0 rgba(5, 33, 77, 0.18);
}

.police-car__body::before {
    content: '';
    position: absolute;
    left: 52px;
    top: -28px;
    width: 77px;
    height: 37px;
    border-radius: 36px 36px 0 0;
    background: linear-gradient(90deg, #e0f2fe 0 46%, #93c5fd 46% 100%);
}

.police-car__body::after {
    content: 'POLICIA';
    position: absolute;
    left: 57px;
    top: 17px;
    color: #0b3274;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.03em;
}

.police-car__light {
    position: absolute;
    left: 84px;
    top: -1px;
    z-index: 2;
    width: 64px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, #1597ff 0 48%, #f9fafb 48% 53%, #ef4444 53% 100%);
}

.police-car__wheel {
    position: absolute;
    bottom: 0;
    z-index: 3;
    width: 24px;
    height: 24px;
    border: 6px solid #10264e;
    border-radius: 50%;
    background: #93a4bc;
}

.police-car__wheel--left {
    left: 32px;
}

.police-car__wheel--right {
    right: 30px;
}

.shield-911 {
    position: absolute;
    right: 64px;
    top: 46px;
    width: 118px;
    height: 136px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 54px;
    font-weight: 900;
    border: 7px solid rgba(101, 141, 216, 0.35);
    border-radius: 28px 28px 46px 46px;
}

.city-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 13px;
}

.city-section-head a {
    color: #006ae6;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}

.offices-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
}

.office-card {
    overflow: hidden;
    border: 1px solid #e6eaf1;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.045);
}

.office-card img {
    display: block;
    width: 100%;
    height: 93px;
    object-fit: cover;
}

.office-card__body {
    display: grid;
    gap: 6px;
    padding: 12px 11px 13px;
}

.office-card h3 {
    margin: 0;
    color: #111827;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;
}

.office-card__body span {
    color: #111827;
    font-size: 10px;
    font-weight: 500;
}

.office-card p {
    margin: 0;
    display: flex;
    gap: 8px;
    align-items: flex-start;
    color: #4b5563;
    font-size: 10px;
    line-height: 1.3;
}

.office-card p i {
    flex: 0 0 auto;
    color: #13a56b;
    font-size: 12px;
}

.office-card p:first-of-type i {
    color: #f59e0b;
}

.office-card p:last-of-type i {
    color: #209bd8;
}

.procedures-section {
    padding-top: 1px;
}

.procedures-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.procedure-card {
    min-height: 122px;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 8px;
    padding: 14px 10px;
    border: 1px solid #e6eaf1;
    border-radius: 9px;
    background: #ffffff;
    color: #111827;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 9px 20px rgba(15, 23, 42, 0.035);
}

.procedure-card span {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #dff7eb;
    color: #119c69;
    font-size: 20px;
}

.procedure-card strong {
    color: #111827;
    font-size: 12px;
    line-height: 1.15;
    font-weight: 800;
}

.procedure-card small {
    color: #6b7280;
    font-size: 10px;
    line-height: 1.25;
}

.city-info-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr 266px;
    gap: 23px;
    align-items: stretch;
}

.info-panel,
.suggestion-card {
    overflow: hidden;
    border: 1px solid #e6eaf1;
    border-radius: 9px;
    background: #ffffff;
    box-shadow: 0 9px 22px rgba(15, 23, 42, 0.04);
}

.info-panel {
    padding: 13px 13px 0;
}

.news-list {
    display: grid;
}

.news-row {
    display: grid;
    grid-template-columns: 45px 1fr;
    gap: 13px;
    padding: 11px 0;
    color: #111827;
    text-decoration: none;
    border-bottom: 1px solid #edf0f5;
}

.news-row__icon {
    width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: #e8f9f7;
    color: #0f172a;
    font-size: 26px;
}

.news-row:nth-child(3) .news-row__icon {
    background: #fff6db;
}

.news-row__copy strong,
.news-row__copy small,
.news-row__copy em {
    display: block;
}

.news-row__copy strong {
    color: #111827;
    font-size: 11px;
    line-height: 1.25;
    font-weight: 800;
}

.news-row__copy small {
    margin-top: 3px;
    color: #4b5563;
    font-size: 10px;
    line-height: 1.25;
}

.news-row__copy em {
    margin-top: 2px;
    color: #9aa3b2;
    font-size: 10px;
    font-style: normal;
}

.panel-bottom-link {
    min-height: 41px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #006ae6;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}

.map-illustration {
    position: relative;
    min-height: 185px;
    overflow: hidden;
    border-radius: 8px;
    background: #f4f6f9;
    background-image: linear-gradient(28deg, transparent 0 46%, rgba(207, 216, 226, 0.7) 46% 48%, transparent 48% 100%), linear-gradient(-34deg, transparent 0 38%, rgba(207, 216, 226, 0.72) 38% 40%, transparent 40% 100%), linear-gradient(90deg, transparent 0 18%, rgba(207, 216, 226, 0.7) 18% 19%, transparent 19% 100%), linear-gradient(0deg, transparent 0 32%, rgba(207, 216, 226, 0.7) 32% 33%, transparent 33% 100%);
}

.map-pin {
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.18);
}

.map-pin::after {
    content: '';
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    background: #ffffff;
}

.map-pin--red { left: 26%; top: 18%; background: #ef4444; }
.map-pin--blue { left: 63%; top: 12%; background: #1d7ff0; }
.map-pin--yellow { left: 12%; top: 48%; background: #fbbf24; }
.map-pin--green { left: 82%; top: 61%; background: #22c55e; }
.map-pin--cyan { left: 34%; top: 66%; background: #14b8a6; }
.map-pin--orange { left: 52%; top: 58%; background: #f97316; }

.map-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 15px 1px 11px;
    color: #111827;
    font-size: 10px;
    font-weight: 700;
}

.map-legend span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.map-legend i {
    color: #0f45b5;
    font-size: 13px;
}

.suggestion-card {
    position: relative;
    min-height: 232px;
    display: flex;
    align-items: flex-start;
    padding: 28px 25px;
    background: linear-gradient(180deg, #eaf6ff 0%, #dceeff 100%);
}

.suggestion-card__copy {
    position: relative;
    z-index: 2;
}

.suggestion-card h2 {
    margin: 0 0 10px;
    color: #111827;
    font-size: 20px;
    line-height: 1.15;
    font-weight: 800;
}

.suggestion-card p {
    margin: 0 0 17px;
    color: #111827;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 500;
}

.suggestion-card a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 0 16px;
    border-radius: 4px;
    background: #006ae6;
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
}

.suggestion-skyline {
    position: absolute;
    inset: auto 0 0;
    height: 88px;
    background: linear-gradient(to top, #68a7e8 0 28px, transparent 28px), linear-gradient(90deg, transparent 0 6%, #8bc0ef 6% 15%, transparent 15% 19%, #77b3eb 19% 31%, transparent 31% 36%, #5d9de0 36% 47%, transparent 47% 52%, #8bc0ef 52% 63%, transparent 63% 69%, #77b3eb 69% 82%, transparent 82% 87%, #5d9de0 87% 96%, transparent 96% 100%);
    opacity: 0.9;
}

.suggestion-skyline::before,
.suggestion-skyline::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.75);
}

.suggestion-skyline::before {
    width: 44px;
    height: 16px;
    left: 26px;
    top: 15px;
}

.suggestion-skyline::after {
    width: 64px;
    height: 18px;
    right: 25px;
    top: 9px;
}

.institution-banner {
    min-height: 140px;
    display: grid;
    grid-template-columns: 1.15fr 1.65fr;
    gap: 28px;
    align-items: center;
    padding: 21px 28px;
    border-radius: 9px;
    background: linear-gradient(90deg, #fff6db 0%, #fffdf3 48%, #fff6db 100%);
}

.institution-banner__intro {
    display: grid;
    grid-template-columns: 86px 1fr;
    align-items: center;
    gap: 17px;
}

.institution-banner__icon {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #f5a400;
    font-size: 62px;
    transform: rotate(-15deg);
}

.institution-banner h2 {
    margin: 0 0 6px;
    color: #111827;
    font-size: 20px;
    line-height: 1.15;
    font-weight: 800;
}

.institution-banner p {
    margin: 0 0 14px;
    color: #111827;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 500;
}

.institution-banner__intro a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 0 18px;
    border-radius: 4px;
    background: #ffc400;
    color: #111827;
    text-decoration: none;
    font-size: 12px;
    font-weight: 900;
}

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

.institution-benefits div {
    display: grid;
    grid-template-columns: 32px 1fr;
    column-gap: 12px;
    align-items: start;
}

.institution-benefits i {
    grid-row: span 2;
    color: #f4a900;
    font-size: 25px;
}

.institution-benefits strong {
    color: #111827;
    font-size: 12px;
    line-height: 1.25;
    font-weight: 900;
}

.institution-benefits span {
    margin-top: 5px;
    color: #111827;
    font-size: 11px;
    line-height: 1.35;
}

@media (max-width: 1100px) {
    .quick-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

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

    .city-info-grid {
        grid-template-columns: 1fr 1fr;
    }

    .suggestion-card {
        grid-column: 1 / -1;
    }

    .institution-banner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .city-hero {
        min-height: 360px;
        margin-bottom: 22px;
    }

    .city-hero::before, .city-hero__fade {
        position: absolute;
        left: 0;
        transform: none;
        height: 100%;
        margin-left: calc(50% - 50vw);
    }

    .city-search {
        position: static;
        width: 100%;
        margin-top: 22px;
    }

    .city-search .search-form {
        flex-wrap: nowrap;
    }

    .city-search__location-wrapper {
        display: none;
    }

    .city-search .search-input-wrapper {
        flex: 1;
        min-width: 0;
    }

    .city-search .btn-search {
        flex: 0 0 auto;
    }

    .city-search .btn-search__label {
        display: none;
    }

    .city-main-grid {
        grid-template-columns: 1fr;
    }

    .emergency-card {
        grid-template-columns: 1fr;
    }

    .emergency-card__art {
        min-height: 155px;
    }

    .shield-911 {
        right: 42px;
        top: 4px;
    }

    .police-car {
        left: auto;
        right: 188px;
        bottom: 18px;
    }

    .city-info-grid {
        grid-template-columns: 1fr;
    }

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

    .city-block--quick {
        min-width: 0;
    }

    .city-block--quick .quick-grid {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
        min-width: 0;
    }

    .city-block--quick .quick-grid::-webkit-scrollbar {
        display: none;
    }

.city-block--quick .quick-card {
    flex: 0 0 auto;
    width: 150px;
    aspect-ratio: 2 / 1;
}
}

@media (max-width: 560px) {
    .city-hero__inner {
        padding-top: 32px;
    }

    .city-hero__copy h1 {
        font-size: 31px;
    }

    .city-hero__copy p {
        font-size: 14px;
    }

    .offices-grid,
    .procedures-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .city-search {
        padding: 12px;
    }

    .emergency-card__text {
        padding: 24px 22px 12px;
    }

    .emergency-card__text h2 {
        font-size: 31px;
    }

    .police-car {
        transform: scale(0.82);
        transform-origin: bottom right;
        right: 132px;
    }

    .shield-911 {
        width: 96px;
        height: 112px;
        font-size: 41px;
        right: 22px;
    }

    .institution-banner {
        padding: 18px;
    }

    .institution-banner__intro {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   DARK MODE
   ======================================== */

[data-theme="dark"] .page-mi-ciudad {
    background: #0f172a;
}

[data-theme="dark"] .city-page {
    background: transparent;
}

[data-theme="dark"] .city-hero {
    background: #111d31;
}

[data-theme="dark"] .city-hero__fade {
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.98) 0%, rgba(15, 23, 42, 0.86) 38%, rgba(15, 23, 42, 0.16) 78%), linear-gradient(180deg, rgba(15, 23, 42, 0) 64%, #0f172a 100%);
}

[data-theme="dark"] .city-hero__copy h1,
[data-theme="dark"] .city-title {
    color: #f1f5f9;
}

[data-theme="dark"] .city-hero__copy p {
    color: #cbd5e1;
}

[data-theme="dark"] .city-search {
    border-color: #1e293b;
    background: rgba(15, 23, 42, 0.92);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .city-search .search-input {
    background: #1e293b;
    color: #e2e8f0;
}

[data-theme="dark"] .city-search .search-input::placeholder {
    color: #64748b;
}

[data-theme="dark"] .city-search .btn-search {
    color: #000000;
}

[data-theme="dark"] .city-search .location-dropdown {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .city-search .location-dropdown__option {
    color: #e2e8f0;
}

[data-theme="dark"] .city-search .location-dropdown__option:hover {
    background-color: #334155;
}

[data-theme="dark"] .city-search .location-dropdown__option--geo {
    color: #60a5fa;
}

[data-theme="dark"] .city-search .location-dropdown__option--geo:hover {
    background-color: rgba(96, 165, 250, 0.1);
}

[data-theme="dark"] .city-search .location-dropdown__option--all {
    color: #94a3b8;
}

[data-theme="dark"] .city-search .location-dropdown__divider {
    background: #334155;
}

[data-theme="dark"] .city-search .location-dropdown__loading-text {
    color: #64748b;
}

[data-theme="dark"] .city-search .location-dropdown__estado-header {
    color: #e2e8f0;
}

[data-theme="dark"] .city-search .location-dropdown__estado-header:hover {
    background-color: #334155;
}

[data-theme="dark"] .city-search .location-dropdown__estado-count {
    color: #64748b;
    background: #334155;
}

[data-theme="dark"] .city-search .location-dropdown__chevron {
    color: #64748b;
}

[data-theme="dark"] .city-search .location-dropdown__estado--expanded .location-dropdown__chevron {
    color: #60a5fa;
}

[data-theme="dark"] .city-search .location-dropdown__estado--expanded > .location-dropdown__estado-header {
    background-color: rgba(96, 165, 250, 0.1);
    color: #93c5fd;
}

[data-theme="dark"] .city-search .location-dropdown__ciudades {
    border-top-color: #334155;
    background: #0f172a;
}

[data-theme="dark"] .city-search .location-dropdown__ciudad {
    color: #cbd5e1;
}

[data-theme="dark"] .city-search .location-dropdown__ciudad:hover {
    background-color: rgba(96, 165, 250, 0.1);
    color: #93c5fd;
}

[data-theme="dark"] .city-search .location-dropdown__ciudad--all {
    color: #60a5fa;
}

[data-theme="dark"] .city-search .location-dropdown__ciudad-count {
    color: #64748b;
}

[data-theme="dark"] .quick-card {
    background: #111d31;
    border-color: #1e2f4a;
    box-shadow: 0 9px 20px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .quick-card__icon {
    background: #1e293b;
    color: #e2e8f0;
}

[data-theme="dark"] .quick-card__label {
    color: #64748b;
}

[data-theme="dark"] .quick-card strong {
    color: #e2e8f0;
}

[data-theme="dark"] .quick-card--red .quick-card__icon,
[data-theme="dark"] .quick-card--red-soft .quick-card__icon {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

[data-theme="dark"] .quick-card--navy .quick-card__icon {
    background: rgba(30, 58, 138, 0.25);
    color: #93c5fd;
}

[data-theme="dark"] .quick-card--dark .quick-card__icon {
    background: #1e293b;
    color: #e2e8f0;
}

[data-theme="dark"] .quick-card--orange .quick-card__icon {
    background: rgba(249, 115, 22, 0.15);
    color: #fb923c;
}

[data-theme="dark"] .quick-card--blue .quick-card__icon,
[data-theme="dark"] .quick-card--water .quick-card__icon {
    background: rgba(29, 127, 240, 0.15);
    color: #60a5fa;
}

[data-theme="dark"] .services-list {
    background: #111d31;
    border-color: #1e2f4a;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .services-row {
    color: #e2e8f0;
    border-color: #1e2f4a;
}

[data-theme="dark"] .services-row i {
    color: #60a5fa;
}

[data-theme="dark"] .services-row small {
    color: #94a3b8;
}

[data-theme="dark"] .services-all {
    color: #60a5fa;
}

[data-theme="dark"] .emergency-card {
    background: linear-gradient(135deg, #0b1a4a 0%, #0c2d6e 62%, #071040 100%);
    box-shadow: 0 13px 28px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .offices-grid .office-card {
    background: #111d31;
    border-color: #1e2f4a;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .office-card h3 {
    color: #f1f5f9;
}

[data-theme="dark"] .office-card__body span {
    color: #94a3b8;
}

[data-theme="dark"] .office-card p {
    color: #94a3b8;
}

[data-theme="dark"] .city-section-head a {
    color: #60a5fa;
}

[data-theme="dark"] .procedures-grid .procedure-card {
    background: #111d31;
    border-color: #1e2f4a;
    box-shadow: 0 9px 20px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .procedure-card span {
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
}

[data-theme="dark"] .procedure-card strong {
    color: #e2e8f0;
}

[data-theme="dark"] .procedure-card small {
    color: #94a3b8;
}

[data-theme="dark"] .info-panel,
[data-theme="dark"] .suggestion-card {
    background: #111d31;
    border-color: #1e2f4a;
    box-shadow: 0 9px 22px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .news-row {
    color: #e2e8f0;
    border-color: #1e2f4a;
}

[data-theme="dark"] .news-row__icon {
    background: rgba(96, 165, 250, 0.12);
    color: #60a5fa;
}

[data-theme="dark"] .news-row:nth-child(3) .news-row__icon {
    background: rgba(251, 191, 36, 0.12);
    color: #fbbf24;
}

[data-theme="dark"] .news-row__copy strong {
    color: #e2e8f0;
}

[data-theme="dark"] .news-row__copy small {
    color: #94a3b8;
}

[data-theme="dark"] .news-row__copy em {
    color: #64748b;
}

[data-theme="dark"] .panel-bottom-link {
    color: #60a5fa;
}

[data-theme="dark"] .map-illustration {
    background: #0b1426;
}

[data-theme="dark"] .map-legend {
    color: #e2e8f0;
}

[data-theme="dark"] .map-legend i {
    color: #60a5fa;
}

[data-theme="dark"] .suggestion-card {
    background: linear-gradient(180deg, #0c1f3f 0%, #0b1a36 100%);
}

[data-theme="dark"] .suggestion-card h2,
[data-theme="dark"] .suggestion-card p {
    color: #e2e8f0;
}

[data-theme="dark"] .suggestion-card a {
    background: #2563eb;
}

[data-theme="dark"] .suggestion-skyline {
    background: linear-gradient(to top, #1e4d8c 0 28px, transparent 28px), linear-gradient(90deg, transparent 0 6%, #1e4d8c 6% 15%, transparent 15% 19%, #1e4d8c 19% 31%, transparent 31% 36%, #1e4d8c 36% 47%, transparent 47% 52%, #1e4d8c 52% 63%, transparent 63% 69%, #1e4d8c 69% 82%, transparent 82% 87%, #1e4d8c 87% 96%, transparent 96% 100%);
    opacity: 0.7;
}

[data-theme="dark"] .institution-banner {
    background: linear-gradient(90deg, rgba(30, 41, 59, 0.6) 0%, rgba(30, 41, 59, 0.4) 48%, rgba(30, 41, 59, 0.6) 100%);
    border: 1px solid #1e2f4a;
}

[data-theme="dark"] .institution-banner h2,
[data-theme="dark"] .institution-banner p {
    color: #e2e8f0;
}

[data-theme="dark"] .institution-banner__intro a {
    background: #f59e0b;
    color: #111827;
}

[data-theme="dark"] .institution-benefits i {
    color: #fbbf24;
}

[data-theme="dark"] .institution-benefits strong,
[data-theme="dark"] .institution-benefits span {
    color: #e2e8f0;
}
