.form-mobile-shell {
    max-width: 430px;
    margin: 0 auto;
    padding-bottom: 32px;
}

.form-hero-mobile {
    position: relative;
    overflow: hidden;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 18px;
    padding: 24px 20px;
    border-radius: 32px;
    background:
        radial-gradient(circle at 92% 10%, rgba(96, 165, 250, .35), transparent 34%),
        linear-gradient(145deg, #123a78 0%, #0f2246 48%, #081427 100%);
    border: 1px solid rgba(147, 197, 253, .22);
    box-shadow: 0 26px 60px rgba(0, 0, 0, .32);
}

.form-hero-mobile::after {
    content: "";
    position: absolute;
    width: 170px;
    height: 170px;
    right: -70px;
    bottom: -80px;
    border-radius: 999px;
    background: rgba(59, 130, 246, .20);
}

.form-hero-icon {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    border-radius: 19px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}

.form-hero-icon i {
    font-size: 27px;
    color: #dbeafe;
}

.form-eyebrow {
    display: block;
    margin-bottom: 7px;
    color: #bfdbfe;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .16em;
}

.form-hero-mobile h1 {
    margin: 0 0 8px;
    font-size: 31px;
    line-height: 1;
    color: #fff;
}

.form-hero-mobile p {
    margin: 0;
    color: rgba(226, 232, 240, .82);
    font-size: 15px;
    line-height: 1.45;
}

.form-card-mobile {
    position: relative;
    padding: 18px;
    border-radius: 32px;
    background: rgba(10, 20, 38, .86);
    border: 1px solid rgba(148, 163, 184, .18);
    box-shadow: 0 26px 60px rgba(0, 0, 0, .30);
    backdrop-filter: blur(14px);
}

.form-section-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 28px 0 16px;
}

.form-section-title:first-of-type {
    margin-top: 2px;
}

.form-section-title span {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 15px;
    background: linear-gradient(145deg, #3b82f6, #1d4ed8);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 950;
    box-shadow: 0 12px 24px rgba(37, 99, 235, .28);
}

.form-section-title h2 {
    margin: 0 0 3px;
    font-size: 22px;
    line-height: 1.05;
    color: #fff;
}

.form-section-title p {
    margin: 0;
    color: #a9b6ca;
    font-size: 13px;
    line-height: 1.35;
}

.form-grid-mobile {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.field,
.autocomplete-field {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.field label {
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid rgba(100, 116, 139, .55);
    background: rgba(8, 16, 32, .84);
    color: #f8fafc;
    border-radius: 18px;
    padding: 0 16px;
    outline: none;
    font-size: 15px;
    font-weight: 750;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.field input,
.field select {
    min-height: 54px;
}

.field textarea {
    min-height: 124px;
    padding-top: 15px;
    padding-bottom: 15px;
    resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
    color: rgba(203, 213, 225, .54);
    font-weight: 700;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: #60a5fa;
    background: rgba(10, 22, 43, .98);
    box-shadow: 0 0 0 4px rgba(96, 165, 250, .13);
}

.chips-box {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip-check {
    position: relative;
}

.chip-check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.chip-check span {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(15, 23, 42, .96);
    border: 1px solid #334155;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 850;
    transition: .18s ease;
}

.chip-check span::before {
    display: none;
}

.chip-check input:checked+span {
    background: rgba(37, 99, 235, .22);
    border-color: #60a5fa;
    color: #bfdbfe;
    box-shadow: 0 10px 24px rgba(37, 99, 235, .18);
}

.autocomplete-results {
    position: absolute;
    top: calc(100% + 9px);
    left: 0;
    right: 0;
    z-index: 50;
    display: none;
    max-height: 360px;
    overflow-y: auto;
    border-radius: 20px;
    background: #071225;
    border: 1px solid rgba(96, 165, 250, .28);
    box-shadow: 0 24px 50px rgba(0, 0, 0, .45);
    scrollbar-width: thin;
    scrollbar-color: #3b82f6 #071225;
}

.autocomplete-results::-webkit-scrollbar {
    width: 8px;
}

.autocomplete-results::-webkit-scrollbar-track {
    background: #071225;
}

.autocomplete-results::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 999px;
}

.autocomplete-item {
    min-height: 58px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    color: #e5e7eb;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
}

.autocomplete-item:last-child {
    border-bottom: 0;
}

.autocomplete-item:hover {
    background: rgba(37, 99, 235, .18);
}

.autocomplete-item strong {
    color: #f8fafc;
    font-size: 14px;
}

.autocomplete-item small {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 750;
}

.autocomplete-new {
    position: sticky;
    top: 0;
    z-index: 2;
    min-height: 66px;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    background: linear-gradient(135deg, #1d4ed8, #0f2a55);
    border-bottom: 1px solid rgba(191, 219, 254, .25);
}

.autocomplete-new:hover {
    background: linear-gradient(135deg, #2563eb, #123a78);
}

.new-client-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .18);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
    font-weight: 950;
}

.autocomplete-loading,
.autocomplete-empty {
    color: #94a3b8;
    font-weight: 800;
}

.form-alert {
    margin-bottom: 16px;
    padding: 15px 16px;
    border-radius: 20px;
    font-weight: 850;
    line-height: 1.35;
}

.form-alert.success {
    background: rgba(22, 163, 74, .16);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, .30);
}

.form-alert.error {
    background: rgba(220, 38, 38, .18);
    color: #fecaca;
    border: 1px solid rgba(248, 113, 113, .34);
}

.form-submit-btn {
    width: 100%;
    min-height: 60px;
    margin-top: 24px;
    border: 0;
    border-radius: 22px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    font-size: 16px;
    font-weight: 950;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 18px 34px rgba(37, 99, 235, .30);
}

.form-submit-btn:disabled {
    opacity: .68;
    cursor: not-allowed;
}

@media(min-width:701px) {
    .form-mobile-shell {
        max-width: 760px;
    }

    .form-grid-mobile {
        grid-template-columns: 1fr 1fr;
    }

    .field-full {
        grid-column: 1 / -1;
    }

    .chips-box {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.upload-card {
    padding: 18px;
    border-radius: 20px;
    border: 1px dashed rgba(96, 165, 250, .35);
    background: rgba(8, 16, 32, .55);
}

.upload-card input[type=file] {
    width: 100%;
    color: #fff;
}

.upload-card.is-dragover {
    border-color: rgba(96, 165, 250, .9);
    background: rgba(96, 165, 250, .12);
}

.adjuntos-preview {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.adjunto-item {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(15, 23, 42, .9);
    border: 1px solid rgba(148, 163, 184, .18);
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 700;
}

.checklist-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checklist-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checklist-item input[type="text"] {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(100, 116, 139, .55);
    background: rgba(8, 16, 32, .84);
    color: #f8fafc;
    border-radius: 16px;
    padding: 0 14px;
    font-size: 14px;
    outline: none;
}

.checklist-item input[type="text"]:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, .13);
}

.trabajo-card {
    margin-bottom: 16px;
    padding: 16px;
    border-radius: 22px;
    background: rgba(15, 23, 42, .55);
    border: 1px solid rgba(148, 163, 184, .18);
}

.trabajo-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    color: #e2e8f0;
}

.btn-remove-trabajo {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 12px;
    background: rgba(220, 38, 38, .18);
    color: #fecaca;
    cursor: pointer;
}

.btn-add-trabajo {
    width: 100%;
    min-height: 50px;
    margin-bottom: 8px;
    border: 1px dashed rgba(96, 165, 250, .45);
    border-radius: 18px;
    background: transparent;
    color: #93c5fd;
    font-weight: 850;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.firma-canvas-wrap {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(100, 116, 139, .55);
}

#firmaCanvas {
    display: block;
    width: 100%;
    touch-action: none;
}

.firma-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.btn-clear-firma {
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(148, 163, 184, .35);
    border-radius: 14px;
    background: transparent;
    color: #cbd5e1;
    font-weight: 750;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* ================================
   MODO CLARO (LIGHT THEME)
   Overrides aditivos - no modifica reglas oscuras existentes.
   El hero azul, el circulo de seccion y el panel de autocompletar
   quedan intencionalmente iguales en ambos temas (elementos de marca).
================================ */

[data-theme="light"] .form-card-mobile {
    background: rgba(255, 255, 255, .96);
    border-color: #e2e8f0;
}

[data-theme="light"] .form-section-title h2 {
    color: #0f172a;
}

[data-theme="light"] .field label {
    color: #475569;
}

[data-theme="light"] .field input,
[data-theme="light"] .field select,
[data-theme="light"] .field textarea {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #0f172a;
}

[data-theme="light"] .field input::placeholder,
[data-theme="light"] .field textarea::placeholder {
    color: rgba(15, 23, 42, .40);
}

[data-theme="light"] .field input:focus,
[data-theme="light"] .field select:focus,
[data-theme="light"] .field textarea:focus {
    background: #ffffff;
}

[data-theme="light"] .chip-check span {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #334155;
}

[data-theme="light"] .upload-card {
    background: #f8fafc;
}

[data-theme="light"] .upload-card input[type=file] {
    color: #0f172a;
}

[data-theme="light"] .adjunto-item {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #1e293b;
}

[data-theme="light"] .form-alert.success {
    color: #15803d;
}

[data-theme="light"] .form-alert.error {
    color: #b91c1c;
}

[data-theme="light"] .checklist-item input[type="text"] {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #0f172a;
}

[data-theme="light"] .trabajo-card {
    background: #f8fafc;
    border-color: #e2e8f0;
}

[data-theme="light"] .trabajo-card-header {
    color: #0f172a;
}

[data-theme="light"] .firma-canvas-wrap {
    border-color: #cbd5e1;
}

[data-theme="light"] .btn-clear-firma {
    border-color: #cbd5e1;
    color: #475569;
}

[data-theme="light"] .upload-card.is-dragover {
    background: rgba(96, 165, 250, .1);
}
