/* 
   DIAN Clone Stylesheet
   High Fidelity and Premium Visual Recreation
*/

/* DESIGN SYSTEM VARIABLES */
:root {
    --primary-green: #008A5E;
    --primary-green-hover: #00b37a;
    --dark-blue: #0F4C81;
    --light-blue-bg: #EBF5FA;
    --body-bg: #FDFDFD;
    --card-border: #E1E8ED;
    --text-dark: #1C1F22;
    --text-muted: #55585D;
    --white: #FFFFFF;
    --gov-blue: #004884;
}

/* GENERAL RESET & BASICS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Work Sans', sans-serif;
    background-color: var(--body-bg);
    color: var(--text-dark);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

/* TOP GOV.CO BAR */
.gov-bar {
    background-color: #F2F6FA;
    /* Light blue-gray background */
    height: 30px;
    border-bottom: 1px solid #E1E8ED;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.gov-container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: stretch;
    /* So the logo block fills the height */
    height: 100%;
    justify-content: flex-start;
}

.gov-logo {
    background-color: #3366cc;
    /* GOV.CO blue background */
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-right: 1.5px solid var(--white);
    /* White separator */
    height: 100%;
    transition: background-color 0.2s;
    position: relative;
    z-index: 1;
}

.gov-logo::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: -100vw;
    background-color: #3366cc;
    z-index: -1;
}

.gov-logo img {
    height: 14px;
    width: auto;
    display: block;
}

.gov-logo:hover {
    background-color: #003a6c;
}

.gov-logo:hover::before {
    background-color: #003a6c;
}

.gov-text {
    color: #004884;
    /* GOV.CO blue text */
    font-size: 11px;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    align-items: center;
    padding-left: 15px;
}

@media (max-width: 480px) {
    .gov-text {
        font-size: 9px;
        padding-left: 8px;
    }

    .gov-logo {
        padding: 0 10px;
    }
}

/* MAIN HEADER */
.main-header {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
}

.dian-logo-svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* HERO BANNER */
.hero-banner-wrapper {
    width: 100%;
    background-color: var(--white);
    padding: 5px 0 20px 0;
}

.hero-banner-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-banner-link {
    display: block;
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero-banner-link:hover {
    opacity: 0.96;
    transform: translateY(-1px);
}

.hero-banner-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.header-accent-band {
    height: 6px;
    background-color: var(--primary-green);
    width: 100%;
}

/* CONTENT WRAPPER */
.content-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ROW 1: SIDEBAR & MAIN CARDS */
.main-layout-row {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* LEFT SIDEBAR */
.sidebar {
    width: 25%;
    flex-shrink: 0;
}

.sidebar-title-area {
    margin-bottom: 20px;
}

.sidebar-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
}

.sidebar-subtitle {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-green);
}

.sidebar-menu {
    background-color: var(--primary-green);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 138, 94, 0.1);
}

.menu-block {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--white);
    transition: background-color 0.2s ease;
}

.menu-block:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.menu-block-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.menu-icon {
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.95;
}

.menu-block h3 {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.menu-desc {
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.85);
}

.menu-list {
    list-style: none;
    padding-left: 0;
}

.menu-list li {
    margin-top: 10px;
    padding-left: 12px;
    position: relative;
    font-size: 13px;
    line-height: 1.3;
}

.menu-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--white);
    font-weight: bold;
}

.menu-list li a {
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.2s;
    font-weight: 500;
}

.menu-list li a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* MAIN CONTENT COLUMN */
.main-content {
    width: 75%;
}

.main-title-area {
    margin-bottom: 25px;
}

.main-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
}

.main-subtitle {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-green);
}

/* CARDS GRID */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background-color: var(--white);
    border: 1px solid var(--card-border);
    border-radius: 4px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.01);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary-green);
    padding-bottom: 10px;
}

.card-icon {
    color: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
}

.card-list {
    list-style: none;
}

.card-list li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 8px;
    font-size: 12px;
    line-height: 1.4;
}

.card-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 6px;
    height: 6px;
    background-color: var(--primary-green);
}

.card-list li a {
    color: var(--text-dark);
    font-weight: 500;
}

.card-list li a:hover {
    color: var(--primary-green);
    text-decoration: underline;
}

.card-text {
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-muted);
}

/* SECTION: TEMAS DE INTERÉS */
.temas-interes-box {
    background-color: var(--light-blue-bg);
    border-radius: 4px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.02);
}

.temas-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 25px;
}

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

.tema-card {
    display: flex;
    flex-direction: column;
}

.tema-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    border-bottom: 2px solid var(--primary-green);
    padding-bottom: 8px;
}

.tema-icon {
    color: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tema-header h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
}

.tema-list {
    list-style: none;
}

.tema-list li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 6px;
    font-size: 12px;
    line-height: 1.4;
}

.tema-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 6px;
    height: 6px;
    background-color: var(--primary-green);
}

.tema-list li a {
    color: var(--text-dark);
    font-weight: 500;
}

.tema-list li a:hover {
    color: var(--primary-green);
    text-decoration: underline;
}

.tema-text {
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-muted);
}

/* SECTION: SERVICIOS A LA CIUDADANÍA (FULL WIDTH) */
.servicios-ciudadania-section {
    margin-top: 50px;
    width: 100%;
}

.section-divider-line {
    height: 4px;
    background-color: var(--primary-green);
    margin-bottom: 25px;
    border-radius: 2px;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.servicios-cols-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.servicios-col {
    display: flex;
    flex-direction: column;
}

.col-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 18px;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 8px;
}

.servicios-list {
    list-style: none;
}

.servicios-list li {
    position: relative;
    padding-left: 14px;
    margin-bottom: 8px;
    font-size: 11.5px;
    line-height: 1.35;
}

.servicios-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 5px;
    height: 5px;
    background-color: var(--primary-green);
}

.servicios-list li a {
    color: #333333;
    font-weight: 500;
}

.servicios-list li a:hover {
    color: var(--primary-green);
    text-decoration: underline;
}

/* Prevalidadores SUBSECTION */
.prevalidadores-subsection {
    margin-top: 40px;
    border-top: 1px solid var(--card-border);
    padding-top: 30px;
}

.subsection-main-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 20px;
}

.prevalidadores-cols-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.prevalidadores-col {
    display: flex;
    flex-direction: column;
}

.sub-col-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

/* FOOTER */
.main-footer {
    background-color: var(--gov-blue);
    color: var(--white);
    padding: 50px 20px;
    margin-top: 80px;
    border-top: 4px solid var(--primary-green);
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 20% 40% 40%;
    gap: 40px;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-logos {
    align-items: center;
    gap: 25px;
}

.footer-gov-logo {
    max-width: 150px;
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 10px;
}

.footer-co-logo {
    max-width: 80px;
    width: 100%;
    height: auto;
    display: block;
}

.footer-info h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-info h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 2px;
    background-color: var(--white);
}

.footer-info p {
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.85);
}

.footer-info p strong {
    color: var(--white);
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: var(--white);
    color: var(--gov-blue);
    border-radius: 50%;
    transition: transform 0.2s, background-color 0.2s, color 0.2s;
}

.social-icons a:hover {
    transform: scale(1.15);
    background-color: #FFCD00;
    /* Colombia yellow accent on hover */
    color: var(--gov-blue);
}

.footer-links h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 2px;
    background-color: var(--white);
}

.contact-center-box {
    margin-bottom: 25px;
}

.contact-center-box h4,
.servicios-linea-box h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #FFCD00;
}

.contact-center-box p {
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.85);
}

.contact-center-box p strong {
    color: var(--white);
    font-size: 13px;
}

/* WHATSAPP CONTACT BOX (FOOTER) */
.whatsapp-contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    padding: 16px 20px;
    text-decoration: none;
    color: var(--white);
    transition: all 0.25s ease;
    backdrop-filter: blur(8px);
    margin-top: 12px;
}

.whatsapp-contact-card:hover {
    background: rgba(37, 211, 102, 0.18);
    border-color: #25D366;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.whatsapp-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.whatsapp-details {
    display: flex;
    flex-direction: column;
}

.whatsapp-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.whatsapp-number {
    font-size: 22px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    color: #FFFFFF;
    letter-spacing: 0.5px;
    margin: 2px 0;
}

.whatsapp-cta {
    font-size: 12px;
    color: #25D366;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* SUBPAGE HEADER TOOLS & NAVIGATION */
.header-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
    flex-wrap: wrap;
}

.header-tools-container {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.header-social-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: #8c959d;
    padding: 5px 8px;
    border-radius: 4px;
}

.header-social-pill a {
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 11px;
    transition: opacity 0.2s;
}

.header-social-pill a:hover {
    opacity: 0.8;
}

.header-search-form {
    display: flex;
    align-items: center;
    border: 1px solid #ced4da;
    border-radius: 4px;
    overflow: hidden;
    background-color: #fff;
}

.header-search-input {
    border: none;
    padding: 6px 12px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    width: 190px;
}

.header-search-btn {
    border: none;
    background: transparent;
    padding: 6px 10px;
    cursor: pointer;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-access-bar {
    display: flex;
    align-items: center;
    background-color: #8c959d;
    border-radius: 4px;
    padding: 4px 6px;
    gap: 4px;
}

.header-access-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* HORIZONTAL SUBPAGE NAV BAR */
.subpage-nav-wrapper {
    background-color: #fff;
    border-top: 1px solid #edf2f7;
}

.subpage-nav-list {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.subpage-nav-list li a {
    display: block;
    padding: 12px 4px;
    font-size: 12.5px;
    font-weight: 500;
    color: #333333;
    transition: color 0.2s;
}

.subpage-nav-list li.active a,
.subpage-nav-list li a:hover {
    color: var(--primary-green);
    font-weight: 700;
}

/* BREADCRUMB */
.breadcrumb-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 16px 20px 4px 20px;
    font-size: 12px;
    color: #6c757d;
    font-style: italic;
}

.breadcrumb-container a {
    color: #55585d;
    text-decoration: none;
}

.breadcrumb-container a:hover {
    color: var(--primary-green);
    text-decoration: underline;
}

/* REMATE VIRTUAL SECTION */
.remate-layout-row {
    display: flex;
    gap: 35px;
    align-items: flex-start;
    margin-top: 15px;
}

.remate-sidebar {
    width: 25%;
    flex-shrink: 0;
}

.remate-sidebar-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #1c1f22;
    margin-bottom: 20px;
}

.remate-menu {
    list-style: none;
    border-top: 1px solid #E1E8ED;
}

.remate-menu li {
    border-bottom: 2px solid var(--primary-green);
}

.remate-menu li a {
    display: block;
    padding: 13px 6px;
    font-size: 13.5px;
    font-weight: 600;
    color: #2D3748;
    transition: all 0.2s ease;
}

.remate-menu li a:hover {
    color: var(--primary-green);
    padding-left: 8px;
}

.remate-content {
    width: 75%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.remate-banner-box {
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.remate-banner-img {
    width: 100%;
    height: auto;
    display: block;
}

.remate-text-box {
    font-size: 14.5px;
    line-height: 1.6;
    color: #2d3748;
}

.remate-text-box h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a202c;
}

.remate-text-box p {
    margin-bottom: 14px;
}

.remate-bullets {
    list-style: none;
    padding-left: 0;
    margin-bottom: 24px;
}

.remate-bullets li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 14px;
}

.remate-bullets li::before {
    content: "•";
    position: absolute;
    left: 4px;
    top: 0;
    font-size: 16px;
    color: #1a202c;
    font-weight: bold;
}

.remate-cta-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 10px;
    width: 100%;
}

.btn-buscar-remates {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 820px;
    text-align: center;
    background: linear-gradient(180deg, #007bb5 0%, #006090 100%);
    color: #FFFFFF !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 4px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 96, 144, 0.25);
    transition: all 0.25s ease;
}

.btn-buscar-remates:hover {
    background: linear-gradient(180deg, #008ece 0%, #0070a8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 96, 144, 0.35);
}

.btn-whatsapp-soporte {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 820px;
    text-align: center;
    background: linear-gradient(180deg, #25D366 0%, #1ea952 100%);
    color: #FFFFFF !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 4px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.25);
    transition: all 0.25s ease;
}

.btn-whatsapp-soporte:hover {
    background: linear-gradient(180deg, #28e26d 0%, #1c9b4b 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
}

/* ==========================================================================
   TITAN DESIGN ENGINE — RESPONSIVE DESIGN SYSTEM (MOBILE & TABLET)
   ========================================================================== */

/* Fluid Headings for Seamless Scaling */
.sidebar-title,
.main-title {
    font-size: clamp(22px, 3.2vw, 28px);
}

.section-title {
    font-size: clamp(20px, 2.8vw, 26px);
}

.temas-title {
    font-size: clamp(18px, 2.2vw, 20px);
}

/* Touch targets and mobile UX enhancements */
html, body {
    overflow-x: hidden;
    width: 100%;
}

a, button {
    -webkit-tap-highlight-color: rgba(0, 138, 94, 0.15);
}

.menu-list li a,
.card-list li a,
.tema-list li a,
.servicios-list li a,
.footer-link-list li a {
    display: inline-block;
    padding: 2px 0;
}

/* --- BREAKPOINT: LAPTOPS / COMPACT DESKTOPS (max-width: 1200px) --- */
@media (max-width: 1200px) {
    .content-container {
        padding: 30px 20px;
    }

    .temas-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

/* --- BREAKPOINT: TABLET LANDSCAPE & PORTRAIT (max-width: 1024px) --- */
@media (max-width: 1024px) {
    .gov-container,
    .header-container,
    .hero-banner-container,
    .content-container,
    .footer-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .main-layout-row {
        flex-direction: column;
        gap: 35px;
    }

    .sidebar {
        width: 100%;
    }

    /* Tablet: Arrange sidebar menu blocks in 2-column grid for compactness */
    .sidebar-menu {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .menu-block {
        border-right: 1px solid rgba(255, 255, 255, 0.15);
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    .menu-block:nth-child(2n) {
        border-right: none;
    }

    .block-transaccional {
        grid-column: span 2;
    }

    .main-content {
        width: 100%;
        margin-top: 0;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .temas-interes-box {
        padding: 24px 20px;
    }

    .temas-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .servicios-cols-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .prevalidadores-cols-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
    }

    .footer-logos {
        grid-column: span 2;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 40px;
    }

    .footer-gov-logo {
        max-width: 130px;
        margin-bottom: 0;
    }

    .footer-co-logo {
        max-width: 70px;
    }

    /* Subpage Remate Virtual Responsiveness (Tablet) */
    .remate-layout-row {
        flex-direction: column;
        gap: 30px;
    }

    .remate-sidebar {
        width: 100%;
    }

    .remate-content {
        width: 100%;
    }
}

/* --- BREAKPOINT: PHABLETS / LARGE PHONES (max-width: 767px) --- */
@media (max-width: 767px) {
    .gov-bar {
        height: auto;
        min-height: 30px;
        padding: 2px 0;
    }

    .gov-container {
        padding: 0 14px;
    }

    .gov-logo {
        padding: 0 12px;
    }

    .gov-logo img {
        height: 12px;
    }

    .gov-text {
        font-size: 10px;
        padding-left: 10px;
    }

    .header-container {
        padding: 12px 14px;
    }

    .brand-logo-container {
        max-width: 230px;
    }

    .header-top-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .header-tools-container {
        width: 100%;
        justify-content: flex-start;
        gap: 10px;
    }

    .hero-banner-wrapper {
        padding: 2px 0 15px 0;
    }

    .hero-banner-container {
        padding: 0 14px;
    }

    .content-container {
        padding: 24px 14px;
    }

    .sidebar-menu {
        grid-template-columns: 1fr;
    }

    .menu-block {
        border-right: none;
        padding: 20px 16px;
    }

    .block-transaccional {
        grid-column: span 1;
    }

    .card {
        padding: 20px 18px;
    }

    .servicios-ciudadania-section {
        margin-top: 35px;
    }

    .prevalidadores-subsection {
        margin-top: 30px;
        padding-top: 20px;
    }

    .main-footer {
        padding: 40px 14px 30px 14px;
        margin-top: 50px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-logos {
        grid-column: span 1;
        justify-content: center;
        gap: 30px;
    }

    .footer-info h3::after,
    .footer-links h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-icons {
        justify-content: center;
    }

    .whatsapp-contact-card {
        max-width: 320px;
        margin: 12px auto 0 auto;
        text-align: left;
    }
}

/* --- BREAKPOINT: SMALL MOBILE DEVICES (max-width: 540px) --- */
@media (max-width: 540px) {
    .gov-bar {
        min-height: 28px;
    }

    .gov-logo {
        padding: 0 8px;
    }

    .gov-logo img {
        height: 11px;
    }

    .gov-text {
        font-size: 9px;
        padding-left: 6px;
        line-height: 1.2;
    }

    .header-container {
        padding: 10px 12px;
    }

    .brand-logo-container {
        max-width: 190px;
    }

    .header-search-input {
        width: 130px;
    }

    .hero-banner-container {
        padding: 0 10px;
    }

    .content-container {
        padding: 16px 10px;
    }

    .sidebar-title-area,
    .main-title-area {
        margin-bottom: 16px;
    }

    .sidebar-subtitle,
    .main-subtitle {
        font-size: 13px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: 20px;
    }

    .card {
        padding: 16px 14px;
    }

    .card-header {
        margin-bottom: 10px;
        padding-bottom: 8px;
    }

    .card-header h3 {
        font-size: 14px;
    }

    .temas-interes-box {
        padding: 16px 12px;
        margin-top: 20px;
    }

    .temas-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .servicios-cols-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .prevalidadores-cols-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .remate-sidebar-title {
        font-size: 22px;
    }

    .btn-buscar-remates {
        font-size: 16px;
        padding: 12px 18px;
    }

    .main-footer {
        padding: 30px 12px 20px 12px;
        margin-top: 40px;
    }

    .social-icons a {
        width: 36px;
        height: 36px;
    }

    .whatsapp-number {
        font-size: 19px;
    }
}