﻿:root {
    --inst-primario: #6a2c38;
    --inst-primario-hover: #7b2f3d;
}

.page {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 14px 16px;
}

.alert-info-custom {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 16px;
}

    .alert-info-custom p {
        font-size: 13px;
        color: #1d4ed8;
        line-height: 1.5;
        margin: 0;
    }

.hero {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    margin-bottom: 16px;
}

.hero-top {
    background: linear-gradient(90deg, #6a2c38 0%, #7b2f3d 50%, #5a222c 100%);
    padding: 32px 36px;
    position: relative;
    overflow: hidden;
}

    .hero-top::after {
        content: "";
        position: absolute;
        right: 0;
        top: 0;
        width: 220px;
        height: 100%;
        background: url('../img/tuercas.png') no-repeat right center;
        background-size: contain;
        opacity: 0.4;
        z-index: 0;
    }

    .hero-top > * {
        position: relative;
        z-index: 1;
    }

.badge-dep {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    border: 1px solid rgba(255,255,255,0.2);
}

.hero-top h1 {
    color: #fff;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.3;
}

.hero-top p {
    color: rgba(255,255,255,0.75);
    font-size: 14px;
    margin: 0;
}

.hero-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    border-top: 1px solid #e5e7eb;
}

.meta-cell {
    padding: 18px 24px;
    border-right: 1px solid #e5e7eb;
}

    .meta-cell:last-child {
        border-right: none;
    }

    .meta-cell label {
        display: block;
        font-size: 11px;
        font-weight: 600;
        letter-spacing: .06em;
        text-transform: uppercase;
        color: #9ca3af;
        margin-bottom: 4px;
    }

    .meta-cell strong {
        font-size: 15px;
        font-weight: 600;
        color: #3b3c36;
    }

.tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.tag-green {
    background: #ecfdf5;
    color: #065f46;
}

.tag-blue {
    background: #eff6ff;
    color: #1d4ed8;
}

.tag-red {
    background: #fff1f2;
    color: #6a2c38;
}

.det-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    margin-bottom: 16px;
    overflow: hidden;
}

.det-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 24px;
    border-bottom: 1px solid #f3f4f6;
}

.icon-circle {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.icon-red {
    background: #fff1f2;
}

.icon-blue {
    background: #eff6ff;
}

.icon-green {
    background: #ecfdf5;
}

.icon-amber {
    background: #fffbeb;
}

.det-card-header h2 {
    font-size: .90rem;
    font-weight: 700;
    color: #3b3c36;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.det-card-body {
    padding: 20px 24px;
}

    .det-card-body p {
        font-size: 14px;
        color: #3b3c36;
        line-height: 1.7;
        margin: 0;
    }

.steps-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    margin: 0;
}

    .steps-list li {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        font-size: 1rem;
        color: #3b3c36;
        padding-top: 3px;
        line-height: 1.5;
    }

.step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #6a2c38;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.req-personalidad {
    font-size: 13px;
    font-weight: 700;
    color: #6a2c38;
    padding: 12px 24px 8px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.req-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

    .req-table th {
        text-align: left;
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .05em;
        color: #9ca3af;
        padding: 10px 12px;
        border-bottom: 2px solid #f3f4f6;
    }

        .req-table th:first-child {
            padding-left: 24px;
        }

    .req-table td {
        padding: 10px 12px;
        border-bottom: 1px solid #f9fafb;
        color: #3b3c36;
        vertical-align: top;
        font-size: 14px;
    }

        .req-table td:first-child {
            padding-left: 24px;
        }

    .req-table tr:last-child td {
        border-bottom: none;
    }

    .req-table tr:hover td {
        background: #fafafa;
    }

.check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ecfdf5;
    color: #065f46;
    font-size: 13px;
}

.cta-bar {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.cta-info p {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 2px;
}

.cta-info strong {
    font-size: 1rem;
    font-weight: 700;
    color: #3b3c36;
}

.btn-det-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #6a2c38;
    color: #fff !important;
    border: none;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s;
}

    .btn-det-primary:hover {
        background: #7b2f3d;
    }


@media (max-width: 640px) {
    .cta-bar {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

        .cta-bar .d-flex {
            justify-content: center;
            width: 100%;
        }

        .cta-bar .tramite-btn {
            width: 100%;
            justify-content: center;
        }
}