#laciudad {
    display: block;
    margin: 0 0 14px;
    font-weight: 700;
    font-size: clamp(1.1rem, 1rem + 0.7vw, 1.55rem);
    color: #1f1f1f;
    line-height: 1.2;
}

#contenido {
    padding: clamp(14px, 2vw, 24px);
    background: #ffffff;
    border-radius: 20px;
    box-sizing: border-box;
}

.contenedor-enlace-dinamico {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 28px;
    margin-top: 20px;
    align-items: start;
}

.col-enlaces {
    align-self: start;
    height: fit-content;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.lista-enlaces {
    list-style: none;
    padding: 0;
    margin: 0;
}

.enlace-item {
    padding: 18px 20px;
    border-bottom: 1px solid #ececec;
    cursor: pointer;
    transition: all 0.25s ease;
    font-weight: 500;
    font-size: clamp(0.94rem, 0.9rem + 0.2vw, 1rem);
    line-height: 1.4;
    color: #222;
    background: #fff;
}

.enlace-item:last-child {
    border-bottom: none;
}

.enlace-item:hover {
    background: #f7f7f7;
    padding-left: 24px;
}

.enlace-item.active {
    background: #f3f3f3;
    border-left: 4px solid #c00;
    font-weight: 700;
    color: #111;
}

.contenedor-enlace-dinamico {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 28px;
    margin-top: 20px;
    align-items: start;
}

.col-enlaces {
    align-self: start;
    height: fit-content;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.lista-enlaces {
    list-style: none;
    padding: 0;
    margin: 0;
}

.enlace-item {
    padding: 18px 20px;
    border-bottom: 1px solid #ececec;
    cursor: pointer;
    transition: all 0.25s ease;
    font-weight: 500;
    font-size: clamp(0.94rem, 0.9rem + 0.2vw, 1rem);
    line-height: 1.4;
    color: #222;
    background: #fff;
}

.enlace-item:last-child {
    border-bottom: none;
}

.enlace-item:hover {
    background: #f7f7f7;
    padding-left: 24px;
}

.enlace-item.active {
    background: #f3f3f3;
    border-left: 4px solid #c00;
    font-weight: 700;
    color: #111;
}

.col-imagen {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.10);
    min-height: 580px;
    max-height: 700px;
    padding: 14px;
    box-sizing: border-box;
}

.imagen-preview {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 660px;
    object-fit: contain;
    object-position: center;
    background: #fff;
    margin: 0;
    padding: 0;
    border: 0;
    transition: opacity 0.3s ease;
}

@media (max-width: 1600px) {
    .contenedor-enlace-dinamico {
        grid-template-columns: 1fr;
        gap: 20px;
        align-items: start;
    }

    .col-imagen {
        order: 1;
        min-height: 500px;
        max-height: 620px;
        padding: 14px;
    }

    .imagen-preview {
        max-height: 590px;
    }

    .col-enlaces {
        order: 2;
        align-self: start;
        height: fit-content;
    }
}

@media (max-width: 992px) {
    .col-imagen {
        min-height: 420px;
        max-height: 520px;
        border-radius: 18px;
        padding: 10px;
    }

    .imagen-preview {
        max-height: 490px;
    }

    .col-enlaces {
        border-radius: 18px;
    }

    .enlace-item {
        padding: 16px 18px;
    }
}

@media (max-width: 768px) {
    .contenedor-enlace-dinamico {
        gap: 16px;
    }

    .col-imagen {
        min-height: 340px;
        max-height: 420px;
        border-radius: 16px;
        padding: 8px;
    }

    .imagen-preview {
        max-height: 360px;
    }

    .col-enlaces {
        border-radius: 16px;
    }

    .enlace-item {
        padding: 14px 14px;
        font-size: 0.95rem;
    }

    .enlace-item:hover {
        padding-left: 18px;
    }
}

@media (max-width: 480px) {
    .col-imagen {
        min-height: 210px;
        max-height: 270px;
        border-radius: 14px;
        padding: 6px;
    }

    .imagen-preview {
        max-height: 250px;
    }

    .col-enlaces {
        border-radius: 14px;
    }

    .enlace-item {
        padding: 12px;
        font-size: 0.9rem;
        line-height: 1.35;
    }
}

/*H2 TITULO*/
#importante h5,
#contenido-calles h5 {
    margin: 0 0 18px;
    font-size: clamp(1rem, 0.9rem + 0.7vw, 1.35rem);
    font-weight: 600;
    color: var(--color-dark);
    line-height: 1.2;
    position: relative;
    padding-left: 14px;
    letter-spacing: 0.2px;
}

#importante h5::before,
#contenido-calles h5::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 3px;
    height: calc(100% - 6px);
    background: var(--color-primary);
    border-radius: 10px;
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 1.3rem;
        padding-left: 12px;
        line-height: 1.2;
    }

    .section-header h2::before {
        width: 3px;
        top: 3px;
        height: calc(100% - 6px);
    }
}

@media (max-width: 480px) {
    .section-header h2 {
        font-size: 1.1rem;
        padding-left: 10px;
    }

    .section-header h2::before {
        width: 3px;
        top: 2px;
        height: calc(100% - 4px);
    }
}

/*TARJETAS*/
.important-section {
    padding: 0 !important;
}

.quick-access {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    gap: 28px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 4px;
    overflow-x: hidden !important;
    overflow-y: visible;
    align-items: stretch;
    justify-items: stretch;
    box-sizing: border-box;
}

.quick-access>* {
    min-width: 0;
    max-width: 100%;
}

.quick-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;

    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 250px;
    padding: 22px 24px 18px;
    box-sizing: border-box;

    background: #fff;
    border: 1px solid var(--color-primary-hover);
    border-radius: 14px;
    text-decoration: none;
    color: var(--color-text);

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);

    transition: all 0.28s ease;
    overflow: hidden;
}

.card-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--color-primary);
    border-radius: 14px 14px 0 0;
}

.quick-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.card-icon {
    margin-top: 8px;
    margin-bottom: 10px;

    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;

    background: #aeaeae2f;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;

    overflow: hidden;
    flex-shrink: 0;
    backdrop-filter: blur(4px);
}

.card-icon .tarjetaPrincipIMG {
    width: 52px;
    height: 52px;
    object-fit: contain;
    display: block;
}

.quick-card h3 {
    font-size: clamp(17px, 1.4vw, 22px);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 8px;
    color: var(--color-dark);
    letter-spacing: 0.4px;
}

.quick-card h3::after {
    content: "";
    display: block;
    width: clamp(35px, 3vw, 50px);
    height: 3px;
    background: var(--color-primary);
    margin: 8px auto 0;
    border-radius: 2px;
}

.quick-card p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-muted);
    margin: 0 0 12px;
    max-width: 280px;
}

.btn-go {
    display: inline-block;
    background: var(--color-dark);
    color: var(--color-white);
    padding: 8px 22px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.25s ease;
}

.quick-card:hover .btn-go {
    background: var(--color-primary);
}

@media (max-width: 1200px) {
    .quick-access {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 22px;
    }
}

@media (max-width: 1024px) {
    .quick-access {
        gap: 22px;
    }

    .quick-card {
        padding: 20px 18px 18px;
        min-height: 230px;
        border-radius: 13px;
    }

    .card-top {
        height: 5px;
    }

    .card-icon {
        width: 82px;
        height: 82px;
        margin-top: 6px;
        margin-bottom: 10px;
    }

    .card-icon .tarjetaPrincipIMG {
        width: 44px;
        height: 44px;
    }

    .quick-card h3 {
        font-size: 18px;
        line-height: 1.2;
    }

    .quick-card p {
        font-size: 13px;
        line-height: 1.45;
    }
}

@media (max-width: 768px) {
    .quick-access {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    .quick-card {
        padding: 18px 14px 16px;
        min-height: unset;
        justify-content: flex-start;
        border-radius: 12px;
    }

    .card-top {
        height: 5px;
    }

    .card-icon {
        width: 76px;
        height: 76px;
        margin-top: 4px;
        margin-bottom: 10px;
    }

    .card-icon .tarjetaPrincipIMG {
        width: 40px;
        height: 40px;
    }

    .quick-card h3 {
        font-size: 16px;
        line-height: 1.2;
        margin: 0 0 8px;
    }

    .quick-card h3::after {
        margin: 7px auto 0;
    }

    .quick-card p {
        font-size: 13px;
        line-height: 1.4;
        margin: 0 0 12px;
    }

    .btn-go {
        padding: 7px 18px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .quick-card {
        padding: 16px 12px 14px;
    }

    .card-icon {
        width: 68px;
        height: 68px;
        margin-bottom: 8px;
    }

    .card-icon .tarjetaPrincipIMG {
        width: 36px;
        height: 36px;
    }

    .quick-card h3 {
        font-size: 15px;
    }

    .quick-card p {
        font-size: 12.5px;
    }

    .btn-go {
        padding: 6px 16px;
        font-size: 12px;
    }
}