/* Contacto / nuevo ticket — usa la paleta del tema (variables.css) */

.d21-contact {
    --d21c-card: #ffffff;
    --d21c-shadow: 0 1px 2px rgba(9, 26, 122, .04), 0 10px 30px rgba(9, 26, 122, .07);
    display: grid;
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}
[data-bs-theme="dark"] .d21-contact {
    --d21c-card: #1e293b;
    --d21c-shadow: 0 1px 2px rgba(0, 0, 0, .3);
}

/* Panel lateral */

.d21-contact-side {
    position: sticky;
    top: 90px;
    padding: 32px 28px;
    border-radius: calc(var(--custom-radius) * 1.5);
    background:
        radial-gradient(360px 220px at 100% 0, rgba(47, 217, 239, .28), transparent 70%),
        linear-gradient(160deg, var(--primary-darker) 0%, var(--primary-dark) 60%, var(--primary) 100%);
    color: #fff;
}
.d21-contact-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    font-family: var(--font-family-monospace);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.d21-contact-side h2 {
    margin: 16px 0 10px;
    font-family: var(--font-family-monospace);
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
    color: #fff;
}
.d21-contact-side p {
    margin: 0 0 22px;
    font-size: 14.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .85);
}
.d21-contact-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.d21-contact-list li + li {
    margin-top: 6px;
}
.d21-contact-list a,
.d21-contact-list div {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px;
    margin: 0 -10px;
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    transition: background .15s;
}
.d21-contact-list a:hover {
    background: rgba(255, 255, 255, .1);
}
.d21-contact-ico {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, .14);
    font-size: 17px;
}
.d21-contact-list small {
    display: block;
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .7);
}
.d21-contact-list strong {
    display: block;
    font-family: var(--font-family-monospace);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
}
.d21-contact-social {
    display: flex;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .18);
}
.d21-contact-social a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    transition: background .15s, transform .15s;
}
.d21-contact-social a:hover {
    background: rgba(255, 255, 255, .28);
    transform: translateY(-2px);
}

/* Formulario */

.d21-contact-form {
    padding: 32px;
    border: 1px solid var(--border-color);
    border-radius: calc(var(--custom-radius) * 1.5);
    background: var(--d21c-card);
    box-shadow: var(--d21c-shadow);
}
.d21-contact-title {
    margin: 0 0 6px;
    font-family: var(--font-family-monospace);
    font-size: 24px;
    font-weight: 700;
    color: var(--heading-color);
}
.d21-contact-lead {
    margin: 0 0 24px;
    font-size: 14.5px;
    color: var(--body-color);
}
.d21-contact-form label {
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--heading-color);
}
.d21-contact-form .form-group {
    margin-bottom: 18px;
}
.d21-contact-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(28, 64, 242, .15);
}
.d21-contact-captcha {
    margin: 4px 0 20px;
    padding: 16px 18px 2px;
    border: 1px dashed var(--border-color);
    border-radius: var(--custom-radius);
}
.d21-contact-captcha:empty {
    display: none;
}
.d21-contact-captcha p {
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--body-color);
}
.d21-contact-captcha #inputCaptcha {
    max-width: 140px;
}
.d21-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.d21-contact-actions .btn {
    padding: 12px 26px;
    font-family: var(--font-family-monospace);
    font-weight: 500;
}
.d21-contact-actions .btn-primary i {
    margin-right: 6px;
    font-size: 13px;
}

@media (max-width: 991px) {
    .d21-contact {
        grid-template-columns: minmax(0, 1fr);
    }
    .d21-contact-side {
        position: static;
    }
    .d21-contact-form {
        order: -1;
    }
}
@media (max-width: 575px) {
    .d21-contact-side,
    .d21-contact-form {
        padding: 24px 18px;
    }
    .d21-contact-actions .btn {
        flex: 1 1 auto;
    }
}

/* Modo oscuro: los campos necesitan contraste contra la tarjeta */
[data-bs-theme="dark"] .d21-contact-form .form-control,
[data-bs-theme="dark"] .d21-contact-form .custom-file-label {
    border: 1px solid #334155 !important;
    background-color: #0f172a !important;
    color: #e2e8f0 !important;
}

/* ---------- Paso 1: elegir el área ---------- */

.d21-dept-list {
    display: grid;
    gap: 14px;
}
.d21-dept {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--custom-radius);
    background: var(--d21c-card);
    text-decoration: none !important;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.d21-dept:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: 0 12px 28px rgba(9, 26, 122, .12);
}
.d21-dept-icon {
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--primary-light);
    color: var(--primary-darker);
    font-size: 20px;
    transition: background .2s, color .2s;
}
.d21-dept:hover .d21-dept-icon {
    background: var(--primary);
    color: #fff;
}
.d21-dept-body {
    flex: 1 1 auto;
    min-width: 0;
}
.d21-dept-body strong {
    display: block;
    font-family: var(--font-family-monospace);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--heading-color);
}
.d21-dept-body small {
    display: block;
    margin-top: 3px;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--body-color);
}
.d21-dept-go {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid var(--primary);
    border-radius: 999px;
    font-family: var(--font-family-monospace);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--primary);
    white-space: nowrap;
    transition: background .15s, color .15s;
}
[data-bs-theme="dark"] .d21-dept-go {
    color: #8ea2ff;
}
.d21-dept-go i {
    font-size: 11px;
    transition: transform .2s;
}
.d21-dept:hover .d21-dept-go {
    background: var(--primary);
    color: #fff;
}
.d21-dept:hover .d21-dept-go i {
    transform: translateX(3px);
}
.d21-dept-self {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px dashed var(--border-color);
}
.d21-dept-self strong {
    display: block;
    margin-bottom: 10px;
    font-family: var(--font-family-monospace);
    font-size: 14px;
    font-weight: 600;
    color: var(--heading-color);
}
.d21-dept-self-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.d21-dept-self-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    font-size: 13.5px;
    color: var(--body-color);
    text-decoration: none !important;
}
.d21-dept-self-links a:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.d21-dept-self-links i {
    color: var(--primary);
}
@media (max-width: 575px) {
    .d21-dept {
        flex-wrap: wrap;
        padding: 16px;
    }
    .d21-dept-body {
        flex-basis: calc(100% - 66px);
    }
    .d21-dept-go {
        width: 100%;
        justify-content: center;
    }
}
