.layout-docs {
    row-gap: 24px;
}


.sc-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.03);
}

.docs-nav {
    padding: 24px 20px;
}

.sticky-nav {
    position: sticky;
    top: 90px;

}

.docs-nav h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #111827;
}

.docs-nav p.text-muted {
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: #6b7280;
}

.docs-nav-group {
    margin-bottom: 15px;
}

.docs-nav-group.mt-15 {
    margin-top: 15px;
}

.docs-nav-subtitle {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.docs-nav-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.95rem;
}

.docs-nav-link {
    width: 100%;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 12px;
    text-align: left;
    color: #374151;
    cursor: pointer;
    font: inherit;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.docs-nav-link span {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fee2e2;

    color: #b91c1c;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.docs-nav-link:hover {
    background-color: #ffe4e6;
    color: #b91c1c;
}

.docs-nav-link.active {
    background-color: #fecaca;
    color: #b91c1c;
    font-weight: 600;
}


.docs-panel-wrapper {
    min-height: 260px;
    padding: 24px;

}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.docs-section-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
}

.docs-section-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    color: #111827;
}

.badge-docs {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #fee2e2;
    color: #b91c1c;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.docs-section-body {
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.6;
}

.docs-section-body h4 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    font-weight: 600;
    color: #111827;
}

.docs-section-body p:last-child {
    margin-bottom: 0;
}


.service-box,
.elegant-card {
    background: #f9fafb;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 24px;
    border: 1px solid #e5e7eb;
}

.docs-section-body .service-box:first-child {
    margin-top: 20px;
}

.service-box p,
.elegant-card p {
    margin-bottom: 8px;
}

.service-box ul {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 0.94rem;
}

.service-box ul li+li {
    margin-top: 4px;
}


.postal-table-card,
.elegant-table-wrapper {
    margin-top: 24px;
    margin-bottom: 24px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 18px;
    overflow: hidden;
}

.postal-table-title,
.table-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 14px;
    color: #111827;
}

.postal-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.postal-table,
.elegant-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    min-width: 640px;
}

.postal-table thead tr,
.elegant-table thead tr {
    background: #dc2626;

    color: #ffffff;
}

.postal-table th,
.elegant-table th,
.postal-table td,
.elegant-table td {
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    vertical-align: middle;
}

.postal-table th,
.elegant-table th {
    font-weight: 600;
    text-align: left;
    font-size: 0.9rem;
}

.postal-table tbody tr:nth-child(even),
.elegant-table tbody tr:nth-child(even) {
    background: #f9fafb;
}

.table-footnote {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 10px;
    font-style: italic;
}

.highlight-red {
    color: #b91c1c;
    font-weight: 600;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}


.format-image-card,
.postal-example-img,
.time-illu,
.access-image,
.forms-image,
.packing-image,
.addr-example-image {
    margin-top: 24px;
    margin-bottom: 24px;
    text-align: center;
}

.format-image-card img,
.postal-example-img img,
.time-illu img,
.access-image img,
.forms-image img,
.packing-image img,
.addr-example-image img {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: inline-block;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}


@media (min-width: 768px) {

    .addr-example-image img,
    .postal-example-img img,
    .time-illu img,
    .forms-image img,
    .packing-image img {
        max-width: 640px;
    }
}

.format-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    font-weight: 600;
    min-width: 140px;
}

.format-cell img {
    max-width: 72px;
    height: auto;
    display: block;
}


.packaging-row {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 20px;
}

.packaging-text {
    flex: 1 1 0;
}

.packaging-illu {
    flex: 0 0 220px;
    text-align: center;
}

.packaging-illu img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

@media (max-width: 768px) {
    .packaging-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .packaging-illu {
        flex-basis: auto;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}


.conditions-grid,
.time-grid,
.classification-blocks {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 16px;
    margin-bottom: 20px;
}

@media (min-width: 768px) {

    .time-grid,
    .classification-blocks {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .conditions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.condition-box,
.time-box,
.classification-card,
.tp-box {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

.time-box--prioritar {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.condition-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 10px;
    margin-bottom: 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #fee2e2;
    color: #b91c1c;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}


.condition-list,
.tariff-list,
.tp-list,
.access-list,
.forms-list,
.standard-format-list,
.packing-list,
.addr-rules-list,
.addr-main-list,
.addr-case-list {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-top: 8px;
    margin-bottom: 16px;
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.6;
}

.condition-list li,
.tariff-list li,
.tp-list li,
.access-list li,
.forms-list li,
.standard-format-list li,
.packing-list li {
    margin-bottom: 6px;
}


.addr-write-list ul,
.standard-format-list ul,
.tariff-list--nested {
    list-style-type: circle;
    padding-left: 1.4rem;
    margin-top: 6px;
    margin-bottom: 6px;
}


#cap3 .docs-section-body ol,
#cap5 .docs-section-body ol {
    list-style-type: decimal;
    padding-left: 1.5rem;
    margin-top: 10px;
    margin-bottom: 16px;
}

#cap3 .docs-section-body ol>li,
#cap5 .docs-section-body ol>li {
    margin-bottom: 8px;
    line-height: 1.55;
}


.link-highlight {
    color: #dc2626;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed #fca5a5;
    transition: all 0.2s ease;
}

.link-highlight:hover {
    color: #991b1b;
    border-bottom-color: #dc2626;
}

.btn-sm {
    padding: 7px 14px;
    font-size: 0.85rem;
}

.w-100 {
    width: 100%;
}

.elegant-cta {
    margin-top: 24px;
    padding: 20px;
    background: #fef2f2;
    border-radius: 12px;
    text-align: center;
    border: 1px dashed #fca5a5;
}

.btn-elegant-primary,
.form-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 999px;
    background: #dc2626;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    margin-top: 10px;
}

.btn-elegant-primary:hover,
.form-link-btn:hover {
    background: #b91c1c;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4);
}


.tariff-docs {
    margin-top: 16px;
}

.doc-list,
.tp-docs-list {
    list-style: none;
    padding-left: 0;
    margin: 8px 0 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.doc-list a,
.tp-docs-list a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    color: #dc2626;
    padding: 4px 0;
    transition: color 0.2s;
}

.doc-list a:hover,
.tp-docs-list a:hover {
    color: #991b1b;
    text-decoration: underline;
}

.tp-docs-box {
    background: #fff7ed;
    border-radius: 12px;
    border: 1px solid #fed7aa;
    padding: 16px;
    margin-top: 20px;
}

.tp-docs-box h5 {
    color: #9a3412;
    margin-bottom: 10px;
}


.forbidden-card {
    margin-top: 24px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

.forbidden-header {
    background: #dc2626;
    color: #ffffff;
    padding: 16px 20px;
}

.forbidden-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
}

.forbidden-list {
    display: flex;
    flex-direction: column;
}

.forbidden-item {
    display: flex;
    align-items: flex-start;
    padding: 16px 20px;
    gap: 16px;
    border-bottom: 1px solid #f3f4f6;
}

.forbidden-item:nth-child(odd) {
    background: #fafafa;
}

.forbidden-item:last-child {
    border-bottom: none;
}

.forbidden-icon {
    flex: 0 0 56px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.forbidden-icon span {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: #fef2f2;
    border: 2px solid #fca5a5;
    color: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.forbidden-text h5 {
    margin: 0 0 6px;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #111827;
}

.forbidden-text p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #4b5563;
}

@media (max-width: 640px) {
    .forbidden-item {
        padding: 12px 14px;
        gap: 12px;
    }

    .forbidden-icon {
        flex-basis: 46px;
    }

    .forbidden-icon span {
        width: 46px;
        height: 46px;
        font-size: 20px;
    }
}


@media (max-width: 991.98px) {
    .sticky-nav {
        position: static;
    }

    .docs-nav {
        margin-bottom: 24px;
    }

    .docs-panel-wrapper {
        padding: 16px;
    }
}

@media (max-width: 768px) {
    .postal-table-card {
        padding: 12px;
    }

    .postal-table,
    .elegant-table {
        font-size: 0.85rem;
    }
}