:root {
    --font-brand: "Viaoda Libre", Georgia, "Times New Roman", serif;

    --blue: #0077ce;
    --blue-2: #005a9c;
    --navy: #073f68;
    --ink: #10324e;
    --muted: #647386;
    --lime: #c4df00;
    --line: #d9e6ef;
    --surface: #ffffff;
    --soft: #f4f9fc;
    --shadow: 0 16px 38px rgba(10, 55, 92, .14);

    --hero-height: 780px;
    --hero-card-overlap: 128px;
    --hero-parallax-y: 0px;
 
    --space-0: 0;
    --space-1: .25rem;   /* 4px */
    --space-2: .5rem;    /* 8px */
    --space-3: .75rem;   /* 12px */
    --space-4: 1rem;     /* 16px */
    --space-5: 1.25rem;  /* 20px */
    --space-6: 1.5rem;   /* 24px */
    --space-7: 2rem;     /* 32px */
    --space-8: 2.5rem;   /* 40px */
    --space-9: 3rem;     /* 48px */
    --space-10: 4rem;    /* 64px */
}

/* ============================================================
   Spacing utilities
   Sistema propio inspirado en Bootstrap
   Escala basada en variables para mantener consistencia visual
============================================================ */

/* Margin */
.m-0 { margin: var(--space-0) !important; }
.m-1 { margin: var(--space-1) !important; }
.m-2 { margin: var(--space-2) !important; }
.m-3 { margin: var(--space-3) !important; }
.m-4 { margin: var(--space-4) !important; }
.m-5 { margin: var(--space-5) !important; }
.m-6 { margin: var(--space-6) !important; }
.m-7 { margin: var(--space-7) !important; }
.m-8 { margin: var(--space-8) !important; }
.m-9 { margin: var(--space-9) !important; }
.m-10 { margin: var(--space-10) !important; }

.mt-0 { margin-top: var(--space-0) !important; }
.mt-1 { margin-top: var(--space-1) !important; }
.mt-2 { margin-top: var(--space-2) !important; }
.mt-3 { margin-top: var(--space-3) !important; }
.mt-4 { margin-top: var(--space-4) !important; }
.mt-5 { margin-top: var(--space-5) !important; }
.mt-6 { margin-top: var(--space-6) !important; }
.mt-7 { margin-top: var(--space-7) !important; }
.mt-8 { margin-top: var(--space-8) !important; }
.mt-9 { margin-top: var(--space-9) !important; }
.mt-10 { margin-top: var(--space-10) !important; }

.mb-0 { margin-bottom: var(--space-0) !important; }
.mb-1 { margin-bottom: var(--space-1) !important; }
.mb-2 { margin-bottom: var(--space-2) !important; }
.mb-3 { margin-bottom: var(--space-3) !important; }
.mb-4 { margin-bottom: var(--space-4) !important; }
.mb-5 { margin-bottom: var(--space-5) !important; }
.mb-6 { margin-bottom: var(--space-6) !important; }
.mb-7 { margin-bottom: var(--space-7) !important; }
.mb-8 { margin-bottom: var(--space-8) !important; }
.mb-9 { margin-bottom: var(--space-9) !important; }
.mb-10 { margin-bottom: var(--space-10) !important; }

.ms-0 { margin-left: var(--space-0) !important; }
.ms-1 { margin-left: var(--space-1) !important; }
.ms-2 { margin-left: var(--space-2) !important; }
.ms-3 { margin-left: var(--space-3) !important; }
.ms-4 { margin-left: var(--space-4) !important; }
.ms-5 { margin-left: var(--space-5) !important; }
.ms-6 { margin-left: var(--space-6) !important; }
.ms-7 { margin-left: var(--space-7) !important; }
.ms-8 { margin-left: var(--space-8) !important; }
.ms-9 { margin-left: var(--space-9) !important; }
.ms-10 { margin-left: var(--space-10) !important; }

.me-0 { margin-right: var(--space-0) !important; }
.me-1 { margin-right: var(--space-1) !important; }
.me-2 { margin-right: var(--space-2) !important; }
.me-3 { margin-right: var(--space-3) !important; }
.me-4 { margin-right: var(--space-4) !important; }
.me-5 { margin-right: var(--space-5) !important; }
.me-6 { margin-right: var(--space-6) !important; }
.me-7 { margin-right: var(--space-7) !important; }
.me-8 { margin-right: var(--space-8) !important; }
.me-9 { margin-right: var(--space-9) !important; }
.me-10 { margin-right: var(--space-10) !important; }

.mx-0 { margin-left: var(--space-0) !important; margin-right: var(--space-0) !important; }
.mx-1 { margin-left: var(--space-1) !important; margin-right: var(--space-1) !important; }
.mx-2 { margin-left: var(--space-2) !important; margin-right: var(--space-2) !important; }
.mx-3 { margin-left: var(--space-3) !important; margin-right: var(--space-3) !important; }
.mx-4 { margin-left: var(--space-4) !important; margin-right: var(--space-4) !important; }
.mx-5 { margin-left: var(--space-5) !important; margin-right: var(--space-5) !important; }
.mx-6 { margin-left: var(--space-6) !important; margin-right: var(--space-6) !important; }
.mx-7 { margin-left: var(--space-7) !important; margin-right: var(--space-7) !important; }
.mx-8 { margin-left: var(--space-8) !important; margin-right: var(--space-8) !important; }
.mx-9 { margin-left: var(--space-9) !important; margin-right: var(--space-9) !important; }
.mx-10 { margin-left: var(--space-10) !important; margin-right: var(--space-10) !important; }

.my-0 { margin-top: var(--space-0) !important; margin-bottom: var(--space-0) !important; }
.my-1 { margin-top: var(--space-1) !important; margin-bottom: var(--space-1) !important; }
.my-2 { margin-top: var(--space-2) !important; margin-bottom: var(--space-2) !important; }
.my-3 { margin-top: var(--space-3) !important; margin-bottom: var(--space-3) !important; }
.my-4 { margin-top: var(--space-4) !important; margin-bottom: var(--space-4) !important; }
.my-5 { margin-top: var(--space-5) !important; margin-bottom: var(--space-5) !important; }
.my-6 { margin-top: var(--space-6) !important; margin-bottom: var(--space-6) !important; }
.my-7 { margin-top: var(--space-7) !important; margin-bottom: var(--space-7) !important; }
.my-8 { margin-top: var(--space-8) !important; margin-bottom: var(--space-8) !important; }
.my-9 { margin-top: var(--space-9) !important; margin-bottom: var(--space-9) !important; }
.my-10 { margin-top: var(--space-10) !important; margin-bottom: var(--space-10) !important; }

.m-auto { margin: auto !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.my-auto { margin-top: auto !important; margin-bottom: auto !important; }

/* Padding */
.p-0 { padding: var(--space-0) !important; }
.p-1 { padding: var(--space-1) !important; }
.p-2 { padding: var(--space-2) !important; }
.p-3 { padding: var(--space-3) !important; }
.p-4 { padding: var(--space-4) !important; }
.p-5 { padding: var(--space-5) !important; }
.p-6 { padding: var(--space-6) !important; }
.p-7 { padding: var(--space-7) !important; }
.p-8 { padding: var(--space-8) !important; }
.p-9 { padding: var(--space-9) !important; }
.p-10 { padding: var(--space-10) !important; }

.pt-0 { padding-top: var(--space-0) !important; }
.pt-1 { padding-top: var(--space-1) !important; }
.pt-2 { padding-top: var(--space-2) !important; }
.pt-3 { padding-top: var(--space-3) !important; }
.pt-4 { padding-top: var(--space-4) !important; }
.pt-5 { padding-top: var(--space-5) !important; }
.pt-6 { padding-top: var(--space-6) !important; }
.pt-7 { padding-top: var(--space-7) !important; }
.pt-8 { padding-top: var(--space-8) !important; }
.pt-9 { padding-top: var(--space-9) !important; }
.pt-10 { padding-top: var(--space-10) !important; }

.pb-0 { padding-bottom: var(--space-0) !important; }
.pb-1 { padding-bottom: var(--space-1) !important; }
.pb-2 { padding-bottom: var(--space-2) !important; }
.pb-3 { padding-bottom: var(--space-3) !important; }
.pb-4 { padding-bottom: var(--space-4) !important; }
.pb-5 { padding-bottom: var(--space-5) !important; }
.pb-6 { padding-bottom: var(--space-6) !important; }
.pb-7 { padding-bottom: var(--space-7) !important; }
.pb-8 { padding-bottom: var(--space-8) !important; }
.pb-9 { padding-bottom: var(--space-9) !important; }
.pb-10 { padding-bottom: var(--space-10) !important; }

.ps-0 { padding-left: var(--space-0) !important; }
.ps-1 { padding-left: var(--space-1) !important; }
.ps-2 { padding-left: var(--space-2) !important; }
.ps-3 { padding-left: var(--space-3) !important; }
.ps-4 { padding-left: var(--space-4) !important; }
.ps-5 { padding-left: var(--space-5) !important; }
.ps-6 { padding-left: var(--space-6) !important; }
.ps-7 { padding-left: var(--space-7) !important; }
.ps-8 { padding-left: var(--space-8) !important; }
.ps-9 { padding-left: var(--space-9) !important; }
.ps-10 { padding-left: var(--space-10) !important; }

.pe-0 { padding-right: var(--space-0) !important; }
.pe-1 { padding-right: var(--space-1) !important; }
.pe-2 { padding-right: var(--space-2) !important; }
.pe-3 { padding-right: var(--space-3) !important; }
.pe-4 { padding-right: var(--space-4) !important; }
.pe-5 { padding-right: var(--space-5) !important; }
.pe-6 { padding-right: var(--space-6) !important; }
.pe-7 { padding-right: var(--space-7) !important; }
.pe-8 { padding-right: var(--space-8) !important; }
.pe-9 { padding-right: var(--space-9) !important; }
.pe-10 { padding-right: var(--space-10) !important; }

.px-0 { padding-left: var(--space-0) !important; padding-right: var(--space-0) !important; }
.px-1 { padding-left: var(--space-1) !important; padding-right: var(--space-1) !important; }
.px-2 { padding-left: var(--space-2) !important; padding-right: var(--space-2) !important; }
.px-3 { padding-left: var(--space-3) !important; padding-right: var(--space-3) !important; }
.px-4 { padding-left: var(--space-4) !important; padding-right: var(--space-4) !important; }
.px-5 { padding-left: var(--space-5) !important; padding-right: var(--space-5) !important; }
.px-6 { padding-left: var(--space-6) !important; padding-right: var(--space-6) !important; }
.px-7 { padding-left: var(--space-7) !important; padding-right: var(--space-7) !important; }
.px-8 { padding-left: var(--space-8) !important; padding-right: var(--space-8) !important; }
.px-9 { padding-left: var(--space-9) !important; padding-right: var(--space-9) !important; }
.px-10 { padding-left: var(--space-10) !important; padding-right: var(--space-10) !important; }

.py-0 { padding-top: var(--space-0) !important; padding-bottom: var(--space-0) !important; }
.py-1 { padding-top: var(--space-1) !important; padding-bottom: var(--space-1) !important; }
.py-2 { padding-top: var(--space-2) !important; padding-bottom: var(--space-2) !important; }
.py-3 { padding-top: var(--space-3) !important; padding-bottom: var(--space-3) !important; }
.py-4 { padding-top: var(--space-4) !important; padding-bottom: var(--space-4) !important; }
.py-5 { padding-top: var(--space-5) !important; padding-bottom: var(--space-5) !important; }
.py-6 { padding-top: var(--space-6) !important; padding-bottom: var(--space-6) !important; }
.py-7 { padding-top: var(--space-7) !important; padding-bottom: var(--space-7) !important; }
.py-8 { padding-top: var(--space-8) !important; padding-bottom: var(--space-8) !important; }
.py-9 { padding-top: var(--space-9) !important; padding-bottom: var(--space-9) !important; }
.py-10 { padding-top: var(--space-10) !important; padding-bottom: var(--space-10) !important; }

/* Gap utilities */
.gap-0 { gap: var(--space-0) !important; }
.gap-1 { gap: var(--space-1) !important; }
.gap-2 { gap: var(--space-2) !important; }
.gap-3 { gap: var(--space-3) !important; }
.gap-4 { gap: var(--space-4) !important; }
.gap-5 { gap: var(--space-5) !important; }
.gap-6 { gap: var(--space-6) !important; }
.gap-7 { gap: var(--space-7) !important; }
.gap-8 { gap: var(--space-8) !important; }
.gap-9 { gap: var(--space-9) !important; }
.gap-10 { gap: var(--space-10) !important; }

/* Display helpers pequeños */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-grid { display: grid !important; }
.d-inline-flex { display: inline-flex !important; }

/* Flex helpers pequeños */
.align-center { align-items: center !important; }
.align-start { align-items: flex-start !important; }
.align-end { align-items: flex-end !important; }

.justify-center { justify-content: center !important; }
.justify-between { justify-content: space-between !important; }
.justify-end { justify-content: flex-end !important; }

.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }

/* Text helpers pequeños */
.text-center { text-align: center !important; }
.text-start { text-align: left !important; }
.text-end { text-align: right !important; }

.text-uppercase { text-transform: uppercase !important; }
.text-brand { font-family: var(--font-brand) !important; }

* { box-sizing: border-box; }

html {
    touch-action: pan-y;
}

body,
.site-header,
.hero,
.quick-section,
.content-band,
.split-section,
.site-footer {
    max-width: 100vw;
}

.hero-photo {
    max-width: 100vw;
}

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

body {
    min-height: 100dvh;
    margin: 0;
    display: flex;
    flex-direction: column;
    color: var(--ink);
    font-family: "Instrument Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #fff;
    overscroll-behavior-x: none;
}

body > main {
    flex: 1 0 auto;
}

.site-footer {
    flex-shrink: 0;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    min-height: 100dvh;
    padding: 24px;
    background: #fff;
    transition: opacity .45s ease, visibility .45s ease;
}

.page-loader img {
    width: min(240px, 70vw);
    animation: loaderPulse 1.15s ease-in-out infinite alternate;
}

.page-loader span {
    width: 72px;
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: #d9e6ef;
}

.page-loader span::before {
    content: "";
    display: block;
    width: 44%;
    height: 100%;
    border-radius: inherit;
    background: var(--lime);
    animation: loaderLine 1s ease-in-out infinite;
}

.page-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@keyframes loaderPulse {
    from { transform: translateY(0); opacity: .78; }
    to { transform: translateY(-4px); opacity: 1; }
}

@keyframes loaderLine {
    0% { transform: translateX(-105%); }
    100% { transform: translateX(235%); }
}

[data-reveal],
[data-reveal-item] {
    opacity: 0;
    transform: translateY(26px);
    transition:
        opacity .7s ease,
        transform .7s cubic-bezier(.2, .8, .2, 1);
    transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-visible,
[data-reveal-item].is-visible {
    opacity: 1;
    transform: translateY(0);
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid rgba(217, 230, 239, .75);
    backdrop-filter: blur(12px);
    transition: box-shadow .2s ease, background-color .2s ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 12px 28px rgba(10, 55, 92, .08);
}

.header-inner {
    min-height: 92px;
    display: flex;
    align-items: center;
    gap: 34px;
}

.brand img { width: 210px; }

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 34px;
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
}

.main-nav a {
    position: relative;
    padding: 36px 0 32px;
}

.main-nav a.active::after,
.main-nav a:hover::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 23px;
    height: 3px;
    border-radius: 999px;
    background: var(--lime);
}

.account-btn,
.primary-btn,
.footer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--blue), #0b8ee8);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(0, 119, 206, .28);
}

.account-btn { min-height: 48px; padding: 0 20px; }
.account-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }

.nav-toggle,
.nav-toggle-btn { display: none; }

.hero {
    position: relative;
    min-height: var(--hero-height);
    overflow: visible;
    isolation: isolate;
    background: linear-gradient(180deg, #fff 0%, #eaf7ff 100%);
}

.hero::after {
    content: "";
    position: absolute;
    left: -5%;
    right: -5%;
    bottom: -76px;
    height: 158px;
    border-radius: 50% 50% 0 0;
    background: #fff;
    border-top: 18px solid var(--lime);
    z-index: -1;
}

.hero-photo {
    position: absolute;
    inset: -110px 0;
    background:
        linear-gradient(90deg, rgba(0, 90, 156, .68) 0%, rgba(0, 119, 206, .22) 30%, rgba(0, 119, 206, .04) 58%, rgba(0, 119, 206, .02) 100%),
        url("../images/hero-bayamon.jpg") 58% 18% / cover no-repeat;
    z-index: -2;
    transform: translate3d(0, var(--hero-parallax-y), 0) scale(1.12);
    transform-origin: center;
    will-change: transform;
}

.hero-inner {
    min-height: var(--hero-height);
    display: flex;
    align-items: flex-end;
    padding: 0 0 25px;
}

.hero-card {
    position: relative;
    z-index: 3;
    width: min(500px, calc(100% - 24px));
    padding: 40px 40px 38px;
    margin: 0;
    border-radius: 30px 118px 30px 30px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 10px 18px rgba(10, 55, 92, .2);
    backdrop-filter: blur(10px);
    transform: translateY(var(--hero-card-overlap));
}

.eyebrow,
.section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
}

.eyebrow {
    margin: 0 0 22px;
    color: #7fb400;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.eyebrow span,
.section-heading span {
    width: 30px;
    height: 4px;
    border-radius: 999px;
    background: var(--lime);
}

.hero-title {
    margin: 0;
    display: grid;
    gap: 2px;
    color: var(--navy);
    font-family: var(--font-brand);
    font-weight: 400;
    line-height: .88;
    text-transform: uppercase;
}

.hero-title-top {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.hero-title-city {
    display: block;
    font-size: clamp(38px, 3.4vw, 50px);
    font-weight: 400;
    letter-spacing: .055em;
}

.hero-title-de {
    display: block;
    color: #d89b00;
    font-size: clamp(18px, 1.55vw, 24px);
    font-weight: 400;
    letter-spacing: .08em;
    transform: translateY(-4px);
}

.hero-title-bayamon {
    display: block;
    max-width: 100%;
    color: var(--navy);
    font-size: clamp(58px, 5.2vw, 78px);
    font-weight: 400;
    letter-spacing: .015em;
    white-space: nowrap;
}

.hero-actions {
    display: grid;
    gap: 16px;
    margin-top: 30px;
}

.primary-btn { width: fit-content; min-height: 48px; padding: 0 24px; }

.text-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    color: var(--blue);
    font-weight: 800;
}

.text-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.quick-section {
    position: relative;
    padding: calc(var(--hero-card-overlap) + 54px) 0 50px;
    background: linear-gradient(180deg, #fff 0%, var(--soft) 100%);
}

.section-heading h2 {
    margin: 0;
    color: var(--navy);
    font-family: var(--font-brand);
    font-size: 30px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 22px;
}

.quick-card {
    position: relative;
    min-height: 210px;
    padding: 26px 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 10px 26px rgba(10, 55, 92, .08);
    transition: transform .18s ease, box-shadow .18s ease;
}

.quick-card:hover,
.service-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.quick-card svg {
    width: 42px;
    height: 42px;
    fill: none;
    stroke: var(--blue);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.quick-card strong {
    display: block;
    margin-top: 20px;
    color: var(--navy);
    font-size: 20px;
    line-height: 1.08;
}

.quick-card small {
    display: block;
    margin-top: 14px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.quick-card b {
    position: absolute;
    right: 22px;
    bottom: 20px;
    color: var(--blue);
    font-size: 26px;
}

.content-band {
    padding: 52px 0 34px;
    background: #fff;
}

.section-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.link-more {
    color: var(--blue);
    font-weight: 800;
}

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

.service-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(10, 55, 92, .08);
    transition: transform .18s ease, box-shadow .18s ease;
}

.service-media {
    position: relative;
    height: 104px;
    background: url("../images/hero-bayamon.jpg") center / cover no-repeat;
}

.service-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 78, 135, .22);
}

.service-media span {
    position: absolute;
    left: 22px;
    bottom: -24px;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    box-shadow: 0 10px 20px rgba(0, 119, 206, .25);
}

.service-media svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-body { padding: 42px 22px 24px; }
.service-body h3 { margin: 0; color: var(--navy); font-size: 19px; }
.service-body p { margin: 12px 0 18px; color: var(--muted); line-height: 1.5; }
.service-body a { color: var(--blue); font-weight: 800; }

.split-section {
    padding: 34px 0 58px;
    background: linear-gradient(180deg, #fff 0%, var(--soft) 100%);
}


/* Home: espaciado más compacto entre secciones */
.home-section-block {
    margin-block: 2rem;
}

.home-section-block-first {
    margin-top: 0;
}

@media (min-width: 768px) {
    .quick-section {
        padding-bottom: 34px;
    }

    .content-band {
        padding: 36px 0 24px;
    }

    .split-section {
        padding: 26px 0 46px;
    }
}

.split-grid {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 42px;
}

.news-list { margin-top: 22px; }

.news-item {
    display: grid;
    grid-template-columns: 96px 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.news-item img {
    width: 96px;
    height: 58px;
    object-fit: cover;
    border-radius: 6px;
}

.news-item strong {
    display: block;
    color: var(--navy);
    font-size: 15px;
    line-height: 1.35;
}

.news-item small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
}

.news-item b { color: var(--blue); font-size: 26px; }

.follow-panel {
    padding-left: 34px;
    border-left: 1px solid var(--line);
}

.follow-panel p {
    margin: 18px 0;
    color: var(--muted);
    line-height: 1.5;
}

.social-row {
    display: flex;
    gap: 13px;
}

.social-row a {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-weight: 900;
    text-transform: uppercase;
}

.social-row a:nth-child(2) { background: #d83a83; }
.social-row a:nth-child(3) { background: #111; }
.social-row a:nth-child(4) { background: #df1f1f; }

.app-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 26px;
    padding: 22px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--blue), var(--navy));
    color: #fff;
}

.app-banner strong,
.app-banner span { display: block; }
.app-banner strong { font-size: 20px; }
.app-banner span { margin-top: 7px; line-height: 1.45; }
.app-banner a {
    flex: 0 0 auto;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 6px;
    font-weight: 800;
}

.site-footer {
    padding: 42px 0 24px;
    background: linear-gradient(135deg, #00487f, #0070bf);
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr .8fr 1.15fr 1fr;
    gap: 58px;
}

.footer-logo {
    width: 190px;
    filter: brightness(0) invert(1);
}

.site-footer h3 {
    margin: 0 0 18px;
    font-size: 16px;
}

.site-footer p,
.site-footer a {
    display: block;
    color: rgba(255, 255, 255, .86);
    line-height: 1.65;
    font-size: 14px;
}

.footer-btn {
    width: fit-content;
    min-height: 38px;
    margin-top: 16px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, .55);
    box-shadow: none;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .18);
    color: rgba(255, 255, 255, .86);
    font-size: 13px;
}

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 30;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 119, 206, .94);
    color: #fff;
    box-shadow: 0 14px 28px rgba(0, 72, 127, .28);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ============================================================
   Internal pages
============================================================ */

.page-hero {
    position: relative;
    min-height: 330px;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(135deg, var(--navy), var(--blue));
}

.page-hero::after {
    content: "";
    position: absolute;
    left: -5%;
    right: -5%;
    bottom: -42px;
    height: 88px;
    border-radius: 50% 50% 0 0;
    background: #fff;
    border-top: 8px solid var(--lime);
    z-index: -1;
}

.page-hero-photo {
    position: absolute;
    inset: -58px 0;
    background:
        linear-gradient(90deg, rgba(0, 60, 104, .9) 0%, rgba(0, 90, 156, .68) 42%, rgba(0, 119, 206, .28) 100%),
        url("../images/hero-bayamon.jpg") 58% 24% / cover no-repeat;
    z-index: -2;
    transform: translate3d(0, var(--hero-parallax-y), 0) scale(1.08);
    transform-origin: center;
    will-change: transform;
}

.page-hero-inner {
    min-height: 330px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 42px 0 68px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, .86);
    font-size: 14px;
    font-weight: 700;
}

.breadcrumb a {
    color: #fff;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: rgba(255, 255, 255, .55);
}

.breadcrumb strong {
    color: var(--lime);
    font-weight: 900;
}

.page-hero-card {
    max-width: 720px;
    color: #fff;
}

.page-hero-card .eyebrow {
    margin-bottom: 18px;
    color: var(--lime);
}

.page-title {
    margin: 0;
    color: #fff;
    font-family: var(--font-brand);
    font-size: clamp(48px, 5.6vw, 78px);
    font-weight: 400;
    line-height: .9;
    letter-spacing: .025em;
    text-transform: uppercase;
}

.page-hero-card p:not(.eyebrow) {
    max-width: 620px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, .88);
    font-size: 18px;
    line-height: 1.6;
}

.inner-section {
    padding: 48px 0 72px;
    background: linear-gradient(180deg, #fff 0%, var(--soft) 100%);
}

.inner-card {
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(10, 55, 92, .08);
}

.inner-card > :first-child {
    margin-top: 0;
}

.inner-card > :last-child {
    margin-bottom: 0;
}

/* ============================================================
   Error pages
============================================================ */

.error-page-body {
    min-height: 100dvh;
    background: var(--soft);
}

.error-page {
    position: relative;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 32px;
    overflow: hidden;
    isolation: isolate;
}

.error-page-photo {
    position: absolute;
    inset: -80px 0;
    background:
        linear-gradient(135deg, rgba(0, 60, 104, .86) 0%, rgba(0, 119, 206, .54) 48%, rgba(196, 223, 0, .24) 100%),
        url("../images/hero-bayamon.jpg") 58% 24% / cover no-repeat;
    z-index: -2;
    transform: scale(1.04);
}

.error-page::after {
    content: "";
    position: absolute;
    left: -8%;
    right: -8%;
    bottom: -82px;
    height: 170px;
    border-radius: 50% 50% 0 0;
    background: #fff;
    border-top: 16px solid var(--lime);
    z-index: -1;
}

.error-card {
    width: min(620px, 100%);
    padding: 42px 42px 38px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 30px 120px 30px 30px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 32px 76px rgba(10, 55, 92, .22);
    backdrop-filter: blur(12px);
}

.error-logo {
    display: inline-flex;
    margin-bottom: 26px;
}

.error-logo img {
    width: min(230px, 70vw);
}

.error-code {
    margin-bottom: 18px;
    color: rgba(0, 90, 156, .12);
    font-family: var(--font-brand);
    font-size: clamp(72px, 14vw, 150px);
    font-weight: 400;
    line-height: .72;
    letter-spacing: .03em;
}

.error-eyebrow {
    margin-bottom: 18px;
}

.error-title {
    margin: 0;
    color: var(--navy);
    font-family: var(--font-brand);
    font-size: clamp(42px, 6vw, 68px);
    font-weight: 400;
    line-height: .9;
    letter-spacing: .025em;
    text-transform: uppercase;
}

.error-message {
    max-width: 500px;
    margin: 22px 0 0;
    color: #40566d;
    font-size: 18px;
    line-height: 1.6;
}

.error-help {
    max-width: 500px;
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
}

.error-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 30px;
}

@media (max-width: 980px) {
    .header-inner { min-height: 78px; gap: 18px; }
    .brand img { width: 178px; }
    .nav-toggle-btn {
        position: relative;
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        margin-left: auto;
        padding: 0;
        border: 1px solid rgba(0, 119, 206, .18);
        border-radius: 14px;
        background: linear-gradient(180deg, #fff 0%, #f2f9fd 100%);
        box-shadow: 0 10px 22px rgba(10, 55, 92, .08);
        cursor: pointer;
        transition:
            transform .18s ease,
            box-shadow .18s ease,
            border-color .18s ease,
            background .18s ease;
    }

    .nav-toggle-btn:hover {
        transform: translateY(-1px);
        border-color: rgba(0, 119, 206, .35);
        box-shadow: 0 14px 26px rgba(10, 55, 92, .12);
    }

    .nav-toggle-btn span {
        position: absolute;
        width: 21px;
        height: 2px;
        border-radius: 999px;
        background: var(--navy);
        transition:
            transform .22s ease,
            opacity .16s ease,
            background-color .18s ease;
    }

    .nav-toggle-btn span:nth-child(1) {
        transform: translateY(-7px);
    }

    .nav-toggle-btn span:nth-child(2) {
        transform: translateY(0);
    }

    .nav-toggle-btn span:nth-child(3) {
        transform: translateY(7px);
    }

    .nav-toggle:checked + .nav-toggle-btn {
        background: linear-gradient(135deg, var(--blue), var(--navy));
        border-color: transparent;
        box-shadow: 0 14px 28px rgba(0, 90, 156, .24);
    }

    .nav-toggle:checked + .nav-toggle-btn span {
        background: #fff;
    }

    .nav-toggle:checked + .nav-toggle-btn span:nth-child(1) {
        transform: rotate(45deg);
    }

    .nav-toggle:checked + .nav-toggle-btn span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle:checked + .nav-toggle-btn span:nth-child(3) {
        transform: rotate(-45deg);
    }
    .main-nav {
        position: absolute;
        top: 78px;
        left: 14px;
        right: 14px;
        max-width: calc(100vw - 28px);
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 10px 18px 18px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 8px;
        box-shadow: var(--shadow);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
    }
    .main-nav a { padding: 14px 0; }
    .main-nav a::after { display: none; }
    .nav-toggle:checked ~ .main-nav {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .account-btn { min-height: 42px; padding: 0 14px; }
    .quick-grid { grid-template-columns: repeat(2, 1fr); }
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .split-grid,
    .footer-grid { grid-template-columns: 1fr; }
    .follow-panel { padding-left: 0; border-left: 0; }
    .footer-bottom { flex-wrap: wrap; justify-content: flex-start; }
}

@media (max-width: 640px) {
    .container { width: min(100% - 22px, 1120px); }
    .brand img { width: 150px; }
    .account-btn {
        flex: 0 0 44px;
        width: 44px;
        min-width: 44px;
        height: 44px;
        min-height: 44px;
        padding: 0;
        gap: 0;
        font-size: 0;
        line-height: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .account-btn svg {
        flex: 0 0 auto;
        display: block;
        width: 21px;
        height: 21px;
        margin: 0;
        transform: none;
    }

    .hero,
    .hero-inner {
        min-height: 740px;
    }

    .hero::after {
        bottom: -54px;
        height: 112px;
        border-top-width: 12px;
    }

    .hero-photo {
        inset: 0;
        background:
            linear-gradient(180deg, rgba(0, 90, 156, .06) 0%, rgba(0, 90, 156, .12) 34%, rgba(0, 90, 156, .36) 64%, rgba(0, 90, 156, .18) 100%),
            url("../images/hero-bayamon.jpg") 60% 20% / cover no-repeat;
        transform: none;
        will-change: auto;
    }

    .hero-inner {
        align-items: flex-end;
        padding: 180px 0 42px;
    }

    .hero-card {
        width: min(86%, 350px);
        margin: 0 auto;
        padding: 24px 22px;
        border-radius: 20px 44px 20px 20px;
        background: rgba(255, 255, 255, .93);
        transform: none;
    }

    .eyebrow {
        margin-bottom: 18px;
    }

    .hero-title-top {
        gap: 8px;
    }

    .hero-title-city {
        font-size: 30px;
        letter-spacing: .04em;
    }

    .hero-title-de {
        font-size: 16px;
        letter-spacing: .08em;
        transform: translateY(-3px);
    }

    .hero-title-bayamon {
        font-size: 49px;
        line-height: .9;
        letter-spacing: .01em;
    }

    .hero p:not(.eyebrow) {
        margin-top: 18px;
        font-size: 16px;
        line-height: 1.55;
    }

    .hero-actions {
        margin-top: 22px;
        gap: 12px;
    }

    .primary-btn {
        width: 100%;
        min-height: 52px;
    }

    .text-btn {
        width: fit-content;
        margin: 0 auto;
    }

    .quick-section {
        padding-top: 34px;
    }

    .quick-grid,
    .service-grid { grid-template-columns: 1fr; }
    .quick-section { padding-top: 34px; }
    .quick-card { min-height: 166px; padding: 22px; }
    .section-row { align-items: flex-start; flex-direction: column; }
    .news-item { grid-template-columns: 82px 1fr auto; gap: 12px; }
    .news-item img { width: 82px; }
    .app-banner { align-items: flex-start; flex-direction: column; }
    .back-to-top { right: 16px; bottom: 16px; }

    [data-reveal],
    [data-reveal-item] { transform: translateY(18px); }

    .page-hero,
    .page-hero-inner {
        min-height: 300px;
    }

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

    .breadcrumb {
        font-size: 13px;
        gap: 7px;
    }

    .page-title {
        font-size: clamp(38px, 11vw, 54px);
    }

    .page-hero-card p:not(.eyebrow) {
        font-size: 16px;
    }

    .inner-section {
        padding: 42px 0 58px;
    }

    .inner-card {
        padding: 24px 20px;
    }

    .error-page {
        padding: 22px;
    }

    .error-card {
        padding: 30px 24px 28px;
        border-radius: 22px 58px 22px 22px;
    }

    .error-logo img {
        width: 180px;
    }

    .error-code {
        font-size: 86px;
    }

    .error-title {
        font-size: 40px;
    }

    .error-message {
        font-size: 16px;
    }

    .error-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .error-actions .primary-btn,
    .error-actions .text-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 390px) {
    .header-inner { gap: 10px; }
    .brand img { width: 136px; }

    .hero,
    .hero-inner {
        min-height: 700px;
    }

    .hero-photo {
        background-position: 61% 20%;
    }

    .hero-card {
        width: min(88%, 330px);
        padding: 22px 18px;
        border-radius: 18px 36px 18px 18px;
    }

    .hero-title-city {
        font-size: 27px;
    }

    .hero-title-de {
        font-size: 15px;
    }

    .hero-title-bayamon {
        font-size: 44px;
        line-height: .9;
    }

    .hero p:not(.eyebrow) {
        font-size: 15px;
    }

    .section-heading h2 { font-size: 23px; }
    .quick-card strong { font-size: 18px; }

    .news-item {
        grid-template-columns: 1fr auto;
    }

    .news-item img { display: none; }
}

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

    [data-reveal],
    [data-reveal-item] {
        opacity: 1;
        transform: none;
    }
}
/* ============================================================
   Mi Cuenta - Centro ciudadano / edición de cuenta
   ============================================================ */
.account-center-section,
.account-settings-section {
    background: linear-gradient(180deg, #f8fbff 0%, #eef6fb 100%);
}

.account-center,
.account-settings {
    position: relative;
    z-index: 2;
}

.account-center-grid {
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.35fr);
    gap: 1.4rem;
    align-items: stretch;
}

.account-profile-hero-card,
.account-quick-card,
.account-notice-card,
.account-settings-card,
.account-settings-head {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(13, 88, 145, 0.12);
    border-radius: 22px;
    box-shadow: 0 18px 44px rgba(8, 55, 95, 0.09);
}

.account-profile-hero-card {
    padding: 1.6rem;
}

.account-profile-top {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.account-profile-avatar {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    border: 6px solid #fff;
    box-shadow: 0 12px 30px rgba(8, 55, 95, 0.16);
    background: linear-gradient(135deg, #e9f5ff, #fff);
    overflow: hidden;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    color: #075ca8;
    font-size: 3rem;
    font-weight: 900;
}

.account-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-profile-main h2 {
    margin: 0 0 .55rem;
    color: #082f53;
    font-size: clamp(1.7rem, 3vw, 2.25rem);
    font-weight: 900;
}

.account-profile-main p {
    margin: .35rem 0;
    color: #0e4779;
    font-weight: 600;
}

.account-profile-main i {
    width: 1.3rem;
    color: #086fc2;
}

.account-verified-pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-top: .65rem;
    padding: .45rem .85rem;
    border-radius: 999px;
    font-size: .88rem;
    font-weight: 800;
}

.account-verified-pill.is-verified {
    background: #e9f8df;
    color: #2c721c;
}

.account-verified-pill.is-pending {
    background: #fff3cd;
    color: #8a5b00;
}

.account-profile-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .8rem;
    margin-top: 1.45rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(13, 88, 145, 0.14);
}

.account-profile-meta div {
    min-width: 0;
    display: grid;
    gap: .25rem;
    color: #0b3a62;
}

.account-profile-meta i {
    color: #086fc2;
    font-size: 1.1rem;
}

.account-profile-meta span {
    font-size: .82rem;
    color: #55708a;
    font-weight: 700;
}

.account-profile-meta strong {
    font-size: .88rem;
    color: #082f53;
    line-height: 1.35;
}

.account-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .95rem;
}

.account-quick-card {
    position: relative;
    min-height: 156px;
    padding: 1.1rem .95rem;
    text-align: center;
    text-decoration: none;
    color: #07375f;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.account-quick-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 50px rgba(8, 55, 95, 0.14);
    border-color: rgba(8, 111, 194, 0.35);
    color: #07375f;
}

.account-quick-card.is-disabled {
    opacity: .78;
    cursor: default;
}

.account-quick-card.is-disabled:hover {
    transform: none;
}

.account-quick-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #eef8ff;
    color: #086fc2;
    font-size: 1.8rem;
    margin-bottom: .8rem;
}

.account-quick-card strong {
    font-size: 1rem;
    font-weight: 900;
    margin-bottom: .35rem;
}

.account-quick-card small {
    display: block;
    color: #244d75;
    line-height: 1.3;
}

.account-quick-arrow {
    margin-top: .65rem;
    color: #086fc2;
}

.account-notice-card {
    margin-top: 1.35rem;
    padding: 1.25rem 1.45rem;
    display: grid;
    grid-template-columns: auto minmax(220px, .8fr) 1.4fr auto;
    gap: 1.1rem;
    align-items: center;
}

.account-notice-icon {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: #eaf5ff;
    color: #086fc2;
    display: grid;
    place-items: center;
    font-size: 2rem;
}

.account-notice-card h3,
.account-settings-head h2,
.account-settings-card h3 {
    margin: 0 0 .35rem;
    color: #082f53;
    font-weight: 900;
}

.account-notice-card p,
.account-settings-head p,
.account-settings-card-head p,
.account-sensitive-section p {
    margin: 0;
    color: #496782;
}

.account-notice-card ul {
    margin: 0;
    color: #0b3a62;
}

.account-settings-head {
    padding: 1.35rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.account-settings-nav {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 1rem;
}

.account-settings-nav a {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .7rem 1rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(13, 88, 145, 0.12);
    color: #07375f;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(8, 55, 95, 0.06);
}

.account-settings-card {
    padding: 1.35rem;
    margin-top: 1rem;
    scroll-margin-top: 120px;
}

.account-settings-card-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.15rem;
}

.account-form-section {
    padding: 1rem 0;
    border-top: 1px solid rgba(13, 88, 145, 0.1);
}

.account-form-section:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.account-form-section h4 {
    color: #082f53;
    font-weight: 900;
    margin: 0 0 .85rem;
}

.account-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.form-field.span-2 {
    grid-column: 1 / -1;
}

.form-field label {
    display: block;
    margin-bottom: .35rem;
    color: #082f53;
    font-weight: 800;
}

.form-field label span {
    color: #b42318;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(13, 88, 145, 0.18);
    border-radius: 14px;
    padding: .75rem .9rem;
    color: #082f53;
    background: #fff;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #0878d8;
    box-shadow: 0 0 0 .22rem rgba(8, 120, 216, .12);
}

.field-error {
    min-height: 1.1rem;
    margin-top: .35rem;
    color: #b42318;
    font-size: .84rem;
    font-weight: 700;
}

.form-field .is-invalid,
.form-field.is-invalid input,
.form-field.is-invalid select {
    border-color: #f04438;
}

.account-sensitive-summary {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin: .85rem 0 1rem;
}

.account-sensitive-summary span {
    padding: .5rem .75rem;
    border-radius: 999px;
    background: #eef8ff;
    color: #0b3a62;
    font-weight: 700;
}

.account-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: .75rem;
    margin-top: 1rem;
}

.public-password-field {
    position: relative;
}

.public-password-field input {
    padding-right: 3.4rem;
}

.password-toggle {
    position: absolute;
    right: .75rem;
    top: 2.15rem;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #eef2f7;
    color: #07375f;
    display: grid;
    place-items: center;
}

/* Dropzone image component */
.imgdz-wrap .dropzone {
    min-height: 190px;
    border: 2px dashed rgba(8, 111, 194, 0.28);
    border-radius: 18px;
    background: #f7fbff;
    cursor: pointer;
    display: grid;
    place-items: center;
    padding: 1rem;
    transition: border-color .2s ease, background .2s ease;
}

.imgdz-wrap .dropzone.is-drag,
.imgdz-wrap .dropzone:hover {
    border-color: #0878d8;
    background: #eef8ff;
}

.imgdz-wrap .dz-inner {
    text-align: center;
    color: #0b3a62;
}

.imgdz-wrap .dz-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    margin: 0 auto .75rem;
    display: grid;
    place-items: center;
    background: #eaf5ff;
    color: #086fc2;
    font-size: 1.45rem;
}

.imgdz-wrap .dz-title {
    font-weight: 900;
    color: #082f53;
}

.imgdz-wrap .dz-sub {
    font-size: .92rem;
    color: #496782;
}

.imgdz-wrap .editor-stage {
    background: #eef3f8;
}

.imgdz-wrap .editor-img {
    max-width: 100%;
    display: block;
}

.cropper-container {
    direction: ltr;
    font-size: 0;
    line-height: 0;
    position: relative;
    touch-action: none;
    user-select: none;
}

@media (max-width: 1199.98px) {
    .account-center-grid {
        grid-template-columns: 1fr;
    }

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

    .account-notice-card {
        grid-template-columns: auto 1fr;
    }

    .account-notice-card ul,
    .account-notice-card .public-btn {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767.98px) {
    .account-profile-top,
    .account-settings-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .account-profile-meta,
    .account-form-grid {
        grid-template-columns: 1fr;
    }

    .account-quick-grid {
        grid-template-columns: 1fr;
    }

    .form-field.span-2 {
        grid-column: auto;
    }

    .account-form-actions {
        justify-content: stretch;
    }

    .account-form-actions .public-btn {
        width: 100%;
    }
}

/* ============================================================
   Mi Cuenta edición v3 - Layout, forms y dropzone polish
   ============================================================ */
.account-settings-card--full {
    width: 100%;
}

.account-settings-secondary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}

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

.account-form-grid--single {
    grid-template-columns: 1fr;
}

.account-settings-card {
    overflow: hidden;
}

.account-settings-card-head {
    align-items: flex-start;
}

.public-form .select2-container--bootstrap-5 .select2-selection,
.public-form .select2-container .select2-selection {
    min-height: 48px;
    border: 1px solid rgba(13, 88, 145, 0.18);
    border-radius: 14px;
    background: #fff;
    display: flex;
    align-items: center;
    color: #082f53;
}

.public-form .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered,
.public-form .select2-container .select2-selection--single .select2-selection__rendered {
    padding-left: .9rem;
    color: #082f53;
    font-weight: 600;
}

.public-form .select2-container--bootstrap-5.select2-container--focus .select2-selection,
.public-form .select2-container.select2-container--focus .select2-selection {
    border-color: #0878d8;
    box-shadow: 0 0 0 .22rem rgba(8, 120, 216, .12);
}

.public-password-field {
    position: relative;
}

.public-password-field input[type='password'],
.public-password-field input[type='text'] {
    padding-right: 3.65rem;
}

.password-toggle {
    position: absolute;
    right: .65rem;
    top: 2.23rem;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: #eef4fa;
    color: #075ca8;
    display: inline-grid;
    place-items: center;
    z-index: 3;
    box-shadow: 0 8px 20px rgba(8, 55, 95, .08);
}

.password-toggle:hover {
    background: #e2f1ff;
    color: #07375f;
}

.public-password-field input[type='password']::-ms-reveal,
.public-password-field input[type='password']::-ms-clear {
    display: none;
}

.public-btn.is-loading,
.public-btn:disabled {
    pointer-events: none;
    opacity: .78;
}

.public-btn .public-btn-spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    display: inline-block;
    margin-right: .45rem;
    vertical-align: -.15em;
    animation: public-spin .65s linear infinite;
}

@keyframes public-spin {
    to { transform: rotate(360deg); }
}

.account-identification-upload {
    margin-top: 1rem;
}

.account-id-dropzone .imgdz-wrap,
.account-photo-card .imgdz-wrap {
    display: block;
    margin-left: 0;
    margin-right: 0;
}

.account-id-dropzone .imgdz-wrap > [class*='col-'],
.account-photo-card .imgdz-wrap > [class*='col-'] {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    padding-left: 0;
    padding-right: 0;
    margin-bottom: .9rem;
}

.imgdz-wrap .form-label {
    color: #082f53;
    font-weight: 800;
    margin-bottom: .45rem;
}

.imgdz-wrap .txt-opt {
    color: #55708a;
    font-size: .85rem;
    font-weight: 700;
}

.imgdz-wrap .dropzone {
    min-height: 172px;
    border-color: #0878d8;
    border-style: dashed;
    border-width: 2px;
    background: #edf8ff;
}

.imgdz-wrap .d-flex.flex-wrap.gap-2.mt-2 {
    margin-top: .8rem !important;
}

.imgdz-wrap .btn,
.imgdz-wrap .btn-group .btn {
    border: 1px solid rgba(13, 88, 145, .18);
    border-radius: 12px;
    background: #fff;
    color: #07375f;
    min-height: 38px;
    padding: .48rem .75rem;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(8, 55, 95, .06);
    appearance: none;
}

.imgdz-wrap .btn:hover,
.imgdz-wrap .btn-group .btn:hover {
    background: #eef8ff;
    border-color: rgba(8, 120, 216, .35);
    color: #075ca8;
}

.imgdz-wrap .btn-outline-danger {
    color: #b42318;
    border-color: rgba(180, 35, 24, .25);
}

.imgdz-wrap .btn-outline-danger:hover {
    background: #fff1f0;
    color: #9b1c13;
}

.imgdz-wrap .border.rounded.p-3 {
    border: 1px solid rgba(13, 88, 145, .12) !important;
    border-radius: 16px !important;
    background: #f8fbff;
    padding: .9rem !important;
}

.imgdz-wrap .btn-group {
    display: inline-flex;
    gap: .35rem;
    flex-wrap: wrap;
}

.imgdz-wrap .btn-group .btn {
    width: 38px;
    padding: 0;
    display: inline-grid;
    place-items: center;
}

.imgdz-wrap .editor-stage {
    min-height: 240px;
    background: #eef4fa;
    border-radius: 14px;
}

.account-photo-card .imgdz-wrap .editor-stage {
    min-height: 300px;
}

@media (max-width: 1199.98px) {
    .account-form-grid--thirds {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .account-settings-secondary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .account-form-grid--thirds,
    .account-form-grid--single {
        grid-template-columns: 1fr;
    }

    .password-toggle {
        top: 2.15rem;
    }
}

/* ============================================================
   Public Account - clean fixes v3.1
   ============================================================ */
.d-none,
[hidden] {
    display: none !important;
}

.me-2 { margin-right: .5rem !important; }
.mt-2 { margin-top: .5rem !important; }
.mb-2 { margin-bottom: .5rem !important; }
.opacity-75 { opacity: .75 !important; }
.fw-semibold { font-weight: 700 !important; }
.small { font-size: .86rem !important; }
.text-muted { color: #5f7693 !important; }

.public-form .form-field {
    position: relative;
}

.public-form input,
.public-form select,
.public-form textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(24, 75, 125, .18);
    border-radius: 15px;
    background: #fff;
    color: #0a3158;
    padding: .78rem 1rem;
    font: inherit;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.public-form textarea {
    min-height: 96px;
    resize: vertical;
}

.public-form input:focus,
.public-form select:focus,
.public-form textarea:focus {
    border-color: rgba(0, 132, 214, .55);
    box-shadow: 0 0 0 .2rem rgba(0, 132, 214, .12);
}

.public-form .is-invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 .18rem rgba(239, 68, 68, .12) !important;
}

.field-error,
.public-form [data-error-for] {
    display: block;
    min-height: 1rem;
    color: #b91c1c;
    font-size: .82rem;
    font-weight: 700;
    margin-top: .35rem;
}

.public-password-field input[type='password'],
.public-password-field input[type='text'] {
    padding-right: 3.7rem !important;
}

.password-toggle {
    position: absolute;
    right: .75rem;
    top: 2.15rem;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: #eef5fb;
    color: #075a9f;
    cursor: pointer;
    z-index: 3;
    transition: transform .18s ease, background .18s ease, color .18s ease;
}

.password-toggle:hover {
    background: #dceeff;
    color: #003f73;
    transform: translateY(-1px);
}

.public-password-field input[type='password']::-ms-reveal,
.public-password-field input[type='password']::-ms-clear {
    display: none;
}

.public-btn,
a.public-btn,
button.public-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border-radius: 999px;
    border: 1px solid transparent;
    padding: .72rem 1.25rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.public-btn-primary,
button.public-btn-primary {
    background: linear-gradient(135deg, #0788dd, #006fbd);
    border-color: rgba(0, 111, 189, .25);
    color: #fff !important;
    box-shadow: 0 12px 26px rgba(0, 111, 189, .22);
}

.public-btn-primary:hover,
.public-btn-primary:focus {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(0, 111, 189, .28);
}

.public-btn-outline,
a.public-btn-outline {
    background: #fff;
    border-color: rgba(0, 111, 189, .28);
    color: #06345f !important;
}

.public-btn-outline:hover,
.public-btn-outline:focus {
    background: #eef7ff;
    border-color: rgba(0, 111, 189, .55);
}

.public-btn:disabled,
.public-btn.is-loading {
    pointer-events: none;
    opacity: .74;
    transform: none !important;
}

.public-btn-spinner {
    width: 1rem;
    height: 1rem;
    border-radius: 999px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    animation: publicSpin .65s linear infinite;
}

@keyframes publicSpin { to { transform: rotate(360deg); } }

.account-settings-secondary-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.account-settings-card--full {
    grid-column: 1 / -1;
}

.account-form-grid--thirds {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.account-form-grid--single {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.public-form .select2-container {
    width: 100% !important;
}

.public-form .select2-container .select2-selection--single {
    min-height: 48px;
    border: 1px solid rgba(24, 75, 125, .18);
    border-radius: 15px;
    display: flex;
    align-items: center;
    background: #fff;
}

.public-form .select2-container .select2-selection--single .select2-selection__rendered {
    color: #0a3158;
    padding-left: 1rem;
    padding-right: 2.5rem;
    line-height: 48px;
}

.public-form .select2-container .select2-selection--single .select2-selection__arrow {
    height: 48px;
    right: .65rem;
}

.imgdz-wrap {
    width: 100%;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    gap: .9rem;
}

.imgdz-wrap > [class*='col-'] {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}

.imgdz-wrap .dropzone {
    min-height: 150px;
    border: 2px dashed #0788dd;
    border-radius: 18px;
    background: #eef8ff;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.imgdz-wrap .dropzone:hover,
.imgdz-wrap .dropzone.is-drag {
    background: #e2f3ff;
    border-color: #006fbd;
    box-shadow: 0 14px 30px rgba(0, 111, 189, .13);
}

.imgdz-wrap .dz-inner {
    text-align: center;
    color: #0a3158;
}

.imgdz-wrap .dz-icon {
    width: 42px;
    height: 42px;
    margin: 0 auto .6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #dff0ff;
    color: #0788dd;
}

.imgdz-wrap .dz-title {
    font-weight: 900;
}

.imgdz-wrap .dz-sub {
    color: #486686;
    font-size: .94rem;
}

.imgdz-wrap .btn,
.imgdz-wrap button[data-iz-pick],
.imgdz-wrap button[data-iz-remove],
.imgdz-wrap [data-iz-toolbar] .btn {
    border: 1px solid rgba(24, 75, 125, .16);
    border-radius: 12px;
    background: #fff;
    color: #0a3158;
    padding: .52rem .78rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(15, 70, 120, .08);
}

.imgdz-wrap button[data-iz-pick] {
    color: #075a9f;
}

.imgdz-wrap button[data-iz-remove] {
    color: #b91c1c;
}

.imgdz-wrap .border.rounded.p-3 {
    border: 1px solid rgba(24, 75, 125, .12) !important;
    border-radius: 18px !important;
    background: #f7fbff;
    padding: 1rem !important;
}

.imgdz-wrap .editor-stage {
    min-height: 260px;
    background: #eaf2fa;
    border-radius: 18px;
    overflow: hidden;
}

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

.editor-empty {
    color: #0a3158;
}

.cropper-container {
    max-width: 100% !important;
}

.account-side-card,
.account-side-card * {
    color: #fff;
}

.account-side-card .public-btn-light {
    color: #07375f !important;
    background: #fff;
    border-color: #fff;
}

@media (max-width: 991.98px) {
    .account-settings-secondary-grid,
    .account-form-grid--thirds {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .password-toggle {
        top: 2.05rem;
        right: .6rem;
    }

    .imgdz-wrap .editor-stage {
        min-height: 220px;
    }
}

/* ============================================================
   Mi Cuenta editar - layout v3.2
   ============================================================ */
.account-form-grid--four {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.account-form-grid--two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.account-identification-grid {
    display: grid;
    grid-template-columns: minmax(280px, .9fr) minmax(320px, 1.1fr);
    gap: 1.25rem;
    align-items: start;
}

.account-identification-fields,
.account-identification-dropzone {
    min-width: 0;
}

.account-identification-dropzone .imgdz-wrap {
    margin-top: 0;
}

.account-sensitive-summary {
    margin-bottom: 1rem;
}

.account-sensitive-summary span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .45rem .75rem;
    border-radius: 999px;
    background: #eef7ff;
    color: #0a3158;
    font-size: .9rem;
    font-weight: 800;
}

/* Dropzone público limpio */
.imgdz-wrap {
    width: 100%;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    gap: .95rem;
    margin: 0;
}

.imgdz-pane {
    min-width: 0;
}

.imgdz-wrap input[type='file'][data-iz-input] {
    display: none !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
    pointer-events: none !important;
}

.imgdz-wrap .dropzone {
    width: 100%;
    min-height: 150px;
    border: 2px dashed #0788dd !important;
    border-radius: 18px !important;
    background: #eef8ff !important;
    padding: 1.25rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.imgdz-wrap .dropzone:hover,
.imgdz-wrap .dropzone.is-drag {
    background: #e2f3ff !important;
    border-color: #006fbd !important;
    box-shadow: 0 14px 30px rgba(0, 111, 189, .13);
}

.imgdz-wrap .dz-inner {
    text-align: center;
    color: #0a3158;
}

.imgdz-wrap .dz-icon {
    width: 42px;
    height: 42px;
    margin: 0 auto .6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #dff0ff;
    color: #0788dd;
}

.imgdz-wrap .dz-title {
    font-weight: 900;
}

.imgdz-wrap .dz-sub {
    color: #486686;
    font-size: .94rem;
}

.imgdz-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: .75rem;
}

.imgdz-btn,
.imgdz-tool-btn {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid rgba(24, 75, 125, .16);
    border-radius: 12px;
    background: #fff;
    color: #0a3158;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(15, 70, 120, .08);
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.imgdz-btn {
    min-height: 40px;
    padding: .55rem .85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
}

.imgdz-btn-pick {
    color: #075a9f;
}

.imgdz-btn-remove {
    color: #b91c1c;
}

.imgdz-btn:hover,
.imgdz-tool-btn:hover {
    background: #eef8ff;
    border-color: rgba(8, 120, 216, .35);
    transform: translateY(-1px);
}

.imgdz-editor-box {
    border: 1px solid rgba(24, 75, 125, .12);
    border-radius: 18px;
    background: #f7fbff;
    padding: 1rem;
}

.imgdz-editor-title {
    color: #5f7693;
    font-size: .86rem;
    font-weight: 800;
}

.imgdz-toolbar {
    display: inline-flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.imgdz-tool-btn {
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-grid;
    place-items: center;
}

.imgdz-tool-btn:disabled {
    opacity: .48;
    cursor: not-allowed;
    transform: none;
}

.imgdz-wrap .editor-stage {
    position: relative;
    width: 100%;
    min-height: 260px;
    background: #eaf2fa;
    border-radius: 18px;
    overflow: hidden;
}

.account-photo-card .imgdz-wrap .editor-stage {
    min-height: 300px;
}

.imgdz-wrap .editor-img {
    display: block;
    max-width: 100%;
}

.imgdz-wrap .editor-empty {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    color: #0a3158;
    z-index: 1;
}

.imgdz-wrap.is-has-image .editor-empty,
.imgdz-wrap .dropzone.is-has-image ~ .editor-empty,
.imgdz-wrap .editor-empty.d-none {
    display: none !important;
}

.imgdz-wrap.is-has-image .editor-img {
    display: block !important;
}

.imgdz-help {
    color: #5f7693;
    font-size: .86rem;
    margin-top: .6rem;
}

.cropper-container {
    max-width: 100% !important;
    z-index: 2;
}

@media (max-width: 1199.98px) {
    .account-form-grid--four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .account-identification-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991.98px) {
    .account-settings-secondary-grid,
    .account-form-grid--thirds,
    .account-form-grid--two {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .account-form-grid--four {
        grid-template-columns: 1fr;
    }

    .imgdz-wrap .editor-stage {
        min-height: 220px;
    }
}

/* ============================================================
   Public image dropzone cropper visibility fix
   Evita imagen doble: imagen original + editor Cropper.
   ============================================================ */
.imgdz-wrap .editor-img.cropper-hidden,
.imgdz-wrap.is-has-image .editor-img.cropper-hidden {
    display: none !important;
}

.imgdz-wrap.is-has-image .editor-empty,
.imgdz-wrap.is-has-image .editor-empty.d-none {
    display: none !important;
}

.imgdz-wrap.is-has-image .cropper-container {
    display: block !important;
}

/* ============================================================
   Public Header - cuenta ciudadana autenticada
   ============================================================ */
.account-menu {
    position: relative;
    flex: 0 0 auto;
}

.account-user-btn {
    min-height: 54px;
    padding: .45rem .75rem .45rem .55rem;
    border: 0;
    cursor: pointer;
    white-space: nowrap;
}

.account-user-avatar,
.account-menu-avatar {
    overflow: hidden;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #eaf6ff, #ffffff);
    color: #075ca8;
    font-weight: 900;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .78);
}

.account-user-avatar {
    width: 40px;
    height: 40px;
    font-size: 1rem;
}

.account-menu-avatar {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    font-size: 1.1rem;
}

.account-user-avatar img,
.account-menu-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-user-text {
    display: grid;
    gap: .05rem;
    min-width: 0;
    text-align: left;
    line-height: 1.05;
}

.account-user-text small {
    color: rgba(255, 255, 255, .78);
    font-size: .72rem;
    font-weight: 800;
}

.account-user-text strong {
    max-width: 132px;
    overflow: hidden;
    color: #fff;
    font-size: .95rem;
    font-weight: 900;
    text-overflow: ellipsis;
}

.account-user-caret {
    color: rgba(255, 255, 255, .88);
    font-size: .78rem;
    transition: transform .18s ease;
}

.account-menu.is-open .account-user-caret,
.account-menu:focus-within .account-user-caret {
    transform: rotate(180deg);
}

.account-menu-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 60;
    width: min(290px, calc(100vw - 24px));
    padding: .6rem;
    border: 1px solid rgba(13, 88, 145, .14);
    border-radius: 20px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 24px 62px rgba(8, 55, 95, .20);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(.98);
    transform-origin: top right;
    transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
}

.account-menu-dropdown::before {
    content: "";
    position: absolute;
    top: -7px;
    right: 24px;
    width: 14px;
    height: 14px;
    border-left: 1px solid rgba(13, 88, 145, .14);
    border-top: 1px solid rgba(13, 88, 145, .14);
    background: #fff;
    transform: rotate(45deg);
}

.account-menu.is-open .account-menu-dropdown,
.account-menu:focus-within .account-menu-dropdown,
.account-menu:hover .account-menu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.account-menu-head {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .75rem .75rem .9rem;
    margin-bottom: .35rem;
    border-bottom: 1px solid rgba(13, 88, 145, .10);
}

.account-menu-head strong,
.account-menu-head small {
    display: block;
}

.account-menu-head strong {
    color: #082f53;
    font-size: .98rem;
    font-weight: 900;
    line-height: 1.2;
}

.account-menu-head small {
    margin-top: .2rem;
    color: #60768d;
    font-size: .82rem;
    font-weight: 700;
}

.account-menu-dropdown a,
.account-menu-logout button {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .65rem .75rem;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: #07375f;
    font: inherit;
    font-size: .94rem;
    font-weight: 800;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background .16s ease, color .16s ease, transform .16s ease;
}

.account-menu-dropdown a:hover,
.account-menu-logout button:hover {
    background: #eef8ff;
    color: #006fbd;
    transform: translateX(2px);
}

.account-menu-dropdown i,
.account-menu-logout i {
    width: 1.15rem;
    color: #0878d8;
    text-align: center;
}

.account-menu-logout {
    padding-top: .35rem;
    margin-top: .35rem;
    border-top: 1px solid rgba(13, 88, 145, .10);
}

.account-menu-logout button {
    color: #a42318;
}

.account-menu-logout button i {
    color: #d92d20;
}

@media (max-width: 980px) {
    .account-menu {
        order: 3;
    }

    .account-menu-dropdown {
        right: 0;
    }
}

@media (max-width: 640px) {
    .account-menu .account-btn,
    .account-menu .account-user-btn {
        width: auto;
        min-width: 48px;
        height: 48px;
        min-height: 48px;
        padding: .25rem;
        font-size: inherit;
        line-height: 1;
    }

    .account-user-avatar {
        width: 38px;
        height: 38px;
    }

    .account-user-text,
    .account-user-caret {
        display: none;
    }

    .account-menu-dropdown {
        position: fixed;
        top: 76px;
        right: 12px;
        left: 12px;
        width: auto;
        max-width: none;
        transform-origin: top right;
    }

    .account-menu-dropdown::before {
        right: 28px;
    }
}


/* ============================================================
   Public Account Auth Views - login/register/forgot/reset fix
   ============================================================ */
.account-section {
    position: relative;
    padding: 54px 0 78px;
    background: linear-gradient(180deg, #ffffff 0%, #eef7fc 100%);
}

.account-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .75fr);
    gap: 1.65rem;
    align-items: stretch;
}

.account-panel,
.account-side {
    min-width: 0;
}

.account-card,
.account-side-card {
    height: 100%;
    border: 1px solid rgba(13, 88, 145, .16);
    border-radius: 24px;
    box-shadow: 0 18px 44px rgba(8, 55, 95, .10);
}

.account-card {
    padding: clamp(1.35rem, 3vw, 2.15rem);
    background: rgba(255, 255, 255, .98);
}

.account-card .eyebrow {
    margin-bottom: .95rem;
}

.account-card h2 {
    margin: 0;
    color: #082f53;
    font-size: clamp(2rem, 4vw, 2.65rem);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -.04em;
}

.account-muted {
    margin: .75rem 0 1.45rem;
    color: #506b86;
    font-size: 1.02rem;
    line-height: 1.55;
}

.public-alert {
    margin: 1rem 0 1.25rem;
    padding: .95rem 1rem;
    border-radius: 14px;
    font-weight: 800;
    line-height: 1.45;
}

.public-alert[hidden] {
    display: none !important;
}

.public-alert-danger {
    color: #9f1712;
    background: #fff0ef;
    border: 1px solid #ffc5bf;
}

.public-alert-success {
    color: #246b19;
    background: #eefbe8;
    border: 1px solid #bfe9ad;
}

.account-card .public-form {
    display: grid;
    gap: 1rem;
}

.account-card .public-form .form-field {
    margin: 0;
}

.account-card .public-form .form-field label {
    display: block;
    margin-bottom: .45rem;
    color: #082f53;
    font-weight: 900;
}

.account-card .public-form .form-field label span {
    color: #b42318;
}

.account-card .public-form input,
.account-card .public-form select,
.account-card .public-form textarea {
    width: 100%;
    min-height: 52px;
    border: 1px solid rgba(13, 88, 145, .18);
    border-radius: 16px;
    background: #fff;
    color: #082f53;
    padding: .85rem 1rem;
    font: inherit;
    box-shadow: none;
}

.account-card .public-form input:focus,
.account-card .public-form select:focus,
.account-card .public-form textarea:focus {
    outline: none;
    border-color: rgba(8, 120, 216, .62);
    box-shadow: 0 0 0 .22rem rgba(8, 120, 216, .12);
}

.account-card .public-form .public-password-field {
    position: relative;
}

.account-card .public-form .public-password-field input {
    padding-right: 3.75rem !important;
}

.account-card .public-form .password-toggle {
    position: absolute;
    right: .72rem;
    top: 2.36rem;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: #eef5fb;
    color: #075ca8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.account-card .public-form .field-error,
.account-card .public-form [data-error-for] {
    min-height: 1rem;
    margin-top: .35rem;
    color: #b91c1c;
    font-size: .85rem;
    font-weight: 800;
}

.account-card .public-btn-primary {
    width: 100%;
    min-height: 52px;
    margin-top: .15rem;
}

.account-card .account-form-links,
.account-card .auth-links {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: -.35rem;
}

.account-card a:not(.public-btn) {
    color: #075ca8;
    font-weight: 800;
}

.account-side-card {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    padding: clamp(1.55rem, 3vw, 2.15rem);
    background:
        radial-gradient(circle at 10% 0%, rgba(196, 223, 0, .22), transparent 32%),
        linear-gradient(135deg, #07506d 0%, #0077ce 72%);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.account-side-card,
.account-side-card h3,
.account-side-card p,
.account-side-card span,
.account-side-card small,
.account-side-card i {
    color: #fff;
}

.account-side-card .account-icon {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    display: inline-grid;
    place-items: center;
    border-radius: 20px;
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .28);
    color: #fff;
    margin-bottom: 1.25rem;
}

.account-side-card .account-icon svg {
    width: 30px !important;
    height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
    display: block;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.account-side-card h3 {
    margin: 0 0 .8rem;
    font-size: 1.55rem;
    line-height: 1.15;
    font-weight: 900;
}

.account-side-card p {
    max-width: 330px;
    margin: 0 0 1.5rem;
    color: rgba(255, 255, 255, .92) !important;
    font-size: 1.02rem;
    line-height: 1.55;
    font-weight: 600;
}

.account-side-card .public-btn-light,
.account-side-card a.public-btn-light {
    color: #07375f !important;
    background: #fff !important;
    border-color: #fff !important;
    box-shadow: 0 12px 26px rgba(0, 0, 0, .12);
}

.account-side-card .public-btn-light:hover,
.account-side-card a.public-btn-light:hover {
    background: rgba(255, 255, 255, .92) !important;
    border-color: rgba(255, 255, 255, .92) !important;
    color: #052b4a !important;
}

@media (max-width: 991.98px) {
    .account-wrap {
        grid-template-columns: 1fr;
    }

    .account-side-card {
        min-height: 280px;
    }
}

@media (max-width: 575.98px) {
    .account-section {
        padding: 38px 0 58px;
    }

    .account-card,
    .account-side-card {
        border-radius: 20px;
        padding: 1.2rem;
    }

    .account-card h2 {
        font-size: 1.85rem;
    }
}


/* ============================================================
   Public password visibility button
   Compatible con data-pwd-toggle y data-password-toggle
   ============================================================ */
.public-password-field {
    position: relative;
}

.public-password-field input[type="password"],
.public-password-field input[type="text"] {
    padding-right: 3.7rem !important;
}

.public-password-toggle,
.password-toggle {
    position: absolute;
    right: .72rem;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: #eef5fb;
    color: #075a9f;
    cursor: pointer;
    z-index: 3;
    box-shadow: 0 8px 18px rgba(8, 55, 95, .08);
    transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.public-password-toggle:hover,
.password-toggle:hover {
    background: #dceeff;
    color: #003f73;
    box-shadow: 0 10px 22px rgba(8, 55, 95, .12);
}

.public-password-toggle svg {
    width: 19px;
    height: 19px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.public-password-toggle[hidden],
.public-password-toggle svg[hidden] {
    display: none !important;
}

.public-password-field input[type="password"]::-ms-reveal,
.public-password-field input[type="password"]::-ms-clear {
    display: none;
}

/* ============================================================
   FIX FINAL - Navbar ciudadano autenticado
   Mantiene el dropdown cerrado hasta que JS agregue .is-open.
   Muestra foto si existe y avatar solo como fallback.
   ============================================================ */
.site-header .account-menu {
    position: relative !important;
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    z-index: 80 !important;
}

.site-header .account-user-btn {
    min-height: 54px !important;
    height: 54px !important;
    max-width: 260px !important;
    padding: .42rem .85rem .42rem .5rem !important;
    border: 0 !important;
    border-radius: 14px !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    line-height: 1 !important;
}

.site-header .account-user-avatar,
.site-header .account-menu-avatar {
    overflow: hidden !important;
    display: inline-grid !important;
    place-items: center !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #eaf6ff, #ffffff) !important;
    color: #075ca8 !important;
    font-weight: 900 !important;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .78) !important;
}

.site-header .account-user-avatar {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    flex: 0 0 40px !important;
    font-size: 1rem !important;
}

.site-header .account-menu-avatar {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    flex: 0 0 48px !important;
    font-size: 1.1rem !important;
}

.site-header .account-user-avatar img,
.site-header .account-menu-avatar img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
}

.site-header .account-user-text {
    display: grid !important;
    gap: .05rem !important;
    min-width: 0 !important;
    text-align: left !important;
    line-height: 1.05 !important;
}

.site-header .account-user-text small {
    display: block !important;
    color: rgba(255, 255, 255, .78) !important;
    font-size: .72rem !important;
    font-weight: 800 !important;
}

.site-header .account-user-text strong {
    display: block !important;
    max-width: 132px !important;
    overflow: hidden !important;
    color: #fff !important;
    font-size: .95rem !important;
    font-weight: 900 !important;
    text-overflow: ellipsis !important;
}

.site-header .account-user-caret {
    color: rgba(255, 255, 255, .88) !important;
    font-size: .78rem !important;
    transition: transform .18s ease !important;
}

.site-header .account-menu.is-open .account-user-caret,
.site-header .account-menu:focus-within .account-user-caret {
    transform: rotate(180deg) !important;
}

.site-header .account-menu-dropdown {
    position: absolute !important;
    top: calc(100% + 12px) !important;
    right: 0 !important;
    left: auto !important;
    z-index: 999 !important;
    width: min(290px, calc(100vw - 24px)) !important;
    min-width: 270px !important;
    padding: .6rem !important;
    border: 1px solid rgba(13, 88, 145, .14) !important;
    border-radius: 20px !important;
    background: rgba(255, 255, 255, .99) !important;
    box-shadow: 0 24px 62px rgba(8, 55, 95, .20) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(-8px) scale(.98) !important;
    transform-origin: top right !important;
    transition: opacity .18s ease, visibility .18s ease, transform .18s ease !important;
}

.site-header .account-menu-dropdown::before {
    content: "" !important;
    position: absolute !important;
    top: -7px !important;
    right: 24px !important;
    width: 14px !important;
    height: 14px !important;
    border-left: 1px solid rgba(13, 88, 145, .14) !important;
    border-top: 1px solid rgba(13, 88, 145, .14) !important;
    background: #fff !important;
    transform: rotate(45deg) !important;
}

.site-header .account-menu.is-open .account-menu-dropdown,
.site-header .account-menu:focus-within .account-menu-dropdown {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) scale(1) !important;
}

.site-header .account-menu-head {
    display: flex !important;
    align-items: center !important;
    gap: .8rem !important;
    padding: .75rem .75rem .9rem !important;
    margin-bottom: .35rem !important;
    border-bottom: 1px solid rgba(13, 88, 145, .10) !important;
}

.site-header .account-menu-head strong,
.site-header .account-menu-head small {
    display: block !important;
}

.site-header .account-menu-head strong {
    color: #082f53 !important;
    font-size: .98rem !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
}

.site-header .account-menu-head small {
    margin-top: .2rem !important;
    color: #60768d !important;
    font-size: .82rem !important;
    font-weight: 700 !important;
}

.site-header .account-menu-dropdown a,
.site-header .account-menu-logout button {
    width: 100% !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    gap: .7rem !important;
    padding: .65rem .75rem !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: transparent !important;
    color: #07375f !important;
    font: inherit !important;
    font-size: .94rem !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    text-align: left !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

.site-header .account-menu-dropdown a:hover,
.site-header .account-menu-logout button:hover {
    background: #eef8ff !important;
    color: #006fbd !important;
}

.site-header .account-menu-dropdown i,
.site-header .account-menu-logout i {
    width: 1.15rem !important;
    color: #0878d8 !important;
    text-align: center !important;
}

.site-header .account-menu-logout {
    padding-top: .35rem !important;
    margin-top: .35rem !important;
    border-top: 1px solid rgba(13, 88, 145, .10) !important;
}

.site-header .account-menu-logout button {
    color: #a42318 !important;
}

.site-header .account-menu-logout button i {
    color: #d92d20 !important;
}

@media (max-width: 980px) {
    .site-header .account-menu {
        order: 3 !important;
    }

    .site-header .account-menu-dropdown {
        right: 0 !important;
    }
}

@media (max-width: 640px) {
    .site-header .account-menu .account-btn,
    .site-header .account-menu .account-user-btn {
        width: 48px !important;
        min-width: 48px !important;
        max-width: 48px !important;
        height: 48px !important;
        min-height: 48px !important;
        padding: .25rem !important;
        font-size: inherit !important;
        line-height: 1 !important;
    }

    .site-header .account-user-avatar {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        flex-basis: 38px !important;
    }

    .site-header .account-user-text,
    .site-header .account-user-caret {
        display: none !important;
    }

    .site-header .account-menu-dropdown {
        position: fixed !important;
        top: 76px !important;
        right: 12px !important;
        left: 12px !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        transform-origin: top right !important;
    }

    .site-header .account-menu-dropdown::before {
        right: 28px !important;
    }
}

/* ============================================================
   Mi Cuenta dashboard - dirección en línea completa
   ============================================================ */
.account-profile-meta.account-profile-meta--dashboard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-profile-meta--dashboard .account-profile-meta-address {
    grid-column: 1 / -1;
}

.account-profile-meta--dashboard .account-profile-meta-address strong {
    display: block;
    width: 100%;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.45;
}

@media (max-width: 767.98px) {
    .account-profile-meta.account-profile-meta--dashboard {
        grid-template-columns: 1fr;
    }

    .account-profile-meta--dashboard .account-profile-meta-address {
        grid-column: auto;
    }
}

/* ============================================================
   Public modals
   - Modal centrado, con backdrop estático.
   - Reutilizable para pagos u otros modales del portal.
   ============================================================ */
.public-modal[hidden],
.fine-payment-modal[hidden] {
    display: none !important;
}

.public-modal,
.fine-payment-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.public-modal-backdrop,
.fine-payment-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 21, 38, .72);
    backdrop-filter: blur(6px);
}

.public-modal-panel,
.fine-payment-modal-panel {
    position: relative;
    z-index: 2;
    width: min(1080px, 100%);
    height: min(820px, calc(100vh - 2rem));
    margin: 0;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(0, 0, 0, .28);
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.public-modal-panel header,
.public-modal-panel footer,
.fine-payment-modal-panel header,
.fine-payment-modal-panel footer {
    padding: 1rem 1.15rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid rgba(13, 88, 145, .12);
}

.public-modal-panel footer,
.fine-payment-modal-panel footer {
    border-top: 1px solid rgba(13, 88, 145, .12);
    border-bottom: 0;
    color: #496782;
}

.public-modal-panel header span,
.fine-payment-modal-panel header span {
    color: #086fc2;
    font-weight: 900;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.public-modal-panel header h2,
.fine-payment-modal-panel header h2 {
    margin: .15rem 0 0;
    color: #082f53;
    font-weight: 900;
}

.public-modal-panel header button,
.fine-payment-modal-panel header button {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: #eef4fa;
    color: #075ca8;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.public-modal-frame-wrap,
.fine-payment-frame-wrap {
    position: relative;
    min-height: 0;
}

.public-modal-frame-wrap iframe,
.fine-payment-frame-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}

.public-modal-loading,
.fine-payment-loading {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    background: #fff;
    color: #082f53;
    font-weight: 900;
}

.public-modal-loading.is-hidden,
.fine-payment-loading.is-hidden {
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 640px) {
    .public-modal,
    .fine-payment-modal {
        padding: .65rem;
    }

    .public-modal-panel,
    .fine-payment-modal-panel {
        width: 100%;
        height: calc(100vh - 1.3rem);
        border-radius: 18px;
    }

    .public-modal-panel header,
    .public-modal-panel footer,
    .fine-payment-modal-panel header,
    .fine-payment-modal-panel footer {
        padding: .85rem;
    }
}


/* ============================================================
   Servicios Municipales
============================================================ */

.services-page-section {
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.services-intro {
    max-width: 820px;
    margin-bottom: 30px;
}

.services-intro p {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.65;
}

.service-catalog-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, .9fr);
    gap: 24px;
    align-items: stretch;
    margin-bottom: 26px;
}

.service-catalog-hero-copy,
.service-catalog-hero-stats,
.service-helper-band__inner,
.service-catalog-card,
.coming-soon-panel,
.coming-soon-side {
    border: 1px solid rgba(9, 71, 122, .08);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 20px 45px rgba(10, 55, 92, .08);
}

.service-catalog-hero-copy {
    padding: 32px;
}

.service-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.service-kicker::before {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--blue), #39a9ff);
    box-shadow: 0 0 0 6px rgba(0, 119, 206, .10);
}

.service-catalog-hero-copy h2 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(32px, 4vw, 42px);
    line-height: 1.1;
}

.service-catalog-hero-copy p {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.75;
}

.service-catalog-hero-stats {
    display: grid;
    gap: 14px;
    padding: 24px;
    background: linear-gradient(180deg, #f9fcff 0%, #ffffff 100%);
}

.service-catalog-stat {
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(0, 119, 206, .05);
    border: 1px solid rgba(0, 119, 206, .08);
}

.service-catalog-stat strong {
    display: block;
    color: var(--navy);
    font-size: 34px;
    line-height: 1;
}

.service-catalog-stat span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.service-helper-band {
    margin-bottom: 28px;
}

.service-helper-band__inner {
    padding: 24px 28px;
    background: linear-gradient(135deg, rgba(0, 119, 206, .10), rgba(4, 55, 92, .03));
}

.service-helper-band__inner h3 {
    margin: 0 0 8px;
    color: var(--navy);
    font-size: 22px;
}

.service-helper-band__inner p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

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

.service-catalog-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 100%;
    border-radius: 24px;
}

.service-catalog-card .service-media {
    height: 200px;
}

.service-catalog-card .service-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0;
    min-height: 330px;
    padding: 24px;
}

.service-card-topline {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.service-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(0, 119, 206, .10);
    color: var(--blue);
    font-size: 18px;
    flex-shrink: 0;
}

.service-catalog-card .service-body h3 {
    margin: 0;
    color: var(--navy);
    font-size: 22px;
    line-height: 1.2;
}

.service-catalog-card .service-body p {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.7;
}

.service-feature-list {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 0 0 22px;
    list-style: none;
}

.service-feature-list li {
    position: relative;
    padding-left: 22px;
    color: var(--navy);
    line-height: 1.55;
}

.service-feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55em;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--blue);
    box-shadow: 0 0 0 5px rgba(0, 119, 206, .10);
}

.service-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-top: auto;
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--blue);
    color: #fff !important;
    font-weight: 800;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
    box-shadow: 0 14px 26px rgba(0, 119, 206, .20);
}

.service-cta:hover {
    transform: translateY(-2px);
    background: #005f9f;
    box-shadow: 0 18px 30px rgba(0, 95, 159, .26);
}

.service-note {
    margin: 14px 0 0 !important;
    color: #527086 !important;
    font-size: 13px;
    font-weight: 600;
}

.service-status {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #fff;
    backdrop-filter: blur(8px);
}

.service-status::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 0 4px rgba(255,255,255,.16);
}

.service-status.is-live {
    background: rgba(7, 126, 69, .90);
}

.service-status.is-soon {
    background: rgba(182, 111, 10, .92);
}

.service-media.service-multas {
    background-image: url("../images/services/pmb.jpg");
}

.service-media.service-negocios {
    background-image: url("../images/services/pymes.jpg");
}

.service-media.service-vales {
    background-image: url("../images/services/vales-educativos.jpg");
}

.service-media.service-general,
.service-media.service-account {
    background-image: url("../images/services/services-banner.jpg");
}

.service-media.service-account::after {
    background: linear-gradient(180deg, rgba(0, 78, 135, .18), rgba(3, 28, 49, .52));
}

.coming-soon-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, .9fr);
    gap: 24px;
}

.coming-soon-panel,
.coming-soon-side {
    padding: 32px;
}

.coming-soon-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(182, 111, 10, .12);
    color: #8a5200;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.coming-soon-panel h2,
.coming-soon-side h3 {
    margin: 0 0 14px;
    color: var(--navy);
}

.coming-soon-panel h2 {
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.15;
}

.coming-soon-panel p,
.coming-soon-side p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.coming-soon-list {
    display: grid;
    gap: 12px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.coming-soon-list li {
    position: relative;
    padding-left: 24px;
    color: var(--navy);
    line-height: 1.6;
}

.coming-soon-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55em;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--blue);
    box-shadow: 0 0 0 5px rgba(0, 119, 206, .10);
}

.coming-soon-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.coming-soon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--blue);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 14px 26px rgba(0, 119, 206, .20);
}

.coming-soon-btn:hover {
    background: #005f9f;
}

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

@media (max-width: 980px) {
    .service-catalog-hero,
    .coming-soon-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .service-catalog-grid {
        grid-template-columns: 1fr;
    }

    .service-catalog-hero-copy,
    .service-catalog-hero-stats,
    .service-helper-band__inner,
    .service-catalog-card,
    .coming-soon-panel,
    .coming-soon-side {
        border-radius: 20px;
    }

    .service-catalog-card .service-media {
        height: 170px;
    }

    .service-catalog-card .service-body,
    .coming-soon-panel,
    .coming-soon-side,
    .service-catalog-hero-copy,
    .service-catalog-hero-stats,
    .service-helper-band__inner {
        padding: 22px;
    }

    .service-catalog-card .service-body {
        min-height: auto;
    }

    .service-card-topline {
        align-items: flex-start;
    }
}

/* ============================================================
   Servicios Municipales - experiencia moderna
============================================================ */
.services-page {
    background:
        radial-gradient(circle at top right, rgba(0, 119, 206, .08), transparent 32%),
        linear-gradient(180deg, #fff 0%, #f5f9fc 100%);
}

.services-showcase-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr);
    gap: 34px;
    align-items: stretch;
    margin-bottom: 38px;
}

.services-showcase-copy {
    max-width: 780px;
}

.services-kicker {
    margin: 0 0 10px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.services-showcase-copy h2 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(30px, 3vw, 44px);
    line-height: 1.08;
}

.services-showcase-copy > p:last-child {
    max-width: 720px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.75;
}

.services-showcase-note {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 24px;
    border: 1px solid rgba(0, 119, 206, .14);
    border-radius: 18px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 18px 42px rgba(10, 55, 92, .08);
}

.services-showcase-note-icon {
    display: grid;
    flex: 0 0 52px;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 15px;
    background: #e9f5fd;
    color: var(--blue);
    font-size: 21px;
}

.services-showcase-note strong {
    display: block;
    margin: 2px 0 7px;
    color: var(--navy);
    font-size: 16px;
}

.services-showcase-note p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

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

.service-modern-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(7, 63, 104, .11);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 20px 46px rgba(10, 55, 92, .09);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.service-modern-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 119, 206, .26);
    box-shadow: 0 28px 58px rgba(10, 55, 92, .14);
}

.service-modern-card-featured {
    grid-row: span 1;
}

.service-modern-card-account {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(320px, .85fr) minmax(0, 1.15fr);
}

.service-modern-media {
    position: relative;
    min-height: 230px;
    background-position: center;
    background-size: cover;
}

.service-modern-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4, 34, 56, .04), rgba(4, 34, 56, .5));
}

.service-modern-media-multas {
    background-image: url("../images/services/pmb.jpg");
    background-position: center 38%;
}

.service-modern-media-programas {
    background-image: url("../images/services/vales-educativos.jpg");
}

.service-modern-media-solicitudes {
    background-image: url("../images/services/services-banner.jpg");
}

.service-modern-media-negocios {
    background-image: url("../images/services/pymes.jpg");
}

.service-modern-media-account {
    min-height: 100%;
    background-image: url("../images/hero-bayamon.jpg");
}

.service-status {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    backdrop-filter: blur(8px);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
}

.service-status-live {
    background: rgba(232, 249, 239, .94);
    color: #16723a;
}

.service-status-soon {
    background: rgba(255, 248, 228, .94);
    color: #8c6210;
}

.service-modern-content {
    position: relative;
    padding: 34px 30px 30px;
}

.service-modern-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-top: -61px;
    margin-bottom: 22px;
    border: 5px solid #fff;
    border-radius: 17px;
    background: var(--blue);
    color: #fff;
    box-shadow: 0 10px 24px rgba(0, 119, 206, .24);
    font-size: 19px;
}

.service-modern-content h3 {
    margin: 0;
    color: var(--navy);
    font-size: 23px;
}

.service-modern-content p {
    margin: 12px 0 24px;
    color: var(--muted);
    font-size: 15.5px;
    line-height: 1.68;
}

.service-modern-link {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    color: var(--blue);
    font-weight: 800;
}

.service-modern-link i {
    transition: transform .18s ease;
}

.service-modern-link:hover i {
    transform: translateX(4px);
}

.service-modern-card-account .service-modern-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 280px;
    padding: 44px;
}

.service-modern-card-account .service-modern-icon {
    margin-top: 0;
}

.services-closing {
    margin-top: 34px;
}

.services-closing > div {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 26px 30px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--navy), var(--blue-2));
    color: #fff;
    box-shadow: 0 22px 48px rgba(7, 63, 104, .18);
}

.services-closing-icon {
    display: grid;
    flex: 0 0 58px;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .14);
    font-size: 22px;
}

.services-closing h3 {
    margin: 0 0 6px;
    font-size: 20px;
}

.services-closing p {
    max-width: 880px;
    margin: 0;
    color: rgba(255, 255, 255, .82);
    line-height: 1.6;
}

.service-coming-section {
    background: linear-gradient(180deg, #fff 0%, var(--soft) 100%);
}

.service-coming-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 42px;
    border: 1px solid rgba(7, 63, 104, .12);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow);
}

.service-coming-icon {
    display: grid;
    place-items: center;
    width: 150px;
    height: 150px;
    border-radius: 28px;
    background: linear-gradient(145deg, #e9f5fd, #f8fbfd);
    color: var(--blue);
    font-size: 48px;
}

.service-coming-badge {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    background: #fff6dc;
    color: #8c6210;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.service-coming-copy h2 {
    margin: 16px 0 12px;
    color: var(--navy);
    font-size: clamp(28px, 3vw, 38px);
}

.service-coming-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.72;
}

.service-coming-copy .service-coming-secondary {
    margin-top: 12px;
}

.service-coming-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 26px;
}

.service-coming-primary,
.service-coming-secondary-link {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 17px;
    border-radius: 11px;
    font-weight: 800;
}

.service-coming-primary {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 10px 24px rgba(0, 119, 206, .2);
}

.service-coming-secondary-link {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--navy);
}

@media (max-width: 900px) {
    .services-showcase-intro,
    .service-modern-card-account {
        grid-template-columns: 1fr;
    }

    .service-modern-card-account .service-modern-media {
        min-height: 230px;
    }

    .service-modern-card-account .service-modern-content {
        min-height: 0;
        padding: 34px 30px 30px;
    }

    .service-modern-card-account .service-modern-icon {
        margin-top: -61px;
    }
}

@media (max-width: 720px) {
    .service-modern-grid {
        grid-template-columns: 1fr;
    }

    .service-modern-card-account {
        grid-column: auto;
    }

    .service-coming-card {
        grid-template-columns: 1fr;
        padding: 30px 24px;
    }

    .service-coming-icon {
        width: 96px;
        height: 96px;
        border-radius: 22px;
        font-size: 34px;
    }
}

@media (max-width: 520px) {
    .services-showcase-note,
    .services-closing > div {
        align-items: flex-start;
        padding: 22px;
    }

    .service-modern-content {
        padding: 32px 22px 24px;
    }

    .service-modern-media {
        min-height: 190px;
    }
}

/* ============================================================
   Home - experiencia moderna
============================================================ */
.home-hero-modern {
    position: relative;
    min-height: 720px;
    overflow: hidden;
    isolation: isolate;
    background: #062f4d;
}

.home-hero-modern-photo {
    position: absolute;
    inset: -90px 0;
    z-index: -3;
    background:
        linear-gradient(90deg, rgba(3, 37, 61, .92) 0%, rgba(3, 52, 84, .74) 42%, rgba(5, 68, 107, .20) 73%, rgba(5, 68, 107, .08) 100%),
        url("../images/hero-bayamon.jpg") 58% 18% / cover no-repeat;
    transform: translate3d(0, var(--hero-parallax-y), 0) scale(1.08);
    transform-origin: center;
    will-change: transform;
}

.home-hero-modern-glow {
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 18%, rgba(0, 151, 255, .24), transparent 32%),
        linear-gradient(180deg, transparent 56%, rgba(3, 32, 52, .45) 100%);
}

.home-hero-modern-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(330px, .72fr);
    gap: 72px;
    align-items: center;
    min-height: 720px;
    padding-top: 68px;
    padding-bottom: 84px;
}

.home-hero-modern-copy {
    max-width: 720px;
    color: #fff;
}

.home-hero-kicker,
.home-modern-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    color: #8ed1ff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.home-hero-kicker span {
    width: 34px;
    height: 3px;
    border-radius: 999px;
    background: var(--lime);
}

.home-hero-modern-copy h1 {
    max-width: 680px;
    margin: 0;
    font-family: var(--font-brand);
    font-size: clamp(54px, 6vw, 88px);
    font-weight: 400;
    line-height: .96;
    letter-spacing: -.015em;
}

.home-hero-modern-copy h1 span {
    display: block;
    color: #cdeeff;
}

.home-hero-lead {
    max-width: 660px;
    margin: 24px 0 0;
    color: rgba(255,255,255,.86);
    font-size: 18px;
    line-height: 1.72;
}

.home-hero-actions,
.home-modern-progress-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

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

.home-btn-primary {
    background: linear-gradient(135deg, var(--blue), #1596ef);
    color: #fff;
    box-shadow: 0 16px 30px rgba(0, 119, 206, .26);
}

.home-btn-light {
    border-color: rgba(255,255,255,.28);
    background: rgba(255,255,255,.12);
    color: #fff;
    backdrop-filter: blur(12px);
}

.home-btn-outline {
    border-color: rgba(0, 119, 206, .18);
    background: #fff;
    color: var(--blue);
}

.home-btn-white {
    background: #fff;
    color: var(--navy);
    box-shadow: 0 16px 30px rgba(0, 0, 0, .14);
}

.home-hero-panel {
    padding: 22px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 26px;
    background: rgba(5, 43, 70, .58);
    color: #fff;
    box-shadow: 0 28px 70px rgba(0, 0, 0, .20);
    backdrop-filter: blur(18px);
}

.home-hero-panel-label {
    margin: 0 0 12px;
    color: rgba(255,255,255,.62);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .10em;
    text-transform: uppercase;
}

.home-hero-panel-link {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 15px;
    align-items: center;
    padding: 17px 4px;
    color: #fff;
    border-top: 1px solid rgba(255,255,255,.10);
}

.home-hero-panel-link:first-of-type {
    border-top: 0;
}

.home-hero-panel-link > i {
    color: #8ed1ff;
    transition: transform .18s ease;
}

.home-hero-panel-link:hover > i {
    transform: translateX(4px);
}

.home-hero-panel-icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background: rgba(255,255,255,.12);
    color: #8ed1ff;
    font-size: 19px;
}

.home-hero-panel-link strong,
.home-hero-panel-link small {
    display: block;
}

.home-hero-panel-link strong {
    font-size: 15px;
}

.home-hero-panel-link small {
    margin-top: 4px;
    color: rgba(255,255,255,.65);
    line-height: 1.4;
}

.home-modern-access {
    position: relative;
    z-index: 6;
    margin-top: -84px;
}

.home-modern-access-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid rgba(7, 63, 104, .10);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 24px 56px rgba(10, 55, 92, .13);
}

.home-modern-access-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    min-height: 112px;
    padding: 22px 24px;
    border-left: 1px solid rgba(7, 63, 104, .08);
    color: var(--navy);
    transition: background .18s ease, transform .18s ease;
}

.home-modern-access-card:first-child {
    border-left: 0;
}

.home-modern-access-card:hover {
    background: #f5faff;
}

.home-modern-access-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    background: #eaf6fe;
    color: var(--blue);
    font-size: 19px;
}

.home-modern-access-card strong,
.home-modern-access-card small {
    display: block;
}

.home-modern-access-card strong {
    font-size: 16px;
}

.home-modern-access-card small {
    margin-top: 4px;
    color: var(--muted);
}

.home-modern-access-card > i {
    color: var(--blue);
}

.home-modern-services,
.home-modern-discover {
    padding: 82px 0;
    background: #fff;
}

.home-modern-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 34px;
}

.home-modern-heading > div {
    max-width: 760px;
}

.home-modern-kicker {
    margin-bottom: 10px;
    color: var(--blue);
}

.home-modern-heading h2,
.home-modern-progress-copy h2,
.home-modern-final-card h2 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.08;
}

.home-modern-heading p,
.home-modern-progress-copy > p:last-of-type,
.home-modern-final-card p {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.72;
}

.home-modern-heading-link {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    flex: 0 0 auto;
    color: var(--blue);
    font-weight: 800;
}

.home-service-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
    gap: 26px;
}

.home-service-main,
.home-service-side-card {
    border: 1px solid rgba(7, 63, 104, .10);
    background: #fff;
    box-shadow: 0 18px 44px rgba(10, 55, 92, .08);
}

.home-service-main {
    overflow: hidden;
    border-radius: 26px;
}

.home-service-main-media {
    position: relative;
    min-height: 300px;
    background-position: center;
    background-size: cover;
}

.home-service-main-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4,34,56,.04), rgba(4,34,56,.50));
}

.home-service-main-media-multas {
    background-image: url("../images/services/pmb.jpg");
    background-position: center 38%;
}

.home-service-status {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.home-service-status.is-live,
.home-service-status-inline.is-live {
    background: rgba(232, 249, 239, .94);
    color: #16723a;
}

.home-service-main-copy {
    position: relative;
    padding: 36px 34px 34px;
}

.home-service-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-top: -66px;
    margin-bottom: 24px;
    border: 5px solid #fff;
    border-radius: 18px;
    background: var(--blue);
    color: #fff;
    box-shadow: 0 10px 24px rgba(0, 119, 206, .24);
    font-size: 20px;
}

.home-service-eyebrow {
    margin: 0 0 8px !important;
    color: var(--blue) !important;
    font-size: 12px !important;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.home-service-main-copy h3,
.home-service-side-card h3 {
    margin: 0;
    color: var(--navy);
}

.home-service-main-copy h3 {
    font-size: 28px;
}

.home-service-main-copy > p:not(.home-service-eyebrow) {
    margin: 12px 0 22px;
    color: var(--muted);
    line-height: 1.7;
}

.home-service-main-copy a,
.home-service-side-card a {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    color: var(--blue);
    font-weight: 800;
}

.home-service-side-stack {
    display: grid;
    gap: 18px;
}

.home-service-side-card {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 18px;
    padding: 24px;
    border-radius: 20px;
    transition: transform .18s ease, box-shadow .18s ease;
}

.home-service-side-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 48px rgba(10, 55, 92, .12);
}

.home-service-side-card.is-soon {
    background: linear-gradient(135deg, #fff 0%, #fffaf0 100%);
}

.home-service-side-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 17px;
    background: #eaf6fe;
    color: var(--blue);
    font-size: 21px;
}

.home-service-status-inline {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 8px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.home-service-status-inline.is-soon {
    background: #fff5d9;
    color: #8c6210;
}

.home-service-side-card h3 {
    font-size: 19px;
}

.home-service-side-card p {
    margin: 8px 0 14px;
    color: var(--muted);
    line-height: 1.55;
}

.home-modern-progress {
    padding: 82px 0;
    background:
        radial-gradient(circle at top left, rgba(0,119,206,.08), transparent 30%),
        linear-gradient(180deg, #f7fbfe 0%, #eef6fb 100%);
}

.home-modern-progress-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .85fr);
    gap: 52px;
    align-items: center;
    padding: 46px;
    border: 1px solid rgba(7,63,104,.09);
    border-radius: 28px;
    background: rgba(255,255,255,.86);
    box-shadow: 0 24px 60px rgba(10,55,92,.08);
}

.home-modern-progress-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 22px;
    border-radius: 18px;
    background: #e9f5fd;
    color: var(--blue);
    font-size: 22px;
}

.home-modern-progress-visual {
    position: relative;
    min-height: 390px;
}

.home-modern-progress-image {
    position: absolute;
    inset: 0 0 32px 0;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(2,32,53,.04), rgba(2,32,53,.28)),
        url("../images/services/services-banner.jpg") center / cover no-repeat;
    box-shadow: 0 22px 48px rgba(10,55,92,.16);
}

.home-modern-progress-float {
    position: absolute;
    right: 22px;
    bottom: 0;
    display: flex;
    gap: 14px;
    align-items: center;
    max-width: 310px;
    padding: 18px 20px;
    border-radius: 18px;
    background: #fff;
    color: var(--navy);
    box-shadow: 0 18px 42px rgba(10,55,92,.16);
}

.home-modern-progress-float > i {
    color: var(--blue);
    font-size: 24px;
}

.home-modern-progress-float strong,
.home-modern-progress-float small {
    display: block;
}

.home-modern-progress-float small {
    margin-top: 3px;
    color: var(--muted);
}

.home-modern-discover {
    background: #fff;
}

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

.home-discover-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    min-height: 150px;
    padding: 26px;
    border: 1px solid rgba(7,63,104,.10);
    border-radius: 22px;
    background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
    color: var(--navy);
    box-shadow: 0 16px 36px rgba(10,55,92,.07);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.home-discover-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0,119,206,.24);
    box-shadow: 0 24px 48px rgba(10,55,92,.12);
}

.home-discover-card > span {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 17px;
    background: #eaf6fe;
    color: var(--blue);
    font-size: 21px;
}

.home-discover-card h3 {
    margin: 0;
    font-size: 20px;
}

.home-discover-card p {
    margin: 7px 0 0;
    color: var(--muted);
    line-height: 1.5;
}

.home-discover-card > i {
    color: var(--blue);
}

.home-modern-final {
    padding: 0 0 82px;
    background: #fff;
}

.home-modern-final-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    padding: 42px 46px;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--navy), var(--blue-2));
    color: #fff;
    box-shadow: 0 24px 56px rgba(7,63,104,.18);
}

.home-modern-final-card > div {
    max-width: 800px;
}

.home-modern-final-card .home-modern-kicker {
    color: #8ed1ff;
}

.home-modern-final-card h2 {
    color: #fff;
}

.home-modern-final-card p {
    color: rgba(255,255,255,.78);
}

@media (max-width: 1100px) {
    .home-hero-modern-inner,
    .home-service-showcase,
    .home-modern-progress-card {
        grid-template-columns: 1fr;
    }

    .home-hero-modern-inner {
        gap: 30px;
        padding-top: 90px;
        padding-bottom: 100px;
    }

    .home-hero-panel {
        max-width: 700px;
    }

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

    .home-modern-access-card:nth-child(3) {
        border-left: 0;
        border-top: 1px solid rgba(7,63,104,.08);
    }

    .home-modern-access-card:nth-child(4) {
        border-top: 1px solid rgba(7,63,104,.08);
    }

    .home-modern-progress-visual {
        min-height: 340px;
    }
}

@media (max-width: 820px) {
    .home-modern-heading,
    .home-modern-final-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-discover-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .home-hero-modern,
    .home-hero-modern-inner {
        min-height: auto;
    }

    .home-hero-modern-inner {
        padding-top: 74px;
        padding-bottom: 84px;
    }

    .home-hero-modern-copy h1 {
        font-size: clamp(46px, 15vw, 64px);
    }

    .home-hero-lead {
        font-size: 16px;
    }

    .home-hero-actions,
    .home-modern-progress-actions {
        flex-direction: column;
    }

    .home-btn {
        width: 100%;
    }

    .home-hero-panel {
        padding: 18px;
        border-radius: 20px;
    }

    .home-hero-panel-link {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .home-hero-panel-link > i {
        display: none;
    }

    .home-hero-panel-icon {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }

    .home-modern-access {
        margin-top: -48px;
    }

    .home-modern-access-grid {
        grid-template-columns: 1fr;
        border-radius: 20px;
    }

    .home-modern-access-card,
    .home-modern-access-card:nth-child(2),
    .home-modern-access-card:nth-child(3),
    .home-modern-access-card:nth-child(4) {
        border-left: 0;
        border-top: 1px solid rgba(7,63,104,.08);
    }

    .home-modern-access-card:first-child {
        border-top: 0;
    }

    .home-modern-services,
    .home-modern-progress,
    .home-modern-discover {
        padding: 60px 0;
    }

    .home-modern-final {
        padding-bottom: 60px;
    }

    .home-modern-heading h2,
    .home-modern-progress-copy h2,
    .home-modern-final-card h2 {
        font-size: 32px;
    }

    .home-service-main,
    .home-service-side-card,
    .home-modern-progress-card,
    .home-discover-card,
    .home-modern-final-card {
        border-radius: 20px;
    }

    .home-service-main-media {
        min-height: 230px;
    }

    .home-service-main-copy {
        padding: 32px 24px 26px;
    }

    .home-service-side-card {
        grid-template-columns: 52px minmax(0, 1fr);
        padding: 20px;
    }

    .home-service-side-icon {
        width: 52px;
        height: 52px;
    }

    .home-modern-progress-card {
        gap: 34px;
        padding: 24px;
    }

    .home-modern-progress-visual {
        min-height: 300px;
    }

    .home-modern-progress-float {
        left: 14px;
        right: 14px;
        bottom: 0;
    }

    .home-discover-card {
        grid-template-columns: 50px minmax(0, 1fr);
        padding: 22px;
    }

    .home-discover-card > span {
        width: 50px;
        height: 50px;
    }

    .home-discover-card > i {
        display: none;
    }

    .home-modern-final-card {
        padding: 30px 24px;
    }
}


/* ============================================================
   Identidad visual: línea institucional + parallax de heroes
============================================================ */
.site-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 4px;
    z-index: 25;
    pointer-events: none;
    background: linear-gradient(90deg, #f4cf00 0%, #d9dd00 42%, #a9cf00 68%, #79ad22 100%);
    background-size: 180% 100%;
    box-shadow: 0 2px 8px rgba(91, 126, 20, .16);
    animation: bayamonBrandLine 9s ease-in-out infinite alternate;
}

.home-hero-modern::before,
.home-hero-modern::after {
    content: "";
    position: absolute;
    left: -5%;
    right: -5%;
    border-radius: 50% 50% 0 0;
    pointer-events: none;
}

.home-hero-modern::before {
    bottom: -40px;
    height: 92px;
    z-index: 3;
    background: linear-gradient(90deg, #f4cf00 0%, #d9dd00 42%, #a9cf00 68%, #79ad22 100%);
}

.home-hero-modern::after {
    bottom: -47px;
    height: 92px;
    z-index: 4;
    background: #fff;
}

.home-hero-modern-inner {
    position: relative;
    z-index: 2;
}

@keyframes bayamonBrandLine {
    from { background-position: 0% 50%; }
    to { background-position: 100% 50%; }
}

@media (prefers-reduced-motion: reduce) {
    .site-header::after {
        animation: none;
    }

    [data-hero-parallax] {
        transform: translate3d(0, 0, 0) scale(1.06) !important;
        will-change: auto;
    }
}


/* ============================================================
   Navegación pública - fixed, dinámica y sobria
   ============================================================ */
:root {
    --public-header-height: 92px;
}

html {
    scroll-padding-top: calc(var(--public-header-height) + 18px);
}

body {
    padding-top: var(--public-header-height);
}

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    width: 100%;
    min-height: var(--public-header-height);
    background: rgba(255, 255, 255, .91);
    border-bottom: 0;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .58);
    backdrop-filter: blur(18px) saturate(145%);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    transform: translateZ(0);
    transition:
        background-color .28s ease,
        box-shadow .28s ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, .975);
    box-shadow: 0 14px 34px rgba(10, 55, 92, .12);
}

.site-header::after {
    bottom: -4px;
    height: 4px;
    z-index: 25;
    background: linear-gradient(90deg, #f4cf00 0%, #d9dd00 42%, #a9cf00 68%, #79ad22 100%);
    background-size: 180% 100%;
    box-shadow: 0 2px 8px rgba(91, 126, 20, .16);
    animation: bayamonBrandLine 9s ease-in-out infinite alternate;
}

.header-inner {
    min-height: var(--public-header-height);
    gap: 24px;
    transition: min-height .26s cubic-bezier(.2,.8,.2,1), gap .26s ease;
}

.site-header.is-scrolled .header-inner {
    min-height: 78px;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.brand img {
    width: 205px;
    transform-origin: left center;
    transition: transform .26s cubic-bezier(.2,.8,.2,1), filter .26s ease;
}

.site-header.is-scrolled .brand img {
    transform: scale(.91);
    filter: saturate(1.05);
}

.main-nav {
    gap: 6px;
}

.main-nav a {
    position: relative;
    padding: 11px 14px 13px;
    border-radius: 14px;
    color: var(--navy);
    transition:
        color .2s ease,
        background-color .2s ease,
        transform .2s cubic-bezier(.2,.8,.2,1),
        box-shadow .2s ease;
}

.main-nav a:hover {
    color: var(--blue);
    background: rgba(0, 119, 206, .055);
    transform: translateY(-1px);
}

.main-nav a.active {
    color: #006eb7;
    background: linear-gradient(135deg, rgba(0,119,206,.085), rgba(121,173,34,.055));
    box-shadow: inset 0 0 0 1px rgba(0,119,206,.08);
}

.main-nav a::after,
.main-nav a.active::after,
.main-nav a:hover::after {
    content: "";
    position: absolute;
    left: 50%;
    right: auto;
    bottom: 5px;
    width: 22px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #f4cf00, #79ad22);
    background-size: 180% 100%;
    opacity: 0;
    transform: translateX(-50%) scaleX(.45);
    transform-origin: center;
    transition: opacity .2s ease, transform .2s cubic-bezier(.2,.8,.2,1);
}

.main-nav a.active::after,
.main-nav a:hover::after {
    opacity: 1;
    transform: translateX(-50%) scaleX(1);
}

.main-nav a.active::after {
    animation: navAccentFlow 6s ease-in-out infinite alternate;
}

.site-header .account-btn {
    border-radius: 15px;
    transition:
        transform .2s cubic-bezier(.2,.8,.2,1),
        box-shadow .2s ease,
        filter .2s ease;
}

.site-header .account-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 119, 206, .28);
    filter: saturate(1.05);
}

.site-header.is-scrolled .account-btn {
    box-shadow: 0 8px 20px rgba(0, 119, 206, .22);
}

.header-scroll-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    z-index: 26;
    height: 4px;
    background: linear-gradient(90deg, rgba(255,255,255,.68), rgba(255,255,255,.16));
    box-shadow: 0 0 8px rgba(255,255,255,.35);
    transform: scaleX(0);
    transform-origin: left center;
    pointer-events: none;
    will-change: transform;
}

@keyframes navAccentFlow {
    from { background-position: 0% 50%; }
    to { background-position: 100% 50%; }
}

/* El acceso rápido cruza la terminación del hero aproximadamente a media altura. */
.home-modern-access {
    z-index: 7;
    margin-top: -84px;
}

@media (max-width: 980px) {
    :root {
        --public-header-height: 78px;
    }

    body.nav-open {
        overflow: hidden;
    }

    .header-inner,
    .site-header.is-scrolled .header-inner {
        min-height: var(--public-header-height);
    }

    .brand img {
        width: 178px;
    }

    .site-header.is-scrolled .brand img {
        transform: scale(.95);
    }

    .main-nav {
        top: calc(100% + 8px);
        left: 14px;
        right: 14px;
        max-height: calc(100vh - var(--public-header-height) - 28px);
        overflow-y: auto;
        padding: 12px;
        border: 1px solid rgba(0, 119, 206, .12);
        border-radius: 18px;
        background: rgba(255, 255, 255, .985);
        box-shadow: 0 22px 48px rgba(10, 55, 92, .18);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }

    .main-nav a {
        padding: 13px 14px;
        border-radius: 12px;
    }

    .main-nav a:hover,
    .main-nav a.active {
        background: rgba(0, 119, 206, .075);
        transform: none;
    }

    .main-nav a::after,
    .main-nav a.active::after,
    .main-nav a:hover::after {
        display: none;
    }

    .home-modern-access {
        margin-top: -64px;
    }
}

@media (max-width: 640px) {
    :root {
        --public-header-height: 72px;
    }

    .brand img {
        width: 148px;
    }

    .main-nav {
        left: 10px;
        right: 10px;
        max-width: calc(100vw - 20px);
    }

    .home-modern-access {
        margin-top: -48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-header,
    .header-inner,
    .brand img,
    .main-nav a,
    .main-nav a::after,
    .site-header .account-btn,
    .header-scroll-progress {
        transition: none !important;
        animation: none !important;
    }
}

/* ============================================================
   Contacto / Directorio municipal
============================================================ */

.contact-directory-section {
    position: relative;
    padding: 76px 0 84px;
    background:
        radial-gradient(circle at 8% 12%, rgba(196, 223, 0, .11), transparent 28%),
        linear-gradient(180deg, #fff 0%, #f6fafc 100%);
}

.contact-directory-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    gap: 32px;
    align-items: end;
    margin-bottom: 32px;
}

.contact-directory-copy {
    max-width: 760px;
}

.contact-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.contact-kicker::before {
    content: "";
    width: 30px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #f5d900 0%, var(--lime) 52%, #66bd3f 100%);
}

.contact-directory-copy h2,
.contact-official-copy h2 {
    margin: 14px 0 14px;
    color: var(--navy);
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1.02;
    letter-spacing: -.035em;
}

.contact-directory-copy p,
.contact-official-copy p {
    margin: 0;
    max-width: 720px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.72;
}

.contact-directory-highlight {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 24px;
    border: 1px solid rgba(0, 119, 206, .13);
    border-radius: 22px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 18px 45px rgba(7, 63, 104, .08);
}

.contact-highlight-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(145deg, #eaf6ff 0%, #f3fad9 100%);
    color: var(--blue);
    font-size: 21px;
}

.contact-directory-highlight strong {
    display: block;
    margin: 2px 0 6px;
    color: var(--navy);
    font-size: 17px;
}

.contact-directory-highlight p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.contact-search-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
    padding: 12px 14px 12px 18px;
    border: 1px solid rgba(7, 63, 104, .11);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(10, 55, 92, .07);
}

.contact-search-control {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    gap: 12px;
    color: #8aa0b2;
}

.contact-search-control > i {
    color: var(--blue);
    font-size: 17px;
}

.contact-search-control input {
    width: 100%;
    min-width: 0;
    padding: 8px 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 15px;
}

.contact-search-control input::placeholder {
    color: #91a2b2;
}

.contact-search-control button {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f0f6fa;
    color: #6f8598;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, background .18s ease, color .18s ease;
}

.contact-search-panel.has-value .contact-search-control button {
    opacity: 1;
    pointer-events: auto;
}

.contact-search-control button:hover {
    background: #e2f1fb;
    color: var(--blue);
}

.contact-search-meta {
    flex: 0 0 auto;
    padding: 8px 12px;
    border-radius: 999px;
    background: #eef8ff;
    color: var(--blue-2);
    font-size: 13px;
    font-weight: 800;
}

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

.contact-directory-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 26px;
    border: 1px solid rgba(7, 63, 104, .10);
    border-radius: 24px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 18px 46px rgba(10, 55, 92, .075);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.contact-directory-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, #f6d900 0%, var(--lime) 55%, #62b83c 100%);
    transform: scaleX(.35);
    transform-origin: left;
    transition: transform .25s ease;
}

.contact-directory-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 119, 206, .20);
    box-shadow: 0 24px 58px rgba(10, 55, 92, .12);
}

.contact-directory-card:hover::before {
    transform: scaleX(1);
}

.contact-card-head {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-card-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(145deg, #e7f4fd 0%, #f5fadf 100%);
    color: var(--blue);
    font-size: 20px;
}

.contact-card-head h3 {
    margin: 0;
    color: var(--navy);
    font-size: 19px;
    line-height: 1.2;
}

.contact-card-subtitle {
    margin: 5px 0 0;
    color: var(--blue);
    font-size: 13px;
    font-weight: 700;
}

.contact-card-person {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 72px;
    margin: 24px 0 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e7eef3;
}

.contact-card-person strong {
    color: var(--ink);
    font-size: 15px;
}

.contact-card-person span {
    color: var(--muted);
    font-size: 13px;
}

.contact-card-phones {
    display: grid;
    gap: 9px;
    margin-top: auto;
}

.contact-phone-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 13px;
    border: 1px solid #e7eef3;
    border-radius: 14px;
    background: #f9fcfe;
    text-decoration: none;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.contact-phone-row:not(.is-static):hover {
    transform: translateX(3px);
    border-color: rgba(0, 119, 206, .22);
    background: #f1f9ff;
}

.contact-phone-row span {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-phone-row small {
    color: #8192a1;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.contact-phone-row strong {
    color: var(--navy);
    font-size: 14px;
    line-height: 1.35;
}

.contact-phone-row > i {
    flex: 0 0 auto;
    color: var(--blue);
    font-size: 13px;
}

.contact-phone-row.is-static {
    cursor: default;
}

.contact-directory-card[hidden] {
    display: none !important;
}

.contact-directory-empty {
    padding: 54px 24px;
    border: 1px dashed #c8d9e5;
    border-radius: 24px;
    background: rgba(255, 255, 255, .75);
    text-align: center;
}

.contact-directory-empty > span {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    border-radius: 18px;
    background: #edf7fd;
    color: var(--blue);
    font-size: 22px;
}

.contact-directory-empty h3 {
    margin: 0 0 8px;
    color: var(--navy);
}

.contact-directory-empty p {
    margin: 0;
    color: var(--muted);
}

.contact-official-section {
    padding: 0 0 84px;
    background: #f6fafc;
}

.contact-official-card {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
    gap: 28px;
    align-items: center;
    padding: 42px;
    border-radius: 30px;
    background:
        radial-gradient(circle at 85% 10%, rgba(196, 223, 0, .18), transparent 27%),
        linear-gradient(135deg, #073f68 0%, #075d91 62%, #0879ad 100%);
    box-shadow: 0 28px 64px rgba(7, 63, 104, .18);
}

.contact-official-card::after {
    content: "";
    position: absolute;
    right: -100px;
    bottom: -130px;
    width: 330px;
    height: 330px;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 50%;
}

.contact-official-copy,
.contact-official-brand {
    position: relative;
    z-index: 1;
}

.contact-official-card .contact-kicker {
    color: #d9f36d;
}

.contact-official-copy h2 {
    max-width: 760px;
    color: #fff;
    font-size: clamp(30px, 3.5vw, 48px);
}

.contact-official-copy p {
    max-width: 690px;
    color: rgba(255, 255, 255, .78);
}

.contact-official-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    padding: 13px 18px;
    border-radius: 999px;
    background: #fff;
    color: var(--navy);
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
    transition: transform .18s ease, box-shadow .18s ease;
}

.contact-official-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, .18);
}

.contact-official-brand {
    display: grid;
    place-items: center;
    min-height: 210px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 24px;
    background: rgba(255, 255, 255, .10);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.contact-official-brand img {
    width: min(100%, 300px);
    height: auto;
    filter: brightness(0) invert(1);
    opacity: .96;
}

.contact-official-brand span {
    margin-top: 16px;
    color: rgba(255, 255, 255, .84);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 980px) {
    .contact-directory-intro,
    .contact-official-card {
        grid-template-columns: 1fr;
    }

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

    .contact-official-brand {
        min-height: 160px;
    }
}

@media (max-width: 640px) {
    .contact-directory-section {
        padding: 54px 0 64px;
    }

    .contact-directory-intro {
        gap: 22px;
        margin-bottom: 24px;
    }

    .contact-directory-copy h2,
    .contact-official-copy h2 {
        font-size: 34px;
    }

    .contact-directory-highlight,
    .contact-directory-card {
        border-radius: 20px;
    }

    .contact-search-panel {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
        padding: 13px 14px;
    }

    .contact-search-meta {
        width: fit-content;
    }

    .contact-directory-grid {
        grid-template-columns: 1fr;
    }

    .contact-directory-card {
        padding: 22px;
    }

    .contact-card-person {
        min-height: 0;
    }

    .contact-official-section {
        padding-bottom: 64px;
    }

    .contact-official-card {
        padding: 28px 22px;
        border-radius: 24px;
    }
}

/* ============================================================
   Footer + páginas legales
============================================================ */
.footer-grid .footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    width: fit-content;
    margin-top: 14px;
    padding: 8px 15px;
    border: 1px solid rgba(255, 255, 255, .48);
    border-radius: 10px;
    color: #fff;
    font-weight: 800;
    line-height: 1.2;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.footer-grid .footer-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, .8);
    background: rgba(255, 255, 255, .1);
}

.footer-bottom a {
    display: inline-flex;
    color: rgba(255, 255, 255, .86);
    font-size: 13px;
    line-height: 1.4;
    transition: color .18s ease;
}

.footer-bottom a:hover {
    color: #fff;
}

.legal-section {
    padding: 58px 0 72px;
    background: linear-gradient(180deg, #fff 0%, #f4f9fc 100%);
}

.legal-card {
    overflow: hidden;
    max-width: 980px;
    margin: 0 auto;
    border: 1px solid rgba(0, 90, 156, .12);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(10, 55, 92, .1);
}

.legal-intro {
    padding: 38px 42px 34px;
    border-bottom: 1px solid rgba(0, 90, 156, .1);
    background: linear-gradient(135deg, rgba(0, 119, 206, .07), rgba(115, 184, 35, .06));
}

.legal-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.legal-kicker::before {
    content: "";
    width: 26px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #f6db00, #69b72d);
}

.legal-intro h2 {
    max-width: 720px;
    margin: 14px 0 12px;
    color: var(--navy);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.08;
}

.legal-intro p {
    max-width: 760px;
    margin: 0;
    color: #52687d;
    font-size: 16px;
    line-height: 1.7;
}

.legal-content {
    display: grid;
    gap: 0;
    padding: 8px 42px;
}

.legal-content section {
    padding: 26px 0;
    border-bottom: 1px solid rgba(0, 90, 156, .09);
}

.legal-content section:last-child {
    border-bottom: 0;
}

.legal-content h3 {
    margin: 0 0 9px;
    color: var(--navy);
    font-size: 18px;
}

.legal-content p {
    margin: 0;
    color: #53697e;
    font-size: 15px;
    line-height: 1.72;
}

.legal-content p + p {
    margin-top: 10px;
}

.legal-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 26px 42px;
    background: #f7fbfd;
}

.legal-card-footer p {
    margin: 0;
    color: #51677b;
    line-height: 1.55;
}

.legal-card-footer a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
    color: var(--blue);
    font-weight: 800;
}

@media (max-width: 640px) {
    .legal-section {
        padding: 34px 0 50px;
    }

    .legal-card {
        border-radius: 18px;
    }

    .legal-intro,
    .legal-content,
    .legal-card-footer {
        padding-left: 22px;
        padding-right: 22px;
    }

    .legal-intro {
        padding-top: 28px;
        padding-bottom: 26px;
    }

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

/* =========================================================
   Programas Municipales - ERP / Portal Ciudadano
   ========================================================= */
.programs-directory-section {
    position: relative;
    padding: 72px 0 92px;
    background:
        radial-gradient(circle at 8% 8%, rgba(0, 143, 224, .08), transparent 30%),
        linear-gradient(180deg, #f8fbfe 0%, #ffffff 58%, #f7fafc 100%);
}

.programs-directory-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, .7fr);
    gap: 32px;
    align-items: center;
    margin-bottom: 38px;
}

.programs-kicker,
.programs-state-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #0876bd;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.programs-kicker::before {
    content: "";
    width: 30px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #f5d900, #63bd1a);
}

.programs-directory-copy h2 {
    max-width: 760px;
    margin: 0;
    color: #073f68;
    font-size: clamp(2rem, 3.6vw, 3.1rem);
    line-height: 1.04;
    letter-spacing: -.035em;
}

.programs-directory-copy > p {
    max-width: 760px;
    margin: 18px 0 0;
    color: #5d7187;
    font-size: 1.04rem;
    line-height: 1.75;
}

.programs-directory-note {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 22px;
    border: 1px solid rgba(8, 118, 189, .13);
    border-radius: 22px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 18px 46px rgba(9, 61, 95, .08);
    backdrop-filter: blur(12px);
}

.programs-note-icon,
.programs-state-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    color: #0876bd;
    background: linear-gradient(145deg, #eef8ff, #e6f4fb);
}

.programs-directory-note strong {
    display: block;
    margin: 2px 0 5px;
    color: #073f68;
    font-size: .98rem;
}

.programs-directory-note p {
    margin: 0;
    color: #65788d;
    font-size: .92rem;
    line-height: 1.55;
}

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

.program-directory-card {
    overflow: hidden;
    border: 1px solid rgba(12, 80, 123, .1);
    border-radius: 25px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(10, 65, 101, .08);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.program-directory-card:hover {
    transform: translateY(-5px);
    border-color: rgba(8, 118, 189, .2);
    box-shadow: 0 26px 58px rgba(10, 65, 101, .13);
}

.program-directory-media {
    position: relative;
    min-height: 205px;
    overflow: hidden;
    background: linear-gradient(135deg, #0b5d8f, #008fe0);
}

.program-directory-media::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 48%;
    background: linear-gradient(180deg, transparent, rgba(4, 42, 67, .52));
    pointer-events: none;
}

.program-directory-media img {
    width: 100%;
    height: 205px;
    object-fit: cover;
    transition: transform .45s ease;
}

.program-directory-card:hover .program-directory-media img {
    transform: scale(1.035);
}

.program-directory-media.is-placeholder {
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 75% 25%, rgba(246, 219, 0, .25), transparent 28%),
        linear-gradient(135deg, #073f68, #0876bd 62%, #63bd1a 140%);
}

.program-directory-media.is-placeholder > span:not(.program-directory-status) {
    color: rgba(255, 255, 255, .9);
    font-size: 3.1rem;
}

.program-directory-status {
    position: absolute;
    z-index: 2;
    left: 18px;
    bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    color: #fff;
    background: rgba(3, 52, 83, .72);
    backdrop-filter: blur(10px);
    font-size: .76rem;
    font-weight: 750;
}

.program-directory-status i {
    color: #a8dc26;
    font-size: .48rem;
}

.program-directory-body {
    display: flex;
    flex-direction: column;
    min-height: 320px;
    padding: 24px;
}

.program-directory-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 13px;
}

.program-directory-meta span {
    padding: 6px 9px;
    border-radius: 999px;
    color: #567086;
    background: #f0f6fa;
    font-size: .72rem;
    font-weight: 700;
}

.program-directory-body h3 {
    margin: 0;
    color: #073f68;
    font-size: 1.35rem;
    line-height: 1.18;
}

.program-directory-body > p {
    margin: 13px 0 18px;
    color: #64778b;
    line-height: 1.65;
}

.program-directory-dates {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #edf2f5;
    color: #526b80;
    font-size: .86rem;
    line-height: 1.5;
}

.program-directory-dates i {
    margin-top: 2px;
    color: #0876bd;
}

.program-directory-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
}

.program-directory-ready {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #488913;
    font-size: .82rem;
    font-weight: 800;
}

.program-directory-ready i {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    color: #fff;
    background: #63bd1a;
    font-size: .58rem;
}

.program-directory-next {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0876bd;
    font-size: .9rem;
    font-weight: 800;
    opacity: .7;
}

.programs-state-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 22px;
    align-items: flex-start;
    max-width: 900px;
    margin: 8px auto 0;
    padding: clamp(28px, 5vw, 46px);
    border: 1px solid rgba(8, 118, 189, .12);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 24px 64px rgba(10, 65, 101, .09);
}

.programs-state-card--warning .programs-state-icon {
    color: #8b7100;
    background: #fff9d8;
}

.programs-state-card h2 {
    max-width: 720px;
    margin: 0;
    color: #073f68;
    font-size: clamp(1.55rem, 3vw, 2.25rem);
    line-height: 1.12;
}

.programs-state-card p {
    max-width: 720px;
    margin: 14px 0 22px;
    color: #64778b;
    line-height: 1.7;
}

.programs-state-action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 17px;
    border-radius: 999px;
    color: #fff;
    background: #0876bd;
    font-size: .9rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(8, 118, 189, .2);
    transition: transform .2s ease, background .2s ease;
}

.programs-state-action:hover {
    transform: translateY(-2px);
    background: #0669aa;
}

.programs-directory-footer-note {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    max-width: 840px;
    margin: 32px auto 0;
    color: #6b7d90;
    font-size: .88rem;
    line-height: 1.6;
}

.programs-directory-footer-note i {
    margin-top: 3px;
    color: #0876bd;
}

.programs-directory-footer-note p {
    margin: 0;
}

@media (max-width: 1024px) {
    .programs-directory-intro {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 680px) {
    .programs-directory-section {
        padding: 50px 0 70px;
    }

    .programs-directory-grid {
        grid-template-columns: 1fr;
    }

    .program-directory-media,
    .program-directory-media img {
        min-height: 190px;
        height: 190px;
    }

    .programs-state-card {
        grid-template-columns: 1fr;
        gap: 16px;
        border-radius: 22px;
    }

    .programs-state-icon {
        width: 44px;
        height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .program-directory-card,
    .program-directory-media img,
    .programs-state-action {
        transition: none !important;
    }
}

/* Program equipment warranties */
.programs-warranty-cta {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    margin: 26px 0 32px;
    padding: 20px 22px;
    border: 1px solid rgba(15, 118, 110, .14);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(236, 253, 245, .94), rgba(239, 246, 255, .94));
    color: inherit;
    text-decoration: none;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .06);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.programs-warranty-cta:hover {
    transform: translateY(-2px);
    border-color: rgba(15, 118, 110, .28);
    box-shadow: 0 22px 52px rgba(15, 23, 42, .1);
}

.programs-warranty-cta__icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: #0f766e;
    color: #fff;
    font-size: 1.35rem;
}

.programs-warranty-cta__body { display: grid; gap: 3px; min-width: 0; }
.programs-warranty-cta__eyebrow { font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #0f766e; }
.programs-warranty-cta__body strong { font-size: 1.16rem; color: #172033; }
.programs-warranty-cta__body small { color: #667085; font-size: .92rem; }
.programs-warranty-cta__action { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; color: #0f766e; white-space: nowrap; }

.warranty-public-section { padding: 58px 0 80px; background: #f7f9fc; }
.warranty-public-section--detail { min-height: 62vh; }
.warranty-public-intro { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr); gap: 28px; align-items: end; margin-bottom: 28px; }
.warranty-public-intro h2, .warranty-results-head h2 { margin: 8px 0 10px; color: #172033; font-size: clamp(1.7rem, 3vw, 2.45rem); letter-spacing: -.035em; }
.warranty-public-intro > div:first-child > p { margin: 0; color: #667085; max-width: 720px; font-size: 1.02rem; line-height: 1.7; }
.warranty-public-help { display: flex; gap: 14px; padding: 18px; border-radius: 18px; background: #fff; border: 1px solid #e7ebf1; box-shadow: 0 10px 30px rgba(15, 23, 42, .05); }
.warranty-public-help > i { color: #0f766e; font-size: 1.4rem; margin-top: 2px; }
.warranty-public-help strong { color: #172033; display: block; margin-bottom: 4px; }
.warranty-public-help p { margin: 0; color: #667085; font-size: .9rem; line-height: 1.55; }

.warranty-search-card { padding: 24px; border-radius: 22px; background: #fff; border: 1px solid #e5eaf1; box-shadow: 0 18px 46px rgba(15, 23, 42, .07); }
.warranty-search-grid { display: grid; grid-template-columns: 1.15fr .85fr 1fr; gap: 18px; }
.warranty-search-field { display: grid; gap: 8px; }
.warranty-search-field label { font-weight: 800; color: #273244; font-size: .88rem; }
.warranty-search-field input, .warranty-search-field select { width: 100%; min-height: 50px; border: 1px solid #dfe5ec; border-radius: 14px; background: #fff; color: #172033; padding: 0 14px; outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
.warranty-search-field input:focus, .warranty-search-field select:focus { border-color: #0f766e; box-shadow: 0 0 0 4px rgba(15, 118, 110, .09); }


/* Warranty public program selector: use the shared Select2 enhancer instead of the native select UI. */
.warranty-search-field .select2-container {
    width: 100% !important;
}

.warranty-search-field .select2-container .select2-selection--single {
    min-height: 50px;
    border: 1px solid #dfe5ec;
    border-radius: 14px;
    background: #fff;
    display: flex;
    align-items: center;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.warranty-search-field .select2-container .select2-selection--single .select2-selection__rendered {
    width: 100%;
    padding: 0 42px 0 14px;
    color: #172033;
    font-size: .95rem;
    line-height: 48px;
}

.warranty-search-field .select2-container .select2-selection--single .select2-selection__arrow {
    height: 48px;
    width: 36px;
    right: 6px;
}

.warranty-search-field .select2-container--focus .select2-selection--single,
.warranty-search-field .select2-container--open .select2-selection--single {
    border-color: #0f766e;
    box-shadow: 0 0 0 4px rgba(15, 118, 110, .09);
}

.warranty-search-field .select2-container--open .select2-selection--single {
    border-radius: 14px;
}
.warranty-search-field small { color: #8a94a4; font-size: .76rem; line-height: 1.35; }
.warranty-input-icon { position: relative; }
.warranty-input-icon > i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #7d8798; pointer-events: none; }
.warranty-input-icon input { padding-left: 42px; }
.warranty-search-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid #edf0f4; }
.warranty-search-clear { color: #667085; font-weight: 700; text-decoration: none; padding: 11px 16px; }
.warranty-search-submit, .warranty-primary-action, .warranty-secondary-action { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 13px; font-weight: 800; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.warranty-search-submit { border: 0; background: #0f766e; color: #fff; padding: 13px 20px; cursor: pointer; }
.warranty-search-submit:hover, .warranty-primary-action:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(15, 118, 110, .2); }

.warranty-match-banner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 15px; margin-top: 24px; padding: 16px 18px; border-radius: 18px; background: #ecfdf5; border: 1px solid #bbf7d0; }
.warranty-match-banner > span { color: #15803d; font-size: 1.35rem; }
.warranty-match-banner small { display: block; color: #15803d; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .7rem; }
.warranty-match-banner strong { display: block; color: #172033; margin-top: 2px; }
.warranty-match-banner p { margin: 2px 0 0; color: #667085; font-size: .88rem; }
.warranty-match-banner a { color: #0f766e; font-weight: 800; text-decoration: none; }
.warranty-no-serial { margin-top: 20px; display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-radius: 14px; background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; }

.warranty-results-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin: 38px 0 18px; }
.warranty-results-head h2 { font-size: clamp(1.45rem, 2.5vw, 2rem); margin-bottom: 0; }
.warranty-results-count { padding: 8px 12px; border-radius: 999px; background: #eaf2ff; color: #1d4ed8; font-weight: 800; font-size: .8rem; }
.warranty-results-grid { display: grid; gap: 14px; }
.warranty-result-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 20px; border-radius: 20px; background: #fff; border: 1px solid #e7ebf1; box-shadow: 0 10px 28px rgba(15, 23, 42, .04); }
.warranty-result-icon { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: #ecfdf5; color: #0f766e; font-size: 1.15rem; }
.warranty-result-program { color: #64748b; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.warranty-result-body h3 { margin: 4px 0 6px; color: #172033; font-size: 1.08rem; }
.warranty-result-body > p { margin: 0 0 10px; color: #667085; font-size: .9rem; line-height: 1.55; }
.warranty-result-meta { display: flex; flex-wrap: wrap; gap: 12px; color: #7b8492; font-size: .78rem; }
.warranty-result-meta span { display: inline-flex; align-items: center; gap: 6px; }
.warranty-result-action { display: inline-flex; align-items: center; gap: 8px; color: #0f766e; font-weight: 800; text-decoration: none; white-space: nowrap; }
.warranty-state-spacing { margin-top: 28px; }

.warranty-detail-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; margin-bottom: 24px; padding: 24px; border-radius: 22px; background: linear-gradient(135deg, #ecfdf5, #eff6ff); border: 1px solid rgba(15, 118, 110, .12); }
.warranty-detail-icon { width: 62px; height: 62px; border-radius: 20px; display: grid; place-items: center; background: #0f766e; color: #fff; font-size: 1.55rem; }
.warranty-detail-heading h2 { margin: 5px 0 4px; color: #172033; font-size: clamp(1.55rem, 3vw, 2.3rem); }
.warranty-detail-heading p { margin: 0; color: #667085; }
.warranty-detail-badge { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border-radius: 999px; background: #fff; color: #15803d; font-weight: 800; font-size: .8rem; white-space: nowrap; }
.warranty-detail-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr); gap: 22px; }
.warranty-detail-card, .warranty-info-card { background: #fff; border: 1px solid #e7ebf1; border-radius: 20px; box-shadow: 0 12px 34px rgba(15, 23, 42, .05); }
.warranty-detail-card { padding: 24px; }
.warranty-detail-card__head { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.warranty-detail-card__head small { color: #0f766e; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.warranty-detail-card__head h3 { margin: 5px 0 0; color: #172033; font-size: 1.15rem; word-break: break-word; }
.warranty-detail-card__head > i { color: #dc2626; font-size: 2rem; }
.warranty-detail-notes { margin-top: 22px; padding: 18px; border-radius: 16px; background: #f8fafc; border-left: 4px solid #0f766e; }
.warranty-detail-notes strong { color: #172033; }
.warranty-detail-notes p { margin: 6px 0 0; color: #667085; white-space: pre-line; line-height: 1.65; }
.warranty-detail-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.warranty-primary-action { background: #0f766e; color: #fff; padding: 13px 18px; }
.warranty-secondary-action { background: #fff; color: #0f766e; border: 1px solid #b9dcd7; padding: 12px 18px; }
.warranty-detail-aside { display: grid; gap: 14px; align-content: start; }
.warranty-info-card { padding: 20px; }
.warranty-info-card h3 { margin: 0 0 12px; color: #172033; font-size: 1rem; }
.warranty-info-card dl { margin: 0; display: grid; gap: 0; }
.warranty-info-card dl > div { padding: 12px 0; border-top: 1px solid #edf0f4; }
.warranty-info-card dt { color: #8a94a4; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.warranty-info-card dd { margin: 4px 0 0; color: #273244; font-weight: 700; line-height: 1.45; }
.warranty-back-search { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 16px; border-radius: 14px; background: #172033; color: #fff; text-decoration: none; font-weight: 800; }

@media (max-width: 900px) {
    .programs-warranty-cta, .warranty-match-banner, .warranty-result-card, .warranty-detail-hero { grid-template-columns: auto minmax(0, 1fr); }
    .programs-warranty-cta__action, .warranty-match-banner a, .warranty-result-action, .warranty-detail-badge { grid-column: 2; justify-self: start; }
    .warranty-public-intro, .warranty-detail-grid { grid-template-columns: 1fr; }
    .warranty-search-grid { grid-template-columns: 1fr 1fr; }
    .warranty-search-field--serial { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
    .warranty-public-section { padding: 38px 0 58px; }
    .programs-warranty-cta, .warranty-result-card, .warranty-detail-hero, .warranty-match-banner { grid-template-columns: 1fr; }
    .programs-warranty-cta__action, .warranty-match-banner a, .warranty-result-action, .warranty-detail-badge { grid-column: auto; }
    .warranty-search-card { padding: 18px; }
    .warranty-search-grid { grid-template-columns: 1fr; }
    .warranty-search-field--serial { grid-column: auto; }
    .warranty-search-actions { justify-content: stretch; }
    .warranty-search-clear, .warranty-search-submit { flex: 1; text-align: center; }
    .warranty-results-head { align-items: flex-start; flex-direction: column; }
    .warranty-detail-actions { display: grid; }
}

/* ============================================================
   Mi Cuenta v4 - Centro ciudadano y edición por pestañas
   ============================================================ */
.account-profile-avatar {
    position: relative;
}

.account-avatar-edit {
    position: absolute;
    right: 5px;
    bottom: 5px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 3px solid #fff;
    background: #0878d8;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(8, 55, 95, .2);
    transition: transform .18s ease, background .18s ease;
}

.account-avatar-edit:hover {
    background: #075ca8;
    color: #fff;
    transform: translateY(-1px);
}

.account-profile-main h2 {
    font-size: clamp(1.55rem, 2.35vw, 2rem);
    line-height: 1.08;
}

.account-quick-card {
    justify-content: flex-start;
    padding-top: 1.25rem;
}

.account-quick-badge {
    position: absolute;
    top: .65rem;
    right: .65rem;
    padding: .28rem .5rem;
    border-radius: 999px;
    background: #fff4d8;
    color: #8a5b00;
    border: 1px solid rgba(218, 153, 0, .2);
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .01em;
}

.account-notice-card--dynamic ul {
    padding-left: 1.15rem;
}

.account-notice-card--dynamic li + li {
    margin-top: .35rem;
}

.account-settings-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .7rem;
    padding: .45rem;
    border: 1px solid rgba(13, 88, 145, .1);
    border-radius: 18px;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 10px 24px rgba(8, 55, 95, .05);
}

.account-settings-tabs button {
    min-height: 48px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: #345978;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .7rem .85rem;
    font-weight: 850;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.account-settings-tabs button:hover {
    color: #075ca8;
    background: #eef8ff;
}

.account-settings-tabs button.is-active {
    background: linear-gradient(135deg, #0878d8, #075ca8);
    color: #fff;
    box-shadow: 0 10px 22px rgba(8, 120, 216, .2);
}

.account-settings-tabs button:focus-visible {
    outline: 3px solid rgba(8, 120, 216, .22);
    outline-offset: 2px;
}

.account-tab-panel[hidden] {
    display: none !important;
}

.account-tab-panel {
    animation: accountTabIn .2s ease;
}

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

#identificacion.account-settings-card,
#seguridad.account-settings-card,
#foto.account-settings-card {
    max-width: 100%;
}

#seguridad .account-security-form {
    max-width: 620px;
}

#foto .account-photo-form {
    max-width: 760px;
}

#identificacion .account-identification-grid {
    grid-template-columns: minmax(260px, .78fr) minmax(340px, 1fr);
}

#identificacion .imgdz-wrap .editor-stage {
    min-height: 210px;
    max-height: 360px;
}

#foto .imgdz-wrap .editor-stage {
    min-height: 240px;
    max-height: 520px;
}

#identificacion .imgdz-wrap .dropzone,
#foto .imgdz-wrap .dropzone {
    min-height: 132px;
}

@media (max-width: 991.98px) {
    .account-settings-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #identificacion .account-identification-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .account-profile-avatar {
        width: 112px;
        height: 112px;
    }

    .account-notice-card--dynamic {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .account-notice-card--dynamic .account-notice-icon {
        width: 58px;
        height: 58px;
        font-size: 1.45rem;
    }

    .account-notice-card--dynamic ul,
    .account-notice-card--dynamic .public-btn {
        grid-column: auto;
    }
}

@media (max-width: 575.98px) {
    .account-settings-tabs {
        grid-template-columns: 1fr;
    }

    .account-settings-tabs button {
        justify-content: flex-start;
    }

    .account-profile-top {
        align-items: center;
        text-align: center;
    }

    .account-profile-main p {
        overflow-wrap: anywhere;
    }
}

/* ============================================================
   Mi Cuenta v5 - Dashboard ciudadano moderno
   ============================================================ */
.account-v5-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 10% 8%, rgba(0, 119, 206, .08), transparent 34%),
        radial-gradient(circle at 92% 15%, rgba(196, 223, 0, .08), transparent 25%),
        linear-gradient(180deg, #f8fbfe 0%, #f3f8fc 48%, #f8fbfd 100%);
}

.account-v5-shell {
    position: relative;
    z-index: 2;
    max-width: 1180px;
}

.account-v5-alert {
    margin-bottom: 1rem;
}

.account-v5-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr);
    gap: 2rem;
    padding: clamp(1.6rem, 3vw, 2.5rem);
    border-radius: 30px;
    color: #fff;
    background:
        linear-gradient(125deg, rgba(5, 63, 104, .98) 0%, rgba(0, 104, 180, .96) 58%, rgba(0, 133, 196, .94) 100%);
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: 0 28px 70px rgba(5, 63, 104, .2);
    isolation: isolate;
}

.account-v5-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: .22;
    background-image:
        linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(to right, transparent 0%, #000 28%, #000 100%);
}

.account-v5-hero-glow {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(2px);
    pointer-events: none;
}

.account-v5-hero-glow--one {
    width: 340px;
    height: 340px;
    right: -90px;
    top: -170px;
    background: radial-gradient(circle, rgba(196, 223, 0, .25), rgba(196, 223, 0, 0) 68%);
}

.account-v5-hero-glow--two {
    width: 320px;
    height: 320px;
    left: 34%;
    bottom: -230px;
    background: radial-gradient(circle, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 70%);
}

.account-v5-identity {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-width: 0;
}

.account-v5-avatar-wrap {
    position: relative;
    flex: 0 0 auto;
}

.account-v5-avatar {
    width: 126px;
    height: 126px;
    border-radius: 28px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(229,244,255,.96));
    border: 1px solid rgba(255,255,255,.8);
    box-shadow: 0 20px 45px rgba(0, 33, 61, .28);
    color: #075ca8;
    font-size: 3rem;
    font-weight: 900;
}

.account-v5-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-v5-avatar-edit {
    position: absolute;
    right: -8px;
    bottom: -8px;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #075ca8;
    background: #fff;
    border: 1px solid rgba(255,255,255,.9);
    box-shadow: 0 10px 26px rgba(0, 38, 70, .24);
    text-decoration: none;
    transition: transform .2s ease, color .2s ease;
}

.account-v5-avatar-edit:hover {
    color: #003f70;
    transform: translateY(-2px);
}

.account-v5-identity-copy {
    min-width: 0;
}

.account-v5-eyebrow,
.account-v5-section-kicker {
    display: inline-block;
    margin-bottom: .35rem;
    font-size: .73rem;
    font-weight: 900;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.account-v5-eyebrow {
    color: rgba(255,255,255,.72);
}

.account-v5-identity-copy h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -.035em;
}

.account-v5-full-name {
    margin: .5rem 0 0;
    color: rgba(255,255,255,.86);
    font-size: 1.02rem;
    font-weight: 700;
}

.account-v5-contact-row {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem 1rem;
    margin-top: 1rem;
}

.account-v5-contact-row span {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: rgba(255,255,255,.82);
    font-size: .9rem;
    font-weight: 650;
    min-width: 0;
    overflow-wrap: anywhere;
}

.account-v5-contact-row i {
    color: #dff3ff;
}

.account-v5-identity-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .65rem;
    margin-top: 1.15rem;
}

.account-v5-status {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 36px;
    padding: .5rem .78rem;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 850;
    border: 1px solid rgba(255,255,255,.16);
    backdrop-filter: blur(10px);
}

.account-v5-status.is-verified {
    color: #f3ffda;
    background: rgba(196, 223, 0, .14);
}

.account-v5-status.is-pending {
    color: #fff3c4;
    background: rgba(255, 193, 7, .14);
}

.account-v5-profile-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 36px;
    padding: .5rem .78rem;
    border-radius: 999px;
    color: #fff;
    border: 1px solid rgba(255,255,255,.28);
    background: rgba(255,255,255,.08);
    text-decoration: none;
    font-size: .82rem;
    font-weight: 850;
    transition: background .2s ease, transform .2s ease;
}

.account-v5-profile-link:hover {
    color: #fff;
    background: rgba(255,255,255,.14);
    transform: translateY(-1px);
}

.account-v5-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .8rem;
    align-content: center;
}

.account-v5-summary-item {
    display: flex;
    align-items: center;
    gap: .8rem;
    min-width: 0;
    padding: 1rem;
    border-radius: 20px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    backdrop-filter: blur(12px);
}

.account-v5-summary-item--wide {
    grid-column: 1 / -1;
}

.account-v5-summary-icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.14);
}

.account-v5-summary-item div {
    min-width: 0;
}

.account-v5-summary-item small {
    display: block;
    color: rgba(255,255,255,.66);
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .045em;
}

.account-v5-summary-item strong {
    display: block;
    margin-top: .2rem;
    color: #fff;
    font-size: .9rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.account-v5-section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin: 2.2rem 0 1rem;
}

.account-v5-section-kicker {
    color: #0571c2;
}

.account-v5-section-head h3,
.account-v5-notice h3 {
    margin: 0;
    color: #08385f;
    font-weight: 900;
    letter-spacing: -.02em;
}

.account-v5-section-head h3 {
    font-size: clamp(1.45rem, 2.3vw, 2rem);
}

.account-v5-section-head p {
    margin: .35rem 0 0;
    color: #647386;
}

.account-v5-services {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.account-v5-service-card {
    --service-accent: #0077ce;
    --service-soft: #eef8ff;
    position: relative;
    overflow: hidden;
    min-height: 196px;
    padding: 1.25rem;
    border-radius: 22px;
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(13, 88, 145, .1);
    box-shadow: 0 14px 34px rgba(8, 55, 95, .075);
    color: #0b365a;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.account-v5-service-card:hover {
    color: #0b365a;
    transform: translateY(-5px);
    box-shadow: 0 22px 48px rgba(8, 55, 95, .14);
    border-color: color-mix(in srgb, var(--service-accent) 38%, transparent);
}

.account-v5-service-card--sky { --service-accent: #0284c7; --service-soft: #eaf7ff; }
.account-v5-service-card--blue { --service-accent: #006fc7; --service-soft: #eaf4ff; }
.account-v5-service-card--teal { --service-accent: #0f8f88; --service-soft: #e8f8f6; }
.account-v5-service-card--indigo { --service-accent: #4f65c8; --service-soft: #eef0ff; }
.account-v5-service-card--cyan { --service-accent: #0891b2; --service-soft: #e9f9fd; }
.account-v5-service-card--navy { --service-accent: #0b4f7c; --service-soft: #eaf2f8; }
.account-v5-service-card--aqua { --service-accent: #0c91a6; --service-soft: #e8f8fa; }
.account-v5-service-card--slate { --service-accent: #52677d; --service-soft: #eef2f5; }

.account-v5-service-accent {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--service-accent), color-mix(in srgb, var(--service-accent) 46%, #fff));
}

.account-v5-service-card::after {
    content: "";
    position: absolute;
    width: 132px;
    height: 132px;
    right: -58px;
    top: -62px;
    border-radius: 50%;
    background: var(--service-soft);
    opacity: .85;
    transition: transform .25s ease;
}

.account-v5-service-card:hover::after {
    transform: scale(1.12);
}

.account-v5-service-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
}

.account-v5-service-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: var(--service-accent);
    background: var(--service-soft);
    font-size: 1.25rem;
}

.account-v5-service-badge {
    position: relative;
    z-index: 2;
    padding: .3rem .55rem;
    border-radius: 999px;
    color: #8a5b00;
    background: #fff7da;
    border: 1px solid rgba(218,153,0,.16);
    font-size: .66rem;
    font-weight: 900;
    letter-spacing: .02em;
}

.account-v5-service-copy {
    position: relative;
    z-index: 1;
    display: grid;
    gap: .35rem;
    margin-top: 1rem;
    padding-right: 1.4rem;
}

.account-v5-service-copy strong {
    color: #0a3558;
    font-size: 1.04rem;
    font-weight: 900;
}

.account-v5-service-copy small {
    color: #66788a;
    line-height: 1.45;
}

.account-v5-service-arrow {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    width: 32px;
    height: 32px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    color: var(--service-accent);
    background: var(--service-soft);
    font-size: .78rem;
    transition: transform .2s ease;
}

.account-v5-service-card:hover .account-v5-service-arrow {
    transform: translateX(3px);
}

.account-v5-notice {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1.1rem;
    align-items: center;
    margin-top: 1.35rem;
    padding: 1.25rem 1.35rem;
    border-radius: 22px;
    background: rgba(255,255,255,.9);
    border: 1px solid rgba(13, 88, 145, .1);
    box-shadow: 0 12px 30px rgba(8,55,95,.06);
}

.account-v5-notice-icon {
    width: 54px;
    height: 54px;
    border-radius: 17px;
    display: grid;
    place-items: center;
    color: #0077ce;
    background: #eaf5ff;
    font-size: 1.3rem;
}

.account-v5-notice-copy {
    min-width: 0;
}

.account-v5-notice-copy .account-v5-section-kicker {
    margin-bottom: .12rem;
}

.account-v5-notice h3 {
    font-size: 1.05rem;
}

.account-v5-notice ul {
    margin: .5rem 0 0;
    padding-left: 1.05rem;
    color: #5e7183;
    font-size: .88rem;
    line-height: 1.5;
}

.account-v5-notice li + li {
    margin-top: .25rem;
}

.account-v5-notice-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-height: 42px;
    padding: .72rem .95rem;
    border-radius: 14px;
    color: #075ca8;
    background: #f2f8fd;
    border: 1px solid #d5e7f5;
    text-decoration: none;
    font-size: .84rem;
    font-weight: 850;
    white-space: nowrap;
    transition: background .2s ease, transform .2s ease;
}

.account-v5-notice-action:hover {
    color: #064f8e;
    background: #e9f4fc;
    transform: translateY(-1px);
}

@media (max-width: 1080px) {
    .account-v5-hero {
        grid-template-columns: 1fr;
    }

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

    .account-v5-summary-item--wide {
        grid-column: auto;
    }

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

@media (max-width: 767.98px) {
    .account-v5-hero {
        gap: 1.4rem;
        border-radius: 24px;
    }

    .account-v5-identity {
        align-items: flex-start;
    }

    .account-v5-avatar {
        width: 96px;
        height: 96px;
        border-radius: 22px;
        font-size: 2.3rem;
    }

    .account-v5-avatar-edit {
        width: 34px;
        height: 34px;
        border-radius: 11px;
    }

    .account-v5-summary-grid {
        grid-template-columns: 1fr;
    }

    .account-v5-section-head {
        margin-top: 1.7rem;
    }

    .account-v5-notice {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .account-v5-notice-action {
        grid-column: 1 / -1;
        justify-self: stretch;
    }
}

@media (max-width: 575.98px) {
    .account-v5-identity {
        display: grid;
        justify-items: start;
    }

    .account-v5-identity-copy h2 {
        font-size: 2rem;
    }

    .account-v5-contact-row {
        display: grid;
    }

    .account-v5-services {
        grid-template-columns: 1fr;
    }

    .account-v5-service-card {
        min-height: 172px;
    }

    .account-v5-notice {
        grid-template-columns: 1fr;
    }
}
