/*
=================================================
DC Human Shield
Archivo: assets/css/dc-human-shield.css
=================================================
*/

/* Campo público */
.dc-human-shield {
    display: grid;
    gap: 12px;
    margin: 14px 0;
    padding: 14px;
    border: 1px solid #bfdbfe;
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, .10), transparent 34%),
        #f8fbff;
}

.dc-human-shield-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dc-human-shield-icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: #2563eb;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.dc-human-shield-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dc-human-shield-header strong {
    display: block;
    color: #071225;
    font-size: 13px;
    font-weight: 950;
}

.dc-human-shield-header small {
    display: block;
    margin-top: 3px;
    color: #53657d;
    font-size: 11px;
    font-weight: 750;
}

.dc-human-shield-question {
    display: grid;
    gap: 6px;
}

.dc-human-shield-question span {
    color: #071225;
    font-size: 12px;
    font-weight: 950;
}

.dc-human-shield-question input {
    width: 100%;
    min-height: 42px;
    border-radius: 13px;
    border: 1px solid #cbd8ea;
    padding: 10px 12px;
    color: #071225;
    background: #ffffff;
    font-size: 13px;
    outline: none;
}

.dc-human-shield-question input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .10);
}

.dc-human-shield-trap {
    position: absolute !important;
    left: -99999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.dc-human-shield-alert {
    margin: 0 0 16px;
    padding: 13px 15px;
    border-radius: 14px;
    border: 1px solid #fecaca;
    background: #fee2e2;
    color: #991b1b;
    display: grid;
    gap: 4px;
}

.dc-human-shield-alert strong {
    font-size: 13px;
    font-weight: 950;
}

.dc-human-shield-alert span {
    font-size: 12px;
    font-weight: 750;
}

/* Panel Super Admin */
.dc-hs-page {
    padding: 28px 18px 54px;
    background: transparent;
}

.dc-hs-layout {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.dc-hs-hero,
.dc-hs-card {
    border: 1px solid #d8e4f5;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .07);
}

.dc-hs-hero {
    position: sticky;
    top: 88px;
    padding: 22px;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, .14), transparent 34%),
        linear-gradient(145deg, #ffffff 0%, #f8fbff 58%, #eff6ff 100%);
}

.dc-hs-badge {
    display: inline-flex;
    width: fit-content;
    padding: 5px 9px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    font-size: 10px;
    line-height: 1;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .35px;
}

.dc-hs-hero h1 {
    margin: 16px 0 10px;
    color: #071225;
    font-size: 34px;
    line-height: 1.02;
    letter-spacing: -1.2px;
    font-weight: 950;
}

.dc-hs-hero p {
    color: #53657d;
    font-size: 13px;
    line-height: 1.65;
    margin: 0;
}

.dc-hs-status {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.dc-hs-status div {
    padding: 13px 14px;
    border-radius: 16px;
    background: rgba(255,255,255,.86);
    border: 1px solid #d9e6f7;
}

.dc-hs-status strong {
    display: block;
    color: #071225;
    font-size: 18px;
    line-height: 1;
    font-weight: 950;
}

.dc-hs-status span {
    display: block;
    margin-top: 5px;
    color: #53657d;
    font-size: 11px;
    font-weight: 800;
}

.dc-hs-note {
    display: grid;
    gap: 7px;
    margin-top: 20px;
    padding: 15px;
    border-radius: 18px;
    background: rgba(248,250,252,.92);
    border: 1px solid #dbe4ef;
}

.dc-hs-note strong {
    color: #071225;
    font-size: 12px;
    font-weight: 950;
}

.dc-hs-note span {
    display: inline-flex;
    width: fit-content;
    padding: 6px 9px;
    border-radius: 10px;
    background: #061127;
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
}

.dc-hs-card {
    padding: 24px;
    overflow: hidden;
}

.dc-hs-card-header {
    margin-bottom: 18px;
}

.dc-hs-card-header h2,
.dc-hs-card h1 {
    margin: 12px 0 6px;
    color: #071225;
    font-size: 27px;
    line-height: 1.08;
    letter-spacing: -.8px;
    font-weight: 950;
}

.dc-hs-card-header p,
.dc-hs-card p {
    color: #53657d;
    line-height: 1.55;
    font-size: 13px;
    margin: 0;
}

.dc-hs-alert {
    padding: 13px 15px;
    border-radius: 14px;
    margin-bottom: 12px;
    font-weight: 900;
    font-size: 13px;
}

.dc-hs-alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #a7f3d0;
}

.dc-hs-form {
    display: grid;
    gap: 16px;
}

.dc-hs-global-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid #dbe4ef;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, .08), transparent 36%),
        #f8fafc;
}

.dc-hs-form label {
    display: grid;
    gap: 6px;
}

.dc-hs-form label span {
    color: #071225;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 950;
}

.dc-hs-form input[type="text"],
.dc-hs-form input[type="number"],
.dc-hs-form select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #cbd8ea;
    border-radius: 13px;
    background: #ffffff;
    color: #071225;
    font-size: 13px;
    outline: none;
    box-shadow: none;
}

.dc-hs-form input:focus,
.dc-hs-form select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .10);
}

.dc-hs-switch {
    display: flex !important;
    align-items: center;
    gap: 10px !important;
    padding: 12px 13px;
    border-radius: 15px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    cursor: pointer;
}

.dc-hs-switch input {
    display: none;
}

.dc-hs-switch > span {
    width: 44px;
    height: 25px;
    border-radius: 999px;
    background: #cbd5e1;
    position: relative;
    flex: 0 0 auto;
    transition: .2s ease;
}

.dc-hs-switch > span::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 17px;
    height: 17px;
    border-radius: 999px;
    background: #ffffff;
    transition: .2s ease;
}

.dc-hs-switch input:checked + span {
    background: #2563eb;
}

.dc-hs-switch input:checked + span::before {
    transform: translateX(19px);
}

.dc-hs-switch strong {
    color: #071225;
    font-size: 13px;
    font-weight: 950;
}

.dc-hs-section-title {
    display: grid;
    gap: 3px;
}

.dc-hs-section-title strong {
    color: #071225;
    font-size: 15px;
    font-weight: 950;
}

.dc-hs-section-title span {
    color: #53657d;
    font-size: 12px;
    font-weight: 750;
}

.dc-hs-context-list {
    display: grid;
    gap: 11px;
}

.dc-hs-context-item {
    display: grid !important;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px !important;
    padding: 15px 16px;
    border: 1px solid #d8e4f5;
    border-radius: 17px;
    background: #f8fafc;
    cursor: pointer;
}

.dc-hs-context-item input {
    width: 18px;
    height: 18px;
}

.dc-hs-context-item strong {
    display: block;
    color: #071225;
    font-size: 14px;
    font-weight: 950;
}

.dc-hs-context-item small {
    display: block;
    margin-top: 4px;
    color: #53657d;
    font-size: 11px;
    font-weight: 750;
}

.dc-hs-context-item em {
    padding: 7px 10px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 10px;
    line-height: 1;
    font-style: normal;
    font-weight: 950;
}

.dc-hs-preview {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid #dbe4ef;
    border-radius: 18px;
    background: #f8fafc;
}

.dc-hs-actions {
    display: grid;
    grid-template-columns: 1fr;
}

.dc-hs-primary {
    width: 100%;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 950;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid #2563eb;
    background: #2563eb;
    color: #ffffff !important;
    box-shadow: 0 12px 26px rgba(37, 99, 235, .22);
}

.dc-hs-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.dc-human-shield-sidebar-link {
    margin-top: 8px;
    border-top: 1px solid #e2e8f0;
}

body.dc-human-shield-is-app .dc-hs-page {
    padding-top: 32px;
}

body.dc-human-shield-is-app .dc-site-main {
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, .06), transparent 34%),
        #f3f6fb !important;
}

@media (max-width: 1180px) {
    .dc-hs-layout {
        grid-template-columns: 1fr;
    }

    .dc-hs-hero {
        position: relative;
        top: auto;
    }
}

@media (max-width: 720px) {
    .dc-hs-page {
        padding: 20px 12px 42px;
    }

    .dc-hs-card,
    .dc-hs-hero {
        padding: 18px;
        border-radius: 20px;
    }

    .dc-hs-global-card {
        grid-template-columns: 1fr;
    }

    .dc-hs-context-item {
        grid-template-columns: auto 1fr;
    }

    .dc-hs-context-item em {
        grid-column: 2;
        width: fit-content;
    }
}
