/* CGREG Portal — UX layer (identidad + componentes) */

:root {
    --cgreg-blue: #0b4f8a;
    --cgreg-blue-dark: #083a66;
    --cgreg-blue-soft: #e8f1f8;
    --cgreg-ocean: #1a7a6d;
    --cgreg-ocean-soft: #e6f4f1;
    --cgreg-ink: #152033;
    --cgreg-muted: #5c6578;
    --cgreg-line: #d5dde8;
    --cgreg-surface: #f4f7fb;
    --cgreg-white: #ffffff;
    --cgreg-gold: #c9a227;
    --cgreg-radius: 14px;
    --cgreg-shadow: 0 12px 32px rgba(11, 79, 138, 0.1);
    --cgreg-shadow-hover: 0 18px 40px rgba(11, 79, 138, 0.16);
    --font-display: "Outfit", "Segoe UI", sans-serif;
    --font-body: "Source Sans 3", "Segoe UI", sans-serif;
    --header-h: 88px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body) !important;
    font-size: 16px !important;
    line-height: 1.5;
    color: var(--cgreg-ink) !important;
    background: var(--cgreg-surface) !important;
}

.wrapper {
    overflow-x: hidden;
    overflow-y: visible;
}

h1, h2, h3, h4, h5, h6,
.section-title,
.nav-links .nav-link,
.btn-hero,
.btn-service,
.filter-chip,
.btn-wizard-cta {
    font-family: var(--font-display);
}

/* —— Header / Nav —— */
header,
header.header-sm,
header.nav-down {
    background: #ffffff36 !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: none;
    min-height: var(--header-h) !important;
    transition:
        background-color 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease,
        backdrop-filter 0.25s ease;
}

/* Estado B: fuera del hero — navy sólido */
header.header-solid,
header.header-solid.header-sm,
header.header-solid.nav-down {
    background: var(--cgreg-blue-dark) !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 10px 28px rgba(5, 28, 52, 0.35);
}

header .logo img {
    height: 56px;
    width: auto;
}

.nav-menu-button .line,
header .nav-menu-button .line {
    background: #fff !important;
}

.nav-links .nav-link,
header a.nav-link {
    color: rgba(255, 255, 255, 0.92) !important;
    font-weight: 600;
    font-size: 0.95rem !important;
    letter-spacing: 0.01em;
    border-radius: 999px;
    padding: 0.45rem 0.9rem !important;
    transition: background 0.2s ease, color 0.2s ease;
    position: relative;
    background: transparent;
}

header a.nav-link:before {
    display: none !important;
}

.nav-links .nav-link:hover,
header a.nav-link:hover,
header a.nav-link:focus {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.16) !important;
}

.nav-links .nav-link.active,
header a.nav-link.active {
    color: var(--cgreg-blue) !important;
    background: #fff !important;
}

.nav-link-internal {
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    margin-left: 0.25rem;
    color: #fff !important;
}

.nav-link-internal:hover {
    border-color: #fff !important;
    background: rgba(255, 255, 255, 0.16) !important;
    color: #fff !important;
}

/* Mobile menu: contraste y tipografía saneada */
@media (max-width: 991px) {
    .nav-menu .nav-link,
    .nav-menu .nav-social ul li a {
        font-size: 1.25rem !important;
    }

    .mobile-menu-open .nav-menu {
        background: linear-gradient(180deg, var(--cgreg-blue-dark) 0%, #0a2f52 100%) !important;
        z-index: 1000;
        padding: calc(var(--header-h) + 1rem) 1.5rem 2rem !important;
    }

    .mobile-menu-open .nav-menu .nav-links {
        display: flex !important;
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }

    .mobile-menu-open .nav-links .nav-link,
    .mobile-menu-open header a.nav-link,
    .mobile-menu-open header a.nav-link:hover,
    .mobile-menu-open header a.nav-link.active,
    .mobile-menu-open header a.nav-link:focus {
        color: #fff !important;
        background: rgba(255, 255, 255, 0.08);
        text-align: center;
        padding: 0.85rem 1rem !important;
        font-size: 1.15rem !important;
    }

    .mobile-menu-open .nav-links .nav-link.active,
    .mobile-menu-open .nav-links .nav-link:hover {
        background: rgba(255, 255, 255, 0.16) !important;
    }

    .mobile-menu-open .nav-link-internal {
        border-color: rgba(255, 255, 255, 0.35) !important;
    }

    .mobile-menu-open .nav-menu-button .line {
        background: #fff !important;
    }

    .mobile-menu-open header,
    .mobile-menu-open header.header-solid {
        background: transparent !important;
        border-bottom-color: transparent;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

/* —— Hero con imagen institucional —— */
.hero-portal {
    position: relative;
    overflow: hidden;
    padding: calc(var(--header-h) + 56px) 0 88px;
    text-align: center;
    color: #fff;
    background-color: var(--cgreg-blue-dark);
    background-image: url("../images/hero-cgreg.jpg");
    background-size: cover;
    background-position: center 40%;
    background-repeat: no-repeat;
}

.hero-portal::before {
    content: "";
    position: absolute;
    inset: 0;
    /* Overlay de lectura: se aclara hacia abajo para no pelear con el fade */
    background: linear-gradient(
        180deg,
        rgba(8, 40, 72, 0.72) 0%,
        rgba(8, 52, 90, 0.55) 55%,
        rgba(20, 48, 78, 0.28) 82%,
        rgba(244, 247, 251, 0) 100%
    );
    pointer-events: none;
    z-index: 0;
}

.hero-portal::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 140px;
    /* Fade largo con stops suaves (ease) hacia el color de la sección siguiente */
    background: linear-gradient(
        180deg,
        rgba(244, 247, 251, 0) 0%,
        rgba(244, 247, 251, 0.08) 28%,
        rgba(244, 247, 251, 0.28) 48%,
        rgba(244, 247, 251, 0.58) 68%,
        rgba(244, 247, 251, 0.86) 86%,
        rgba(244, 247, 251, 1) 100%
    );
    pointer-events: none;
    z-index: 0;
}

.hero-portal__inner {
    position: relative;
    z-index: 1;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

.hero-portal__brand {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.35rem;
    animation: heroRise 0.7s ease both;
}

.hero-portal__logo {
    height: 96px;
    width: auto;
    object-fit: contain;
    background: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.35));
}

.hero-portal__eyebrow {
    display: inline-block;
    margin: 0 0 0.85rem;
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
    animation: heroRise 0.7s ease 0.08s both;
}

.hero-portal h1 {
    margin: 0 auto 1rem;
    max-width: 18ch;
    font-size: clamp(2.1rem, 4.5vw, 3.35rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #fff !important;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
    animation: heroRise 0.7s ease 0.14s both;
}

.hero-portal__lead {
    margin: 0 auto 1.75rem;
    max-width: 40rem;
    font-size: 1.12rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.28);
    animation: heroRise 0.7s ease 0.2s both;
}

.hero-portal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    animation: heroRise 0.7s ease 0.28s both;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    max-width: none;
    width: auto;
    min-height: 0;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-hero-primary {
    background: #fff;
    color: var(--cgreg-blue-dark) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.btn-hero-primary:hover,
.btn-hero-primary:focus {
    background: #f3f8fc;
    color: var(--cgreg-blue-dark) !important;
}

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

@media (prefers-reduced-motion: reduce) {
    .hero-portal__brand,
    .hero-portal__eyebrow,
    .hero-portal h1,
    .hero-portal__lead,
    .hero-portal__actions,
    .service-card,
    .indicator-card {
        animation: none !important;
        transition: none !important;
    }
}

/* —— Servicios —— */
.services-section {
    padding: 28px 0 80px;
    position: relative;
    z-index: 1;
    background: var(--cgreg-surface);
}

.services-section .section-title,
.indicators-section .section-title {
    font-size: clamp(1.75rem, 3vw, 2.2rem) !important;
    font-weight: 700;
    color: var(--cgreg-ink) !important;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    line-height: 1.2 !important;
}

.services-section .section-subtitle,
.indicators-section .section-subtitle {
    color: var(--cgreg-muted) !important;
    font-size: 1.05rem !important;
    line-height: 1.5 !important;
    max-width: 40rem;
    margin-bottom: 1.75rem;
}

.services-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.75rem;
}

.services-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-chip {
    appearance: none;
    -webkit-appearance: none;
    border: 1.5px solid var(--cgreg-line);
    background: #fff !important;
    color: var(--cgreg-muted) !important;
    border-radius: 999px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem !important;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    max-width: none;
    width: auto;
    min-height: 0;
    box-shadow: none;
    transition: all 0.2s ease;
}

.filter-chip:hover,
.filter-chip:focus {
    border-color: var(--cgreg-blue);
    color: var(--cgreg-blue) !important;
    background: #fff !important;
    outline: none;
}

.filter-chip.is-active,
.filter-chip.is-active:hover,
.filter-chip.is-active:focus {
    background: var(--cgreg-blue) !important;
    border-color: var(--cgreg-blue) !important;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(11, 79, 138, 0.22);
}

.services-search {
    position: relative;
    width: min(100%, 280px);
    flex: 0 1 280px;
}

.services-search i {
    position: absolute;
    left: 0.95rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--cgreg-muted);
    font-size: 0.85rem;
    pointer-events: none;
    z-index: 1;
}

.services-search input {
    width: 100%;
    border: 1.5px solid var(--cgreg-line);
    border-radius: 999px;
    padding: 0.6rem 1rem 0.6rem 2.4rem;
    font-size: 0.95rem !important;
    line-height: 1.3;
    background: #fff;
    color: var(--cgreg-ink) !important;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.services-search input:focus {
    border-color: var(--cgreg-blue);
    box-shadow: 0 0 0 3px rgba(11, 79, 138, 0.12);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.service-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--cgreg-line);
    border-radius: var(--cgreg-radius);
    overflow: hidden;
    box-shadow: var(--cgreg-shadow);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
    box-shadow: var(--cgreg-shadow-hover);
    border-color: rgba(11, 79, 138, 0.28);
}

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

.service-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #fff;
    overflow: hidden;
}

.service-card__media::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(8, 40, 72, 0.35) 0%,
        rgba(8, 52, 90, 0.18) 45%,
        rgba(255, 255, 255, 0) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.service-card__media::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 55%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.12) 28%,
        rgba(255, 255, 255, 0.4) 52%,
        rgba(255, 255, 255, 0.78) 78%,
        rgba(255, 255, 255, 1) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.service-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 1.15rem 1.2rem 1.25rem;
    flex: 1;
    min-width: 0;
}

.service-card__audience {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    z-index: 2;
    display: inline-flex;
    padding: 0.22rem 0.55rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--cgreg-blue-dark) !important;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.2;
    box-shadow: 0 1px 4px rgba(8, 40, 72, 0.12);
}

.service-card__title {
    margin: 0;
    font-size: 1.15rem !important;
    font-weight: 700;
    line-height: 1.25;
    color: var(--cgreg-ink) !important;
}

.service-card__desc {
    margin: 0;
    color: var(--cgreg-muted) !important;
    font-size: 0.95rem !important;
    line-height: 1.45;
    flex: 1;
}

.service-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.35rem;
}

.btn-service {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex: 1 1 calc(50% - 0.25rem);
    min-width: 0;
    max-width: none !important;
    width: auto !important;
    min-height: 42px !important;
    height: auto !important;
    padding: 0.55rem 0.85rem !important;
    border-radius: 10px !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    border: 1.5px solid transparent;
    cursor: pointer;
    letter-spacing: 0 !important;
    box-shadow: none !important;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.service-card__actions .btn-service:only-child {
    flex: 1 1 100%;
}

.btn-service-primary {
    background: var(--cgreg-blue) !important;
    color: #fff !important;
    border-color: var(--cgreg-blue) !important;
}

.btn-service-primary:hover,
.btn-service-primary:focus {
    background: var(--cgreg-blue-dark) !important;
    color: #fff !important;
}

.btn-service-danger {
    background: #c62828 !important;
    color: #fff !important;
    border-color: #c62828 !important;
}

.btn-service-danger:hover,
.btn-service-danger:focus {
    background: #a31f1f !important;
    color: #fff !important;
    border-color: #a31f1f !important;
}

.btn-service-secondary {
    background: #fff !important;
    color: var(--cgreg-ink) !important;
    border-color: var(--cgreg-line) !important;
}

.btn-service-secondary:hover,
.btn-service-secondary:focus {
    border-color: var(--cgreg-gold) !important;
    background: #fffbeb !important;
    color: var(--cgreg-ink) !important;
}

.services-empty {
    display: none;
    grid-column: 1 / -1;
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--cgreg-muted);
    background: #fff;
    border: 1px dashed var(--cgreg-line);
    border-radius: var(--cgreg-radius);
}

.services-empty.is-visible {
    display: block;
}

/* —— Indicadores —— */
.indicators-section {
    padding: 64px 0 72px;
    background:
        linear-gradient(180deg, var(--cgreg-surface) 0%, #fff 40%, var(--cgreg-surface) 100%);
}

.indicators-section .section-title {
    text-align: center;
}

.indicators-section .section-subtitle {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.indicators-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.indicator-card {
    background: #fff;
    border: 1px solid var(--cgreg-line);
    border-radius: var(--cgreg-radius);
    padding: 1.5rem 1.25rem;
    text-align: center;
    box-shadow: var(--cgreg-shadow);
    transition: box-shadow 0.25s ease;
    height: 100%;
}

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

.indicator-card h3 {
    margin: 0 0 0.35rem;
    font-size: 2.1rem !important;
    font-weight: 700;
    color: var(--cgreg-blue) !important;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.indicator-card h3 sup {
    font-size: 0.55em;
    top: -0.6em;
}

.indicator-card h6 {
    margin: 0 0 0.5rem;
    font-size: 1rem !important;
    font-weight: 700;
    color: var(--cgreg-ink) !important;
}

.indicator-card p {
    margin: 0;
    font-size: 0.9rem !important;
    color: var(--cgreg-muted) !important;
    line-height: 1.4;
}

/* —— Footer institucional —— */
.site-footer {
    background: var(--cgreg-blue-dark);
    color: rgba(255, 255, 255, 0.88);
    padding: 2.5rem 0 1.5rem;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.site-footer__brand {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.site-footer__brand img {
    height: 64px;
    width: auto;
    background: transparent;
    border-radius: 0;
    padding: 0;
    flex-shrink: 0;
}

.site-footer__brand h5 {
    margin: 0 0 0.4rem;
    font-size: 1.05rem !important;
    color: #fff !important;
}

.site-footer__brand p {
    margin: 0;
    font-size: 0.9rem !important;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.72) !important;
}

.site-footer h6 {
    margin: 0 0 0.75rem;
    font-size: 0.85rem !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55) !important;
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer li + li {
    margin-top: 0.45rem;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.88) !important;
    text-decoration: none;
    font-size: 0.95rem !important;
}

.site-footer a:hover {
    color: #fff !important;
    text-decoration: underline;
}

.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
}

/* —— Modal requisitos —— */
#modalRequisitos .modal-content {
    border: none !important;
    border-radius: 18px !important;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(21, 32, 51, 0.25);
}

#modalRequisitos .modal-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between;
    gap: 1rem;
    background: linear-gradient(135deg, var(--cgreg-blue) 0%, var(--cgreg-blue-dark) 100%);
    color: #fff;
    border-bottom: none !important;
    padding: 1rem 1.25rem !important;
    position: relative;
}

#modalRequisitos .modal-title {
    font-family: var(--font-display);
    font-size: 1.1rem !important;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: #fff !important;
    margin: 0;
    line-height: 1.3;
}

#modalRequisitos .modal-header .btn-close {
    position: static !important;
    right: auto !important;
    top: auto !important;
    flex: 0 0 auto;
    width: 2rem !important;
    height: 2rem !important;
    min-height: 0 !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.14) !important;
    background-image: none !important;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: none;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    filter: none;
}

#modalRequisitos .modal-header .btn-close::before {
    content: "×";
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    font-weight: 500;
}

#modalRequisitos .modal-header .btn-close:hover {
    background-color: rgba(255, 255, 255, 0.24) !important;
    opacity: 1;
}

#modalRequisitos .modal-body {
    padding: 1.15rem 1.25rem 1.35rem !important;
    background: #fff;
}

/* Stepper: grid igual + línea entre centros */
#wizardProgress.wizard-progress {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    justify-items: center;
    gap: 0;
    position: relative;
    margin: 0 0 1.25rem;
    padding: 1.1rem 0.75rem 0.95rem;
    background: var(--cgreg-surface);
    border-radius: 12px;
    border: 1px solid var(--cgreg-line);
}

#wizardProgress.wizard-progress.is-two-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

#wizardProgress.wizard-progress::before {
    content: "";
    position: absolute;
    top: calc(1.1rem + 14px);
    left: calc(100% / 6);
    right: calc(100% / 6);
    height: 2px;
    background: var(--cgreg-line);
    z-index: 0;
    pointer-events: none;
}

#wizardProgress.wizard-progress.is-two-steps::before {
    left: 25%;
    right: 25%;
}

#wizardProgress .wizard-progress__item {
    width: 100%;
    max-width: none;
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.4rem;
    position: relative;
    z-index: 1;
    padding: 0 0.35rem;
    text-align: center;
    margin: 0;
}

#wizardProgress .wizard-progress__item::before,
#wizardProgress .wizard-progress__item::after {
    content: none !important;
    display: none !important;
}

#wizardProgress .wizard-progress__dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
    background: #fff;
    border: 2px solid var(--cgreg-line);
    color: var(--cgreg-muted);
    box-sizing: border-box;
    box-shadow: none !important;
}

#wizardProgress .wizard-progress__item.is-active .wizard-progress__dot {
    background: var(--cgreg-blue);
    border-color: var(--cgreg-blue);
    color: #fff;
}

#wizardProgress .wizard-progress__item.is-complete .wizard-progress__dot {
    background: var(--cgreg-ocean);
    border-color: var(--cgreg-ocean);
    color: #fff;
}

#wizardProgress .wizard-progress__label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--cgreg-muted);
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

#wizardProgress .wizard-progress__item.is-active .wizard-progress__label,
#wizardProgress .wizard-progress__item.is-complete .wizard-progress__label {
    color: var(--cgreg-ink);
}

#wizardProgress.wizard-progress.is-two-steps .wizard-progress__item[data-step="3"] {
    display: none;
}

/* Sin lifts / translate en hover */
#modalRequisitos .tramite-card:hover,
#modalRequisitos .tramite-card:active,
.btn-hero:hover,
.btn-hero:focus,
.btn-service:hover,
.btn-service:focus,
.btn-wizard-cta:hover,
.indicator-card:hover,
.service-card:hover {
    transform: none !important;
}

#modalRequisitos .btn-volver:hover,
#modalRequisitos .lista-documentos a:hover {
    transform: none !important;
}

.wizard-cta {
    margin-top: 1.25rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--cgreg-line);
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    justify-content: space-between;
}

.wizard-cta__hint {
    margin: 0;
    font-size: 0.88rem !important;
    color: var(--cgreg-muted) !important;
    max-width: 28rem;
}

.btn-wizard-cta {
    display: inline-flex !important;
    align-items: center;
    gap: 0.45rem;
    background: var(--cgreg-ocean) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 0.7rem 1.15rem !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    text-decoration: none !important;
    max-width: none !important;
    width: auto !important;
    min-height: 0 !important;
    transition: background 0.2s ease, transform 0.15s ease;
}

.btn-wizard-cta:hover,
.btn-wizard-cta:focus {
    background: #15685d !important;
    color: #fff !important;
}

#modalRequisitos .wizard-step-info h6 {
    color: var(--cgreg-ink) !important;
    font-size: 1.05rem !important;
}

#modalRequisitos .wizard-step-info p {
    color: var(--cgreg-muted) !important;
    font-size: 0.9rem !important;
}

#modalRequisitos .tramite-card {
    border-radius: 12px;
}

#modalRequisitos .tramite-card:focus-visible {
    outline: 3px solid rgba(11, 79, 138, 0.35);
    outline-offset: 2px;
}

#modalRequisitos .tramite-card-icon {
    background: linear-gradient(135deg, var(--cgreg-blue) 0%, #1a6fc9 100%);
}

#modalRequisitos .tramite-card:hover .tramite-card-icon {
    background: linear-gradient(135deg, var(--cgreg-ocean) 0%, #239688 100%);
}

#modalRequisitos .tramite-badge {
    border-radius: 10px;
    background: linear-gradient(135deg, var(--cgreg-blue) 0%, var(--cgreg-blue-dark) 100%);
}

#modalRequisitos .lista-documentos a:hover {
    background-color: var(--cgreg-blue);
}

#modalRequisitos .btn-volver {
    color: var(--cgreg-blue) !important;
}

#modalRequisitos .btn-volver:hover {
    color: var(--cgreg-ocean) !important;
}

/* Neutralizar restos de plantilla NFT */
.auction-card-footer,
.card-timer {
    display: none !important;
}

/* —— Responsive —— */
@media (max-width: 1600px) {
    body {
        font-size: 16px !important;
    }
}

@media (max-width: 1199px) {
    body {
        font-size: 16px !important;
    }
}

@media (max-width: 991px) {
    body {
        font-size: 16px !important;
    }

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

    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-portal {
        padding-top: calc(var(--header-h) + 36px);
        padding-bottom: 72px;
        background-position: center 35%;
    }
}

@media (max-width: 767px) {
    :root {
        --header-h: 76px;
    }

    header .logo img {
        height: 46px;
    }

    .hero-portal {
        padding: calc(var(--header-h) + 28px) 0 64px;
        background-position: 60% center;
    }

    .hero-portal__brand {
        gap: 0.75rem;
    }

    .hero-portal__logo {
        height: 76px;
    }

    .services-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .services-search {
        width: 100%;
        flex: 1 1 auto;
    }

    .btn-service {
        flex: 1 1 100%;
    }

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

    .site-footer__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    #wizardProgress.wizard-progress {
        padding: 0.95rem 0.35rem 0.8rem;
    }

    #wizardProgress.wizard-progress::before {
        top: calc(0.95rem + 14px);
    }

    #wizardProgress .wizard-progress__label {
        font-size: 0.68rem;
        white-space: normal;
    }

    .wizard-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-wizard-cta {
        justify-content: center;
    }
}

/* —— Página Acceso interno / Sistemas institucionales —— */
body.page-interno {
    background: var(--cgreg-surface) !important;
}

body.page-interno header,
body.page-interno header.header-sm,
body.page-interno header.nav-down,
body.page-interno header.header-solid {
    background: var(--cgreg-blue-dark) !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 10px 28px rgba(5, 28, 52, 0.35);
}

body.page-interno .logo a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

body.page-interno .nav-link-internal {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.interno-section {
    padding: calc(var(--header-h) + 36px) 0 72px;
}

.interno-section .section-title {
    font-size: clamp(1.75rem, 3vw, 2.2rem) !important;
    font-weight: 700;
    color: var(--cgreg-ink) !important;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    line-height: 1.2 !important;
}

.interno-section .section-subtitle {
    color: var(--cgreg-muted) !important;
    font-size: 1.05rem !important;
    line-height: 1.5 !important;
    max-width: 40rem;
    margin-bottom: 1.5rem;
}

.interno-toolbar {
    justify-content: flex-end;
    margin-bottom: 1.5rem;
}

.interno-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.1rem;
}

.interno-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.85rem;
    background: #fff;
    border: 1px solid var(--cgreg-line);
    border-radius: var(--cgreg-radius);
    padding: 1.35rem 1.1rem 1.2rem;
    box-shadow: var(--cgreg-shadow);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.interno-card:hover {
    box-shadow: var(--cgreg-shadow-hover);
    border-color: rgba(11, 79, 138, 0.28);
    transform: none !important;
}

.interno-card.is-hidden {
    display: none;
}

.interno-card__icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    background: var(--cgreg-blue-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(11, 79, 138, 0.08);
}

.interno-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0;
    display: block;
}

.interno-card__title {
    margin: 0;
    font-size: 1.05rem !important;
    font-weight: 700;
    line-height: 1.25;
    color: var(--cgreg-ink) !important;
    min-height: 2.5em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.interno-card .btn-service {
    width: 100% !important;
    flex: 0 0 auto;
    margin-top: auto;
}

@media (max-width: 767px) {
    .interno-section {
        padding-top: calc(var(--header-h) + 24px);
    }

    .interno-toolbar {
        justify-content: stretch;
    }

    .interno-toolbar .services-search {
        width: 100%;
        flex: 1 1 auto;
    }
}

/* —— Noticias del Consejo (spotlight / Actual) —— */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.news-section {
    padding: 56px 0 56px;
    background: #fff;
}

.news-spotlight__label {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0 0 0.85rem;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--cgreg-ink);
}

.news-spotlight__mark {
    width: 3px;
    height: 1.05em;
    background: var(--cgreg-ink);
    flex-shrink: 0;
}

.news-spotlight__stage {
    position: relative;
    overflow: hidden;
    background: var(--cgreg-blue-dark);
    isolation: isolate;
}

.news-spotlight__toggle {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    z-index: 3;
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    border-radius: 4px;
    background: rgba(8, 40, 72, 0.55);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(6px);
}

.news-spotlight__toggle:hover,
.news-spotlight__toggle:focus-visible {
    background: rgba(8, 40, 72, 0.78);
    outline: none;
}

.news-spotlight__nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    transform: translateY(-50%);
    width: 2.4rem;
    height: 2.4rem;
    border: 0;
    border-radius: 4px;
    background: rgba(8, 40, 72, 0.5);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(6px);
}

.news-spotlight__nav:hover,
.news-spotlight__nav:focus-visible {
    background: rgba(8, 40, 72, 0.78);
    outline: none;
}

.news-spotlight__nav--prev {
    left: 0.85rem;
}

.news-spotlight__nav--next {
    right: 0.85rem;
}

.news-spotlight__viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 21 / 9;
    min-height: 280px;
    max-height: 460px;
}

.news-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.55s ease;
    pointer-events: none;
    overflow: hidden;
}

.news-slide.is-active {
    opacity: 1;
    z-index: 1;
}

.news-slide__image {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    object-position: center;
    display: block;
}

@media (prefers-reduced-motion: reduce) {
    .news-slide {
        transition: none;
    }
}

.news-spotlight__overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 4.5rem 1.25rem 1.15rem;
    background: linear-gradient(
        180deg,
        rgba(8, 40, 72, 0) 0%,
        rgba(8, 40, 72, 0.45) 35%,
        rgba(8, 40, 72, 0.88) 100%
    );
    pointer-events: none;
}

.news-caption {
    display: none;
    width: 100%;
    max-width: 52rem;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
    color: #fff;
    cursor: pointer;
    font: inherit;
    pointer-events: auto;
}

.news-caption.is-active {
    display: block;
}

.news-caption__date {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
}

.news-caption__title {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.4vw, 1.75rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 0.45rem;
}

.news-caption:hover .news-caption__title,
.news-caption:focus-visible .news-caption__title {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.news-caption__excerpt {
    display: block;
    margin: 0 0 0.65rem;
    font-size: 0.98rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.88);
    max-width: 40rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-caption__cta {
    display: inline-flex;
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.7);
    padding-bottom: 0.05rem;
}

.news-spotlight__controls {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: 0.75rem;
}

.news-spotlight__bars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 0.4rem;
    flex: 1;
    min-width: 0;
}

.news-spotlight__status {
    margin: 0;
    flex: 0 0 auto;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--cgreg-muted);
    white-space: nowrap;
}

.news-bar {
    position: relative;
    height: 1.35rem;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.news-bar__track {
    position: relative;
    display: block;
    width: 100%;
    height: 5px;
    border-radius: 999px;
    background: #d7dee8;
    overflow: hidden;
}

.news-bar__fill {
    display: block;
    height: 100%;
    width: 0;
    background: var(--cgreg-blue-dark);
}

.news-bar.is-done .news-bar__fill {
    width: 100%;
}

.news-bar.is-active .news-bar__track {
    background: #c9d4e3;
}

.news-bar:hover .news-bar__track,
.news-bar:focus-visible .news-bar__track {
    background: #c0cbda;
}

.news-bar:focus-visible {
    outline: 2px solid var(--cgreg-blue);
    outline-offset: 2px;
}

@media (max-width: 767px) {
    .news-spotlight__viewport {
        aspect-ratio: 4 / 3;
        max-height: none;
        min-height: 260px;
    }

    .news-spotlight__overlay {
        padding: 3.25rem 1rem 1rem;
    }

    .news-caption__excerpt {
        -webkit-line-clamp: 3;
    }

    .news-spotlight__nav {
        width: 2.1rem;
        height: 2.1rem;
    }

    .news-spotlight__controls {
        flex-wrap: wrap;
        gap: 0.45rem 0.75rem;
    }

    .news-spotlight__status {
        order: -1;
        width: 100%;
        font-size: 0.8rem;
    }
}

#modalNoticia .modal-dialog {
    max-width: 760px;
}

#modalNoticia .modal-content,
.news-modal {
    position: relative;
    border: none !important;
    border-radius: 0 !important;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 28px 80px rgba(8, 40, 72, 0.35);
}

#modalNoticia .modal-header,
#modalNoticia .modal-body,
#modalNoticia .modal-footer {
    display: none !important;
}

.news-modal__close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 5;
    width: 2.35rem;
    height: 2.35rem;
    border: 0;
    border-radius: 4px;
    background: rgba(8, 40, 72, 0.62);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(6px);
    max-width: none !important;
    min-height: 0 !important;
    padding: 0 !important;
}

.news-modal__close:hover,
.news-modal__close:focus-visible {
    background: rgba(8, 40, 72, 0.85);
    outline: none;
}

.news-modal__hero {
    position: relative;
    aspect-ratio: 16 / 9;
    max-height: 320px;
    background: var(--cgreg-blue-dark);
    overflow: hidden;
}

.news-modal__hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 35%;
    background: linear-gradient(180deg, transparent, rgba(8, 40, 72, 0.35));
    pointer-events: none;
}

.news-modal__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
    border-radius: 0;
    max-height: none;
}

.news-modal__content {
    padding: 1.5rem 1.6rem 1.7rem;
}

.news-modal__kicker {
    margin: 0 0 0.55rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cgreg-blue);
}

.news-modal__title {
    margin: 0 0 0.65rem;
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.4vw, 1.85rem) !important;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: var(--cgreg-ink) !important;
}

.news-modal__date {
    display: block;
    margin: 0 0 1.15rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--cgreg-line);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--cgreg-muted);
}

.news-modal__body {
    color: var(--cgreg-ink);
    font-size: 1.02rem;
    line-height: 1.7;
    max-width: 40rem;
}

.news-modal__body p {
    margin: 0 0 1rem;
}

.news-modal__body p:last-child {
    margin-bottom: 0;
}

.news-modal__body strong {
    color: var(--cgreg-blue-dark);
    font-weight: 700;
}

.news-modal__actions {
    margin-top: 1.35rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--cgreg-line);
}

.news-modal__actions[hidden] {
    display: none !important;
}

.news-modal__link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--cgreg-blue) !important;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 0.1rem;
}

.news-modal__link:hover {
    color: var(--cgreg-blue-dark) !important;
}

@media (max-width: 767px) {
    .news-modal__hero {
        aspect-ratio: 16 / 10;
        max-height: 220px;
    }

    .news-modal__content {
        padding: 1.2rem 1.15rem 1.35rem;
    }
}
