:root {
    --brand-green: #104d30;
    --brand-green-hover: #0a3320;
    --brand-gold: #b99149;
    --brand-gold-hover: #9c7637;
    --brand-gold-light: #fdf9f3;
    --text-dark: #333333;
    --text-muted: #666666;
    --border-light: #e2e8f0;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* ================= CABECERA COMPACTA (#f9f9f9) ================= */
.header-outer-wrapper {
    background-color: #f9f9f9;
    border-bottom: 1px solid var(--border-light);
    padding: 24px 0;
    width: 100%;
}

.document-header-horizontal-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.header-left-block {
    display: flex;
    align-items: center;
    gap: 16px;
}

.main-section-icon {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.main-title {
    font-family: 'Oswald', sans-serif !important;
    font-size: 26px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--brand-green);
    line-height: 1.1;
    letter-spacing: 0.3px;
}

.main-subtitle {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 2px;
}

.notice-right-box {
    background-color: var(--brand-gold-light);
    border-radius: 8px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 480px;
    border: 1px solid #f3ebe1;
}

.notice-box-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.notice-box-text {
    font-size: 11.5px;
    line-height: 1.4;
    color: #2b2b2b;
}

/* ================= SECCIÓN DE CONTENIDO PRINCIPAL ================= */
.main-content-wrapper {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 32px 24px;
}

.selector-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.selector-text-block {
    display: flex;
    flex-direction: column;
}

.selector-section-title {
    font-family: 'Oswald', sans-serif !important;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-dark);
    letter-spacing: 0.5px;
}

.selector-section-subtitle {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-top: 2px;
}

.tabs-selector-container {
    display: flex;
    gap: 12px;
}

.tab-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 24px;
    border-radius: 6px;
    border: 1.5px solid var(--border-light);
    background-color: #ffffff;
    cursor: pointer;
    font-family: 'Oswald', sans-serif !important;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--text-dark);
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.tab-btn .btn-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.tab-btn:hover {
    border-color: var(--brand-green);
    color: var(--brand-green);
}

.tab-btn.active {
    background-color: var(--brand-green);
    border-color: var(--brand-green);
    color: #ffffff !important;
}

/* ================= VISTA DE REQUISITOS COMPACTA ================= */
.tab-content-panel {
    display: none;
}

.tab-content-panel.active-panel {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.requirements-columns-wrapper {
    flex: 1.7;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 28px;
}

.requirements-footer-wrapper {
    grid-column: span 2;
    margin-top: 4px;
}

.requirement-list-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: #2c3e50;
    line-height: 1.4;
    font-weight: 500;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 8px;
}

.requirement-number {
    font-family: 'Oswald', sans-serif !important;
    font-weight: 600;
    color: var(--brand-green);
    min-width: 18px;
    font-size: 13px;
}

.requirement-text {
    flex: 1;
}

.panel-notice-note {
    background-color: var(--brand-gold-light);
    border-left: 3px solid var(--brand-green);
    padding: 10px 14px;
    border-radius: 0 6px 6px 0;
    font-size: 11.5px;
    font-weight: 600;
    color: #000000;
}

/* Columna de la derecha: Mini Vista Previa / Imagen */
.mockup-sidebar-column {
    flex: 0.9;
    position: sticky;
    top: 20px;
}

.mockup-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-light);
    display: block;
}

/* ================= SECTOR INFERIOR INTEGRAL (#f9f9f9) ================= */
.bottom-section-outer-wrapper {
    background-color: #f9f9f9;
    border-top: 1px solid var(--border-light);
    padding: 32px 0 40px 0;
    width: 100%;
}

.bottom-section-container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

/* Bloque del Asesor (Izquierda) */
.advisor-callout-block {
    flex: 1;
    background-color: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.01);
    min-width: 400px;
}

.advisor-icon {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.advisor-text-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.advisor-title {
    font-family: 'Oswald', sans-serif !important;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-dark);
    letter-spacing: 0.3px;
}

.advisor-desc {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.advisor-buttons-flex {
    display: flex;
    gap: 10px;
}

.advisor-cta-btn {
    background-color: var(--brand-gold);
    color: #ffffff;
    font-family: 'Oswald', sans-serif !important;
    font-size: 12.5px;
    font-weight: 500;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: background-color 0.2s ease;
}

.advisor-cta-btn:hover {
    background-color: var(--brand-gold-hover);
}

.fianza-cta-btn {
    background-color: var(--brand-green);
    color: #ffffff;
    font-family: 'Oswald', sans-serif !important;
    font-size: 12.5px;
    font-weight: 500;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: background-color 0.2s ease;
}

.fianza-cta-btn:hover {
    background-color: var(--brand-green-hover);
}

/* Bloque de Documentos Secundarios Relacionados (Derecha) */
.documents-aside-layout {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1.5;
}

.aside-title-text {
    font-family: 'Oswald', sans-serif !important;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--brand-green);
    letter-spacing: 0.5px;
}

.horizontal-cards-flex-strip {
    display: flex;
    gap: 8px;
    width: 100%;
}

.compact-icon-card {
    flex: 1;
    background-color: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 12px 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 95px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compact-icon-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
    border-color: #cbd5e1;
}

.compact-card-media {
    width: 26px;
    height: 26px;
    object-fit: contain;
    margin-bottom: 6px;
}

.compact-card-title {
    font-family: 'Oswald', sans-serif !important;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 4px;
}

.compact-card-description {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 9px;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.2;
}

/* ================= RESPONSIVO INDEPENDIENTE ================= */
@media (max-width: 1100px) {
    .bottom-section-container {
        flex-direction: column;
        align-items: stretch;
        gap: 28px;
    }
    .tab-content-panel.active-panel {
        flex-direction: column;
        gap: 24px;
    }
    .mockup-sidebar-column {
        position: static;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .selector-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .requirements-columns-wrapper {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .requirements-footer-wrapper {
        grid-column: span 1;
    }
    .document-header-horizontal-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .notice-right-box {
        max-width: 100%;
        width: 100%;
    }
    .horizontal-cards-flex-strip {
        flex-wrap: wrap;
        justify-content: center;
    }
    .compact-icon-card {
        width: calc(33.33% - 6px);
        flex: none;
    }
}

@media (max-width: 600px) {
    .tabs-selector-container {
        width: 100%;
        flex-direction: column;
    }
    .compact-icon-card {
        width: calc(50% - 4px);
    }
    .advisor-callout-block {
        min-width: auto;
    }
    .advisor-buttons-flex {
        flex-direction: column;
    }
    .advisor-cta-btn, .fianza-cta-btn {
        text-align: center;
    }
}