/*--------------------------------------------------------------
Mapoteca BCN - Custom Styles (Standardized)
--------------------------------------------------------------*/

:root {
    --color-primary: #CC0000;
    --color-primary-10: rgba(204, 0, 0, 0.1);
    --color-primary-20: rgba(204, 0, 0, 0.2);
    --color-primary-40: rgba(204, 0, 0, 0.4);

    --color-secondary: #4a5d8f;
    --color-secondary-40: rgba(74, 93, 143, 0.4);
    --color-secondary-60: rgba(74, 93, 143, 0.6);
    --color-secondary-70: rgba(74, 93, 143, 0.7);
    --color-secondary-hover: #37466c;

    --color-surface: #EEEEEE;
    --color-surface-hover: #e0e0e0;
    --color-surface-light: #f9f9f9;

    --color-white: #ffffff;
    --color-text-main: #1b1c1c;
}

body.dark-mode {
    --color-white: #121212;
    --color-text-main: #e0e0e0;
    --color-surface: #1e1e1e;
    --color-surface-hover: #2a2a2a;
    --color-surface-light: #1a1a1a;
    --color-primary: #ff5252;
    --color-secondary: #8da2d8;
    --color-secondary-hover: #a9bbf0;
    --color-secondary-60: #b0c0e8;
    --color-secondary-70: #c5d3f5;
    --color-primary-10: rgba(255, 82, 82, 0.15);
    --color-primary-20: rgba(255, 82, 82, 0.25);
    --color-primary-40: rgba(255, 82, 82, 0.45);
}

body {
    background-color: var(--color-white);
    color: var(--color-text-main);
    font-family: 'Roboto Condensed', sans-serif;
    line-height: 1.65;
    margin: 0;
    padding: 0;
}

h1 {
    font-family: "Roboto Slab", serif;
}

h2,
h3,
h4,
h5,
h6 {
    font-family: "Roboto Condensed", sans-serif;
}

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-primary);
}

/* Material Symbols Default Config */
.material-symbols-outlined,
.material-icons,
[class*="material-symbols"] {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
    font-feature-settings: 'liga';
    -webkit-font-feature-settings: 'liga';
    color: var(--color-primary);
    display: inline-block;
    vertical-align: middle;
    /* Directivas para evitar que Chrome Translate / traductores automáticos rompan las ligaduras tipográficas */
    text-transform: none;
    line-height: 1;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Wrapper to prevent content hiding under fixed header */
.wrapper {
    padding: 50px 0 0 0;
}

@media only screen and (min-width: 992px) {
    .wrapper {
        padding: 60px 0 0 0;
    }
}

/* Base Layout */
.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    padding: 0 1rem;
    box-sizing: border-box;
}

/* Hero Section */
.hero-section {
    width: 100%;
    max-width: 1440px;
    padding: 1.5rem 0 1rem 0;
    box-sizing: border-box;
    text-align: left;
}

@media (min-width: 1024px) {
    .hero-section {
        padding: 3rem 2rem 2rem 2rem;
        /* Aligns exactly with grid inner content */
    }
}

/* Header Tools (Breadcrumb + Share) */
.header-tools {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-tools-left {
    display: flex;
    align-items: center;
}

.header-tools-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.tools-divider {
    width: 1px;
    height: 1.25rem;
    background-color: var(--color-secondary-40);
}

/* Tool Buttons (Share & Accessibility) */
.social-share,
.accessibility-tools {
    display: flex;
    gap: 0.5rem;
}

.tool-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--color-surface);
    color: var(--color-secondary);
    transition: all 0.2s ease;
    font-size: 14px;
    border: none;
    cursor: pointer;
}

.tool-btn:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
}

/* Lengua de Señas Institutional Widget (Vi-Sor) */
.ls-widget-container {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.tooltip-lengua-senas {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 16px 32px -4px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.05);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    z-index: 1000;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.25s ease, transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.tooltip-lengua-senas::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #ffffff;
    filter: drop-shadow(0 -1px 1px rgba(0, 0, 0, 0.08));
}

.tooltip-lengua-senas img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.tooltip-caption {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-top: 8px;
    font-family: 'Roboto Condensed', sans-serif;
    letter-spacing: 0.02em;
}

.ls-widget-container:hover .tooltip-lengua-senas,
.ls-widget-container:focus-within .tooltip-lengua-senas {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(4px);
}

body.dark-mode .tooltip-lengua-senas {
    background: #1e1e1e;
    border-color: #333333;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}

body.dark-mode .tooltip-lengua-senas::before {
    border-bottom-color: #1e1e1e;
}

body.dark-mode .tooltip-caption {
    color: #e0e0e0;
}

/* Speech Tooltip */
.speech-click-prompt {
    position: absolute;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 6px 14px;
    border-radius: 25px;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    animation: speechPromptFadeIn 0.3s ease-out;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, background 0.2s, opacity 0.3s;
}

.speech-click-prompt:hover {
    transform: scale(1.05);
}

@keyframes speechPromptFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 13px;
    color: var(--color-secondary-60);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.breadcrumb a {
    color: inherit;
    font-weight: 600;
}

.breadcrumb a:hover {
    color: var(--color-primary);
}

.breadcrumb span.icon {
    font-size: 16px;
    opacity: 0.5;
    color: var(--color-secondary-60);
}

.breadcrumb-current {
    font-weight: 700;
    color: var(--color-text-main);
}



.hero-title {
    font-family: 'Roboto Slab', serif;
    color: var(--color-primary);
    font-size: 2.2rem;
    font-weight: 300;
    margin: 0 0 0.2rem 0;
    line-height: 1.1;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 2.6rem;
    }
}

.hero-subtitle {
    font-family: "Roboto Slab", serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: -0.25rem;
    margin-bottom: 1.25rem;
    color: var(--color-text-main);
    letter-spacing: -0.2px;
}

.hero-subtitle .highlight {
    color: var(--color-text-main);
}

.hero-subtitle .muted {
    color: var(--color-secondary);
    font-weight: 400;
}

.header-tools-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 0.6rem;
    column-gap: 0.5rem;
    margin-bottom: 0;
    padding-bottom: 0.2rem;
    width: 100%;
}

.header-tools-row.with-divider {
    border-bottom: 1px solid var(--color-surface-hover);
    padding-bottom: 0.8rem;
    margin-bottom: 1rem;
}

.header-tools-row .tools-divider {
    margin: 0 0.5rem !important;
}

@media (min-width: 480px) {
    .header-tools-row .tools-divider {
        margin: 0 1rem !important;
    }
}

@media (max-width: 420px) {
    .social-share,
    .accessibility-tools {
        gap: 0.35rem;
    }

    .tool-btn {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }

    .header-tools-row .tools-divider {
        margin: 0 0.25rem !important;
    }
}

@media (max-width: 360px) {
    .header-tools-row .tools-divider {
        display: none !important;
    }

    .social-share,
    .accessibility-tools {
        gap: 0.25rem;
    }

    .tool-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

.hero-flex-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: stretch;
    width: 100%;
}

@media (min-width: 1024px) {
    .hero-flex-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .hero-text-content {
        flex: 1;
        min-width: 0;
    }

    .hero-banner-container {
        flex: 0 0 620px;
        margin-left: 3rem;
    }
}

/* Promo Banner Styles */
.promo-banner {
    display: flex;
    flex-direction: row;
    background: var(--color-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(0, 0, 0, 0.05);
    min-height: 200px;
    height: auto;
    width: 100%;
    position: relative;
    align-items: stretch;
}

.promo-banner.vibrant {
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
}

.promo-banner:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(204, 0, 0, 0.15);
    border-color: var(--color-primary-40);
}

.promo-banner.vibrant::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 60%, rgba(204, 0, 0, 0.03));
    z-index: 1;
}

.banner-image-wrapper {
    position: relative;
    width: 240px;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-self: stretch;
}

.banner-image-wrapper img,
.banner-image-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.promo-banner:hover .banner-image-wrapper img,
.promo-banner:hover .banner-image-wrapper video {
    transform: scale(1.15);
}

.banner-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--color-primary);
    color: white;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(204, 0, 0, 0.4);
}

.banner-badge.pulse {
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(204, 0, 0, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(204, 0, 0, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(204, 0, 0, 0);
    }
}

.banner-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
    z-index: 2;
    min-width: 0;
}

.banner-tag {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--color-secondary);
    letter-spacing: 0.08em;
    margin-bottom: 0.4rem;
}

.banner-content h3 {
    font-size: clamp(1.3rem, 2vw, 1.8rem);
    margin: 0 0 0.5rem 0;
    color: var(--color-text-main);
    font-weight: 800;
    line-height: 1.2;
    word-break: break-word;
}

.banner-content p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 1.25rem 0;
    color: var(--color-text-main);
    opacity: 0.9;
    word-break: break-word;
}

.banner-link {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: gap 0.2s ease;
    margin-top: auto;
}

.promo-banner:hover .banner-link {
    gap: 0.8rem;
}

.banner-link .material-symbols-outlined {
    font-size: 20px;
}

@media (max-width: 640px) {
    .promo-banner {
        flex-direction: column;
        min-height: auto;
    }

    .banner-image-wrapper {
        width: 100%;
        height: 180px;
    }
}

/* Grid Navigation Area */
.grid-section {
    width: 100%;
    max-width: 1440px;
    background-color: var(--color-surface);
    border-radius: 24px;
    padding: 1.5rem 1rem;
    margin-bottom: 6rem;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .grid-section {
        border-radius: 32px;
        padding: 2rem;
    }
}

.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1280px) {
    .cards-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Tonal Card */
.tonal-card {
    background-color: var(--color-white);
    padding: 1.75rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 220px;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    border: 1px solid rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.tonal-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1);
    border-color: rgba(204, 0, 0, 0.25);
}

/* Card with Map Header (Opción A) */
.tonal-card.card-with-map {
    padding: 0;
    display: flex;
    flex-direction: column;
}

.card-map-header {
    position: relative;
    width: 100%;
    height: 140px;
    overflow: hidden;
    background-color: var(--color-surface);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.card-map-img-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.card-map-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.3s ease;
    filter: saturate(1.05) contrast(1.02);
}

.tonal-card:hover .card-map-img {
    transform: scale(1.08);
    filter: saturate(1.2) contrast(1.05);
}

.card-map-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.05) 0%, rgba(15, 23, 42, 0.22) 100%);
    pointer-events: none;
    transition: background 0.3s ease, opacity 0.3s ease;
}

.tonal-card:hover .card-map-overlay {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.0) 0%, rgba(15, 23, 42, 0.12) 100%);
}

.card-map-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-hover) 100%);
    color: var(--color-secondary-60);
}

.card-map-placeholder span {
    font-size: 3rem;
    opacity: 0.4;
}

.card-header-floating {
    position: absolute;
    inset: 0;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 2;
    pointer-events: none;
}

.card-icon-pill {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: transform 0.3s ease, background 0.3s ease;
}

.tonal-card:hover .card-icon-pill {
    transform: translateY(-2px);
    background: var(--color-primary);
}

.card-icon-pill .icon {
    font-size: 1.35rem;
    color: var(--color-primary);
    transition: color 0.3s ease;
}

.tonal-card:hover .card-icon-pill .icon {
    color: #ffffff;
}

.card-badges {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-context-badge {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-count-badge {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: background 0.3s ease, transform 0.3s ease;
}

.tonal-card:hover .card-count-badge {
    background: var(--color-primary);
    border-color: rgba(255, 255, 255, 0.4);
}

.tonal-card.card-with-map .card-body {
    padding: 1.35rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    background-color: var(--color-white);
    transition: background-color 0.3s ease;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.card-header .icon {
    font-size: 2.25rem;
    color: var(--color-primary);
}

.card-header .number {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-secondary-60);
}

.card-body {
    margin-top: auto;
}

.card-body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin: 0 0 0.4rem 0;
    transition: color 0.3s ease;
}

.tonal-card:hover .card-body h3 {
    color: var(--color-primary);
}

.card-body p {
    font-size: 0.88rem;
    color: var(--color-text-main);
    opacity: 0.85;
    margin: 0;
    line-height: 1.45;
}

.card-map-caption {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px dashed rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--color-secondary);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-map-caption .caption-icon {
    font-size: 14px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.card-map-caption .caption-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Featured Card */
.featured-card {
    position: relative;
    overflow: hidden;
    background-color: var(--color-secondary);
    border-radius: 16px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 320px;
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    .featured-card {
        grid-column: span 2;
    }
}

.featured-card-bg {
    position: absolute;
    inset: 0;
    opacity: 0.25;
}

.featured-card-bg .gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--color-secondary) 10%, transparent);
    z-index: 10;
}

.featured-card-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-card-content {
    position: relative;
    z-index: 20;
}

.featured-card-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-white);
    margin: 0 0 0.75rem 0;
}

.featured-card-content p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 32rem;
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.6;
}

.featured-btn {
    margin-top: 2rem;
    background-color: var(--color-white);
    color: var(--color-primary);
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.featured-btn:hover {
    background-color: var(--color-surface);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--color-white);
    border-radius: 16px;
    width: 90%;
    max-width: 650px;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.modal-header h2 {
    font-size: 2rem;
    color: var(--color-primary);
    margin: 0;
    font-weight: 700;
}

.modal-close-btn {
    background: none;
    border: none;
    color: var(--color-secondary-60);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.modal-close-btn:hover {
    background-color: var(--color-surface);
    color: var(--color-primary);
}

.modal-body p {
    color: var(--color-text-main);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.modal-body p:last-child {
    margin-bottom: 0;
}

/* ---------------------------------------------- */
/* Interior Pages Layout                          */
/* ---------------------------------------------- */

.interior-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    max-width: 1440px;
    padding: 1rem;
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    .interior-layout {
        flex-direction: row;
        align-items: flex-start;
        padding: 3rem 2rem 2rem 2rem;
    }
}

/* ---------------------------------------------- */
/* Sidebar Navigation & Mobile Bottom Sheet       */
/* ---------------------------------------------- */

/* Trigger Flotante en Móviles (<1024px) */
.mobile-nav-trigger-wrapper {
    display: block;
    position: sticky;
    top: 60px;
    z-index: 900;
    margin: 0 0 1rem 0;
    width: 100%;
}

.mobile-nav-trigger-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--color-surface, #f8f9fa);
    border: 1px solid var(--color-surface-hover, #e2e8f0);
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    color: var(--color-text-main, #1e293b);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav-trigger-btn:active {
    transform: scale(0.98);
}

.trigger-label-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
}

.trigger-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: var(--color-white, #ffffff);
    color: var(--color-secondary);
    border: 1px solid var(--color-surface-hover);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    font-size: 1.25rem !important;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.trigger-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.trigger-sub {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-muted, #64748b);
    font-weight: 600;
}

.trigger-text strong {
    font-size: 1rem;
    color: var(--color-text-main, #0f172a);
}

.trigger-action-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.75rem;
    background: var(--color-primary, #0056b3);
    color: #ffffff;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
}

.trigger-action-badge .material-symbols-outlined {
    font-size: 1.1rem !important;
    color: #ffffff !important;
}

/* Overlay de Fondo */
.mobile-sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1200;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

.mobile-sheet-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Bottom Sheet Container en Móviles */
.sidebar-nav.mobile-bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 82vh;
    background: var(--color-white, #ffffff);
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.18);
    z-index: 1250;
    display: flex;
    flex-direction: column;
    padding: 0 0 1.5rem 0;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    overflow: hidden;
}

.sidebar-nav.mobile-bottom-sheet.active {
    transform: translateY(0);
}

.sheet-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 1.25rem 0.5rem 1.25rem;
    border-bottom: 1px solid var(--color-surface-hover, #f1f5f9);
    flex-shrink: 0;
}

.sheet-handle {
    width: 42px;
    height: 5px;
    background: #cbd5e1;
    border-radius: 99px;
    margin-bottom: 0.75rem;
}

.sheet-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.sheet-title-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sheet-title-icon {
    color: var(--color-primary, #0056b3);
    font-size: 1.3rem !important;
}

.sheet-title-info h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text-main, #0f172a);
}

.sheet-close-btn {
    background: var(--color-surface, #f1f5f9);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-text-muted, #64748b);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.sheet-close-btn:active {
    background: #e2e8f0;
}

.sheet-menu-list {
    list-style: none;
    padding: 0.5rem 0.75rem;
    margin: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex-grow: 1;
}

.sheet-menu-list li a {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    color: var(--color-secondary, #334155);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    border-radius: 12px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.sheet-menu-list .sidebar-icon {
    font-size: 1.35rem !important;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.sheet-menu-list .menu-name {
    flex-grow: 1;
}

.sheet-menu-list .active-check {
    font-size: 1.25rem !important;
    color: var(--color-primary, #0056b3);
}

.sheet-menu-list li a:active,
.sheet-menu-list li a:hover {
    background-color: var(--color-surface-hover, #f1f5f9);
    color: var(--color-primary, #0056b3);
}

.sheet-menu-list li.active a {
    background-color: rgba(0, 86, 179, 0.08);
    color: var(--color-primary, #0056b3);
    font-weight: 700;
}

.sheet-menu-list li.active a .sidebar-icon {
    opacity: 1;
    color: var(--color-primary, #0056b3);
}

/* ---------------------------------------------- */
/* Comportamiento Clásico en Pantallas Grandes    */
/* ---------------------------------------------- */
@media (min-width: 1024px) {
    .mobile-nav-trigger-wrapper,
    .mobile-sheet-overlay,
    .sheet-header,
    .sheet-menu-list .active-check {
        display: none !important;
    }

    .sidebar-nav.mobile-bottom-sheet {
        position: sticky;
        top: 108px;
        bottom: auto;
        left: auto;
        width: 250px;
        max-height: none;
        flex-shrink: 0;
        background-color: var(--color-surface);
        border-radius: 16px;
        padding: 1.5rem 0;
        box-shadow: none;
        z-index: 10;
        transform: none !important;
        overflow: visible;
    }

    .sheet-menu-list {
        padding: 0;
        overflow-y: visible;
    }

    .sheet-menu-list li a {
        padding: 0.75rem 1.5rem;
        border-radius: 0;
        border-left: 4px solid transparent;
        font-weight: 400;
    }

    .sheet-menu-list li a:hover {
        background-color: var(--color-surface-hover);
        color: var(--color-primary);
    }

    .sheet-menu-list li.active a {
        background-color: var(--color-surface-hover);
        color: var(--color-primary);
        border-left-color: var(--color-primary);
        font-weight: 700;
    }
}

/* Content Area */
.content-area {
    flex-grow: 1;
    min-width: 0;
    /* Prevents flex blowout */
}

/* Compact Hero for Interiors */
.hero-section.compact {
    padding: 0 0 0.5rem 0;
    margin-bottom: 0.5rem;
}

.hero-section.compact .hero-title {
    font-size: 2.5rem;
}

.content-body {
    padding-bottom: 4rem;
}

.description-text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 900px;
    color: var(--color-text-main);
}

/* List Cards */
.list-cards {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.list-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background-color: var(--color-white);
    border: 1px solid var(--color-surface-hover);
    border-radius: 12px;
    text-decoration: none;
    color: var(--color-text-main);
    transition: all 0.2s ease;
}

.list-card:hover {
    background-color: var(--color-surface-light);
    border-color: var(--color-primary-20);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.list-card .icon {
    color: var(--color-secondary-60);
    transition: color 0.2s ease;
}

.list-card:hover .icon {
    color: var(--color-primary);
}

.list-card .text {
    font-weight: 500;
    font-size: 1.05rem;
}

.list-card .text-content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.list-card .sub-text {
    font-size: 0.9rem;
    color: var(--color-text-main);
    font-weight: 400;
}

/* ---------------------------------------------- */
/* Comunas specific styles                        */
/* ---------------------------------------------- */

/* Search Bar */
.search-container {
    position: relative;
    margin-bottom: 2rem;
    width: 100%;
}

.search-container .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-secondary-60);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    font-size: 1.1rem;
    border: 1px solid var(--color-surface-hover);
    border-radius: 12px;
    background-color: var(--color-surface-light);
    color: var(--color-text-main);
    box-sizing: border-box;
    font-family: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.search-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: var(--color-white);
    box-shadow: 0 4px 20px rgba(204, 0, 0, 0.1);
}

.clear-search-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--color-secondary-60);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.clear-search-btn:hover {
    background-color: var(--color-surface-hover);
    color: var(--color-primary);
}

.clear-search-btn .material-symbols-outlined {
    font-size: 20px;
    color: inherit;
}

/* Tabs */
.tabs-container {
    width: 100%;
}

.tab-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--color-surface);
    padding-bottom: 0.5rem;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--color-secondary-60);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.tab-btn:hover {
    background-color: var(--color-surface-light);
    color: var(--color-primary);
}

.tab-btn.active {
    color: var(--color-primary);
    background-color: var(--color-primary-10);
    font-weight: 700;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Region Grid (Cards) */
.region-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .region-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.region-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-surface-hover);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
    cursor: pointer;
}

.region-card:hover {
    border-color: var(--color-primary-20);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.region-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background-color: var(--color-white);
}

.region-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-text-main);
    transition: color 0.2s ease;
    flex: 1;
    line-height: 1.3;
}

.region-card:hover .region-name {
    color: var(--color-primary);
}

.region-badge {
    background-color: var(--color-surface);
    color: var(--color-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-left: 1.5rem;
    margin-right: 1rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.expand-icon {
    color: var(--color-secondary-60);
    transition: transform 0.3s ease;
}

.region-card.expanded .expand-icon {
    transform: rotate(180deg);
}

.region-card-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    background-color: var(--color-surface-light);
    border-top: 1px solid transparent;
}

.region-card.expanded .region-card-body {
    max-height: 1000px;
    padding: 1.5rem;
    border-top-color: var(--color-surface-hover);
}

.comunas-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
}

.comunas-list li a {
    display: block;
    color: var(--color-text-main);
    font-size: 0.95rem;
    padding: 0.25rem 0;
    border-left: 2px solid transparent;
    padding-left: 0.5rem;
}

.comunas-list li a:hover {
    color: var(--color-primary);
    border-left-color: var(--color-primary);
}

/* Alphabet Index */
.alphabet-index {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    background-color: var(--color-surface-light);
    padding: 1rem;
    border-radius: 12px;
}

.alpha-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background-color: var(--color-white);
    color: var(--color-text-main);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--color-surface-hover);
}

.alpha-letter:hover:not(.disabled) {
    background-color: var(--color-primary-10);
    color: var(--color-primary);
    border-color: var(--color-primary-20);
}

.alpha-letter.active {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.alpha-letter.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background-color: transparent;
    border-color: transparent;
}

.alpha-results-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.alpha-header {
    font-size: 1.5rem;
    color: var(--color-text-main);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-primary-10);
}

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

.comuna-item {
    padding: 1rem;
    background-color: var(--color-white);
    border: 1px solid var(--color-surface-hover);
    border-radius: 8px;
    font-weight: 500;
    color: var(--color-text-main);
    transition: all 0.2s ease;
    text-decoration: none;
}

.comuna-item:hover {
    border-color: var(--color-primary-20);
    background-color: var(--color-surface-light);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

/* Vectorial Maps Layout */
.vectorial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

@media (min-width: 1024px) {
    .vectorial-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.vectorial-card {
    display: flex;
    flex-direction: column;
    background-color: var(--color-white);
    border: 1px solid var(--color-surface-hover);
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.vectorial-card:hover {
    border-color: var(--color-primary-40);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
    transform: translateY(-4px);
}

.vectorial-icon {
    width: 50px;
    height: 50px;
    background-color: var(--color-surface-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--color-primary);
    transition: all 0.3s ease;
}

.vectorial-card:hover .vectorial-icon {
    background-color: var(--color-primary);
}

.vectorial-card:hover .vectorial-icon .material-symbols-outlined {
    color: var(--color-white) !important;
}

.vectorial-icon .material-symbols-outlined {
    font-size: 28px;
}

.vectorial-content {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.vectorial-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.vectorial-content p {
    font-size: 0.9rem;
    color: var(--color-text-main);
    margin: 0;
}

.vectorial-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-surface);
}

.meta-badge {
    background-color: var(--color-surface);
    color: var(--color-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-size {
    font-size: 0.85rem;
    color: var(--color-secondary-60);
    font-weight: 500;
}

.download-btn {
    margin-left: auto;
    color: var(--color-primary);
    background-color: var(--color-primary-10);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.vectorial-card:hover .download-btn {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.download-btn .material-symbols-outlined {
    font-size: 20px;
}

/* Legal Notes Section */
.legal-notes-section {
    background-color: var(--color-surface-light);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 4rem;
}

.legal-note {
    margin-bottom: 1.5rem;
}

.legal-note:last-child {
    margin-bottom: 0;
}

.legal-note h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin: 0 0 0.5rem 0;
}

.legal-note p {
    font-size: 0.9rem;
    color: var(--color-text-main);
    margin: 0;
    line-height: 1.6;
}

/* Image Cards Layout (Mapas Antiguos) */
.image-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 1024px) {
    .image-card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.image-card {
    display: flex;
    flex-direction: column;
    background-color: var(--color-white);
    border: 1px solid var(--color-surface-hover);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.image-card:hover {
    border-color: var(--color-primary-40);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
    transform: translateY(-4px);
}

.image-card-header {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-bottom: 1px solid var(--color-surface-hover);
}

.image-card-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-card:hover .image-card-header img {
    transform: scale(1.05);
}

.image-card-body {
    padding: 1.5rem 1.5rem 0.5rem 1.5rem;
    flex-grow: 1;
}

.image-card-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
}

.image-card-body p {
    font-size: 0.9rem;
    color: var(--color-text-main);
    margin: 0;
    line-height: 1.5;
}

.image-card-footer {
    padding: 1rem 1.5rem 1.5rem 1.5rem;
    margin-top: auto;
}

.btn-action {
    display: block;
    width: 100%;
    text-align: center;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease;
    box-sizing: border-box;
}

.btn-action:hover {
    background-color: #aa0000;
    color: var(--color-white) !important;
}

.custom-select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--color-text-main);
    background-color: var(--color-surface-light);
    border: 1px solid var(--color-surface-hover);
    border-radius: 8px;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23666%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem top 50%;
    background-size: 0.65rem auto;
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-10);
}

/* Mapas Accesibles Layout */
.accessible-map-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Sidebar Navegación de Mapas -> Convertida a Barra Horizontal Superior */
.map-navigation {
    background-color: var(--color-surface-light);
    border: 1px solid var(--color-surface-hover);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .map-navigation {
        flex-direction: row;
        align-items: center;
    }
}

.map-navigation .nav-header {
    display: flex;
    align-items: center;
}

.map-navigation h3 {
    font-size: 1.1rem;
    color: var(--color-text-main);
    margin: 0;
    padding-bottom: 0;
    border-bottom: none;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .map-navigation h3 {
        padding-right: 1.5rem;
        border-right: 2px solid var(--color-primary);
    }
}

.map-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.map-list li {
    display: inline-block;
}

.map-nav-btn {
    width: auto;
    text-align: center;
    background: var(--color-white);
    border: 1px solid var(--color-surface-hover);
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    color: var(--color-text-main);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.map-nav-btn:hover {
    background-color: var(--color-surface-hover);
    border-color: var(--color-primary-20);
}

.map-nav-btn.active {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(204, 0, 0, 0.2);
}

.map-nav-btn:focus-visible,
.map-zone:focus-visible,
.download-accessible-btn:focus-visible {
    outline: 3px solid var(--color-primary-40);
    outline-offset: 2px;
}

/* Vista de Detalle (Mapa + Panel) */
.map-detail-view {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .map-detail-view {
        /* Layout equitativo 50/50 al liberar la barra lateral */
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }

    /* Layout adaptativo para mapas con proporciones más cuadradas (e.g. RM) */

    .map-detail-view.square-layout .accessible-content-panel {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .map-detail-view.square-layout .map-viewer-container {
        min-height: 600px;
    }

    .map-detail-view.square-layout .interactive-map {
        min-height: 600px;
    }

    .map-detail-view.square-layout .chile-svg-d3 {
        height: 600px;
        width: 100%;
    }
}

/* Visor de Mapa Interactivo (Simulación SVG) */
.map-viewer-container {
    background-color: var(--color-surface-light);
    border: 1px solid var(--color-surface-hover);
    border-radius: 12px;
    padding: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
    position: relative;
    overflow: hidden;
    /* Prevent zoom overflow */
}

/* Controles de Zoom D3 */
.map-zoom-controls {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--color-surface-hover);
}

.zoom-btn {
    width: 38px;
    height: 38px;
    border: 1px solid var(--color-surface-hover);
    background-color: var(--color-white);
    border-radius: 8px;
    color: var(--color-primary);
    /* Icono rojo */
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.zoom-btn:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(204, 0, 0, 0.2);
}

.zoom-btn:hover .material-symbols-outlined {
    color: var(--color-white) !important;
}

.zoom-btn:active {
    transform: scale(0.92);
}

.zoom-btn:focus-visible {
    box-shadow: 0 0 0 3px var(--color-primary-20);
}

.zoom-btn .material-symbols-outlined {
    color: var(--color-primary);
    font-size: 22px;
    font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

.interactive-map {
    width: 100%;
    min-height: 750px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border-radius: 12px;
}

.chile-svg-d3 {
    width: auto;
    max-width: 100%;
    height: 750px;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.16));
}

.map-region-path {
    fill: var(--color-white);
    stroke: #a0a0a0;
    stroke-width: 0.5;
    cursor: pointer;
    transition: all 0.2s ease;
    fill-opacity: 0.45;
}

.map-region-path:hover,
.map-region-path.hover {
    fill-opacity: 0.75;
}

.map-region-path.active {
    fill-opacity: 1;
}

.map-tooltip {
    position: fixed;
    background: var(--color-text-main);
    color: var(--color-white);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -100%);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 2000;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-tooltip.visible {
    opacity: 1;
}

/* Panel de Accesibilidad (Video + Texto + Descargas) */
.accessible-content-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.accessible-video-player,
.equivalent-text-provider,
.accessible-downloads {
    background-color: var(--color-white);
    border: 1px solid var(--color-surface-hover);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

/* Componente AccessibleVideoPlayer */
.video-wrapper {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--color-surface, #f5f5f5);
    margin-bottom: 1rem;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.dark-mode .video-wrapper {
    background-color: #1e1e1e;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    display: block;
    background-color: transparent !important;
    background: transparent !important;
    object-fit: contain;
}

/* Controles personalizados accesibles (Reemplazo de controles nativos para eliminar overlay de Safari) */
.custom-video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.35) 70%, transparent 100%);
    color: #fff;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 10;
}

.video-wrapper:hover .custom-video-controls,
.video-wrapper:focus-within .custom-video-controls,
.video-wrapper.is-paused .custom-video-controls {
    opacity: 1;
    visibility: visible;
}

.custom-video-controls .ctrl-btn {
    background: transparent;
    border: none;
    color: #ffffff !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    border-radius: 4px;
    line-height: 1;
    transition: background-color 0.2s, transform 0.1s;
}

.custom-video-controls .ctrl-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.08);
}

.custom-video-controls .ctrl-btn:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.custom-video-controls .ctrl-btn .material-symbols-outlined {
    font-size: 22px;
    color: #ffffff !important;
}

.custom-video-controls .video-progress-container {
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    height: 16px;
}

.custom-video-controls .video-progress-bar {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 5px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.35);
    outline: none;
    cursor: pointer;
    transition: height 0.15s;
}

.custom-video-controls .video-progress-container:hover .video-progress-bar {
    height: 7px;
}

.custom-video-controls .video-progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.custom-video-controls .video-progress-bar::-moz-range-thumb {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.custom-video-controls .video-time {
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    padding: 0 0.25rem;
}

.video-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.95rem;
}

/* Componente EquivalentTextProvider */
.equivalent-text-provider h3,
.accessible-downloads h3 {
    font-size: 1.1rem;
    color: var(--color-text-main);
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-surface-hover);
}

.text-content p {
    font-size: 0.95rem;
    color: var(--color-text-main);
    line-height: 1.6;
    margin: 0;
}

/* Descargas Accesibles */
.download-accessible-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-direction: column;
    padding: 1rem;
}

.download-accessible-btn span:last-child {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.download-accessible-btn small {
    font-weight: 400;
    font-size: 0.8rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

/* Map Cards (Global) */
.thematic-map-card,
.interamerica-card-link {
    background: white;
    border: 1px solid var(--color-surface-hover);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.thematic-map-card:hover,
.interamerica-card-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--color-primary-20);
}

.map-thumbnail,
.card-image-wrapper {
    height: 180px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #eee;
    overflow: hidden;
    padding: 0.75rem;
}

.map-thumbnail img,
.card-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.card-info {
    padding: 1.25rem;
}

.card-info h3,
.card-info h4 {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin: 0 0 0.5rem 0;
}

.card-info p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.map-nav-btn.active,
.map-nav-btn.active span,
.map-nav-btn.active:visited {
    color: #ffffff !important;
}

.map-nav-btn.active:hover {
    background-color: #aa0000 !important;
    border-color: #aa0000 !important;
    color: #ffffff !important;
}

body.dark-mode .map-nav-btn.active {
    background-color: #d32f2f !important;
    border-color: #d32f2f !important;
    color: #ffffff !important;
}

body.dark-mode .map-nav-btn.active:hover {
    background-color: #b71c1c !important;
    border-color: #b71c1c !important;
    color: #ffffff !important;
}

.map-nav-btn span:not(.material-symbols-outlined) {
    font-size: 0.95rem;
    font-weight: 500;
}

/* Floating Accessibility Video Card for D3 Interactive Map */
.map-floating-video-card {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 220px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--color-surface-hover);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
    /* Crucial: Evita cualquier interferencia (vibración/jitter) con el hover del mapa SVG subyacente */
}

body.dark-mode .map-floating-video-card {
    background: rgba(30, 30, 30, 0.95);
    border-color: var(--color-surface-hover);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.floating-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-main);
}

.floating-card-header .material-symbols-outlined {
    color: var(--color-primary);
    font-size: 20px;
}

.floating-card-header h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
    word-break: break-word;
}

.floating-card-video-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    max-height: 120px;
    border-radius: 8px;
    overflow: hidden;
    background: transparent;
    border: 1px solid var(--color-surface-hover);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-card-video-wrapper video {
    width: 100%;
    height: 100%;
    max-height: 100%;
    display: block;
    object-fit: cover;
    background: transparent;
}

.floating-card-footer {
    font-size: 0.75rem;
    color: var(--color-text-muted, #767676);
    line-height: 1.3;
}

.floating-card-footer p {
    margin: 0;
}

/* Responsive Adaptations for Touch vs Mouse Experiences */
@media (max-width: 1023px) {

    /* Hide the floating hover accessibility card completely on touch devices */
    .map-floating-video-card {
        display: none !important;
    }
}

@media (min-width: 1024px) {

    /* Show the floating hover card on desktops */
    .map-floating-video-card {
        display: flex;
    }
}

/* --- State-driven UI for Touch vs Desktop experiences --- */

/* State 1: Chile Político Active */
.map-detail-view.chile-politico-active .accessible-video-player {
    display: block !important;
}

.map-detail-view.chile-politico-active .accessible-downloads {
    display: none !important;
}

/* State 2: No Selection Active (Intro Mode) */
.map-detail-view.no-selection-active .accessible-video-player {
    display: block !important;
}

.map-detail-view.no-selection-active .accessible-downloads {
    display: none !important;
}

/* State 3: Selection Active (Region Selected) */
@media (max-width: 1023px) {

    /* On mobile/tablet, both the video player and the downloads are visible */
    .map-detail-view.selection-active .accessible-video-player {
        display: block !important;
    }

    .map-detail-view.selection-active .accessible-downloads {
        display: block !important;
    }
}

@media (min-width: 1024px) {
    .map-detail-view.selection-active .accessible-video-player {
        display: block !important;
    }
    .map-detail-view.selection-active .accessible-downloads {
        display: block !important;
    }
}

/* --- Video Selector Tabs (Region vs Capital) --- */
.video-selector-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    width: 100%;
}

.video-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.6rem;
    border-radius: 8px;
    border: 1px solid var(--color-surface-hover);
    background-color: var(--color-surface-light);
    color: var(--color-text-main);
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.video-tab-btn .material-symbols-outlined {
    font-size: 18px;
    color: var(--color-secondary);
    transition: color 0.2s ease;
}

.video-tab-btn:hover {
    background-color: var(--color-surface-hover);
}

.video-tab-btn.active {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.video-tab-btn.active .material-symbols-outlined {
    color: var(--color-white) !important;
}

body.dark-mode .video-tab-btn {
    background-color: var(--color-surface);
    border-color: var(--color-surface-hover);
}

body.dark-mode .video-tab-btn:hover {
    background-color: var(--color-surface-hover);
}

body.dark-mode .video-tab-btn.active {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

/* ==============================================================
   DARK MODE ENHANCEMENTS: Vistas xxx_view, Banner y Contraste
   ============================================================== */

/* Banner Principal de Portada en Dark Mode */
body.dark-mode .promo-banner {
    background: #1e1e1e !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
}

body.dark-mode .promo-banner.vibrant {
    background: linear-gradient(135deg, #1e1e1e 0%, #161616 100%) !important;
}

body.dark-mode .promo-banner.vibrant::before {
    background: linear-gradient(45deg, transparent 60%, rgba(255, 82, 82, 0.06)) !important;
}

body.dark-mode .promo-banner:hover {
    border-color: rgba(255, 82, 82, 0.4) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6) !important;
}

body.dark-mode .banner-tag {
    color: var(--color-secondary) !important;
}

body.dark-mode .banner-content h3 {
    color: #f0f0f0 !important;
}

body.dark-mode .banner-content p {
    color: #c0c0c0 !important;
}

body.dark-mode .banner-link {
    color: var(--color-primary) !important;
}

body.dark-mode .banner-badge {
    background: var(--color-primary) !important;
    color: #ffffff !important;
}

/* Contenedores de Mapas Relacionados en Vistas xxx_view */
body.dark-mode .creative-card {
    background: #1e1e1e !important;
    border-color: #2e2e2e !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .creative-card:hover {
    border-color: rgba(255, 82, 82, 0.35) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45) !important;
}

body.dark-mode .card-title-bar {
    color: var(--color-secondary) !important;
}

body.dark-mode .card-title-bar span:not(.material-symbols-outlined) {
    color: #f0f0f0 !important;
}

body.dark-mode .map-chip {
    background: #252525 !important;
    border-color: #383838 !important;
    color: #d0d0d0 !important;
}

body.dark-mode .map-chip:hover {
    background: var(--color-primary) !important;
    color: #ffffff !important;
    border-color: var(--color-primary) !important;
}

/* Mapas Temáticos en Vistas xxx_view */
body.dark-mode .thematic-map-card,
body.dark-mode .interamerica-card-link {
    background: #1e1e1e !important;
    border-color: #2e2e2e !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .thematic-map-card:hover,
body.dark-mode .interamerica-card-link:hover {
    border-color: rgba(255, 82, 82, 0.35) !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5) !important;
}

body.dark-mode .map-thumbnail,
body.dark-mode .card-image-wrapper {
    background: #161616 !important;
    border-bottom-color: #282828 !important;
}

body.dark-mode .map-thumbnail .material-symbols-outlined {
    color: #555555 !important;
}

body.dark-mode .card-info h3,
body.dark-mode .card-info h4 {
    color: #f0f0f0 !important;
}

body.dark-mode .card-info p {
    color: #a0a0a0 !important;
}

/* Visor y Mapa Principal en Vistas xxx_view */
body.dark-mode .main-map-display {
    background: #1e1e1e !important;
    border-color: #2e2e2e !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .static-map-container {
    background-color: #1e1e1e !important;
    border-color: #2e2e2e !important;
}

body.dark-mode .dummy-map-container {
    background: #161616 !important;
    border-color: #2e2e2e !important;
}

/* Tarjeta ArcGIS / Reporte Comunal & Regional */
body.dark-mode .comparative-tool-card {
    background: linear-gradient(135deg, #1f232a 0%, #15181c 100%) !important;
    border: 1px solid #2d323b !important;
}

body.dark-mode .btn-comparative-action {
    background: #2a2f38 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .btn-comparative-action:hover {
    background: #363c47 !important;
    color: var(--color-primary) !important;
}

body.dark-mode .btn-comparative-action .material-symbols-outlined {
    color: #ffffff !important;
}

body.dark-mode .btn-comparative-action:hover .material-symbols-outlined {
    color: var(--color-primary) !important;
}

/* Controles de Zoom D3 en Dark Mode */
body.dark-mode .map-zoom-controls {
    background-color: rgba(30, 30, 30, 0.9) !important;
    border-color: #383838 !important;
}

body.dark-mode .zoom-btn {
    background-color: #222222 !important;
    border-color: #383838 !important;
    color: var(--color-primary) !important;
}

body.dark-mode .zoom-btn:hover {
    background-color: #2e2e2e !important;
}

/* Portada: Cards con Mapas en Dark Mode */
body.dark-mode .tonal-card.card-with-map {
    background-color: #1a1a1a !important;
    border-color: #2c2c2c !important;
}

body.dark-mode .tonal-card.card-with-map:hover {
    border-color: rgba(255, 82, 82, 0.45) !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6) !important;
}

body.dark-mode .card-map-header {
    background-color: #141414 !important;
    border-bottom-color: #262626 !important;
}

body.dark-mode .card-map-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.35) 100%) !important;
}

body.dark-mode .tonal-card.card-with-map .card-body {
    background-color: #1a1a1a !important;
}

body.dark-mode .card-icon-pill {
    background: rgba(30, 30, 30, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

body.dark-mode .card-icon-pill .icon {
    color: var(--color-primary) !important;
}

body.dark-mode .tonal-card:hover .card-icon-pill {
    background: var(--color-primary) !important;
}

body.dark-mode .tonal-card:hover .card-icon-pill .icon {
    color: #ffffff !important;
}

body.dark-mode .card-map-caption {
    border-top-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--color-secondary-70) !important;
}