/* Hero banner */
.dash-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #00664d 100%);
    padding: 110px 0 48px;
}

.dash-hero-content h1 {
    color: white;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 8px;
}

.dash-hero-content p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
}

/* User greeting in header */
.dash-user {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
}

.dash-user i {
    width: 18px;
    height: 18px;
}

/* Mensajes */
.dash-messages {
    padding-top: 24px;
}

.dash-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
}

.dash-alert i {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.dash-alert-success {
    background-color: #f0fdf4;
    border: 1.5px solid #86efac;
    color: #166534;
}

.dash-alert-error {
    background-color: #fff5f5;
    border: 1.5px solid #feb2b2;
    color: #c53030;
}

.dash-alert-info {
    background-color: #eff6ff;
    border: 1.5px solid #93c5fd;
    color: #1e40af;
}

/* Main content area */
.dash-main {
    background-color: var(--bg-light);
    min-height: calc(100vh - 340px);
    padding: 40px 0 80px;
}

/* Form card */
.dash-form-card {
    background-color: var(--bg-white);
    border-radius: 20px;
    padding: 48px;
    box-shadow: var(--shadow-premium);
    max-width: 760px;
    margin: 0 auto;
}

.dash-form-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.dash-form-icon {
    width: 52px;
    height: 52px;
    background-color: var(--primary-light);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
}

.dash-form-icon i {
    width: 26px;
    height: 26px;
}

.dash-form-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 4px;
}

.dash-form-subtitle {
    font-size: 13px;
    color: var(--text-light);
}

.btn-repetir-solicitud {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    flex-shrink: 0;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--primary-color);
    background-color: var(--primary-light);
    border: 1.5px solid var(--primary-color);
    cursor: pointer;
    transition: var(--transition-smooth);
    white-space: nowrap;
}
.btn-repetir-solicitud:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}
.btn-repetir-solicitud i {
    width: 15px;
    height: 15px;
}

/* Error global del formulario */
.dash-form-error {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #fff5f5;
    border: 1.5px solid #feb2b2;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 24px;
    font-size: 13px;
    color: #c53030;
}

/* Secciones */
.dash-section {
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border-color);
}

.dash-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.dash-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.dash-section-title i {
    color: var(--primary-color);
    width: 17px;
    height: 17px;
}

/* Fila de dos columnas */
.dash-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Campos */
.dash-field {
    margin-bottom: 18px;
}

.dash-field:last-child {
    margin-bottom: 0;
}

.dash-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.dash-label i {
    color: var(--primary-color);
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.dash-optional {
    font-weight: 400;
    color: var(--text-light);
    font-size: 12px;
}

.dash-field-error {
    font-size: 12px;
    color: #c53030;
    margin-top: 5px;
}

.dash-field-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #92400e;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 8px 12px;
    margin-top: 8px;
}
.dash-field-info i { flex-shrink: 0; width: 16px; height: 16px; }

.dash-input,
.dash-select,
.dash-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--dark-color);
    background-color: var(--bg-white);
    transition: var(--transition-smooth);
    outline: none;
}

.dash-input:focus,
.dash-select:focus,
.dash-textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 126, 95, 0.1);
}

.dash-input::placeholder,
.dash-textarea::placeholder {
    color: #b0bec5;
}

.dash-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 42px;
    cursor: pointer;
}

.dash-textarea {
    resize: vertical;
    min-height: 140px;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;
    box-sizing: border-box;
    display: block;
}

/* Checkboxes de servicios */
.dash-checkboxes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.dash-checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 14px;
    color: var(--dark-color);
}

.dash-checkbox-item:hover {
    border-color: var(--primary-color);
    background-color: var(--primary-light);
}

.dash-checkbox-item input[type="checkbox"] {
    accent-color: var(--primary-color);
    width: 16px;
    height: 16px;
    cursor: pointer;
    flex-shrink: 0;
}

.dash-checkbox-item.checked {
    border-color: var(--primary-color);
    background-color: var(--primary-light);
}

.dash-no-servicios {
    font-size: 13px;
    color: var(--text-light);
    font-style: italic;
    padding: 10px 0;
}

/* Precio estimado */
.dash-precio-box {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1.5px solid #86efac;
    border-radius: 12px;
    padding: 4px 0;
    margin-top: 18px;
    overflow: hidden;
}

.dash-precio-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
}

.dash-precio-divider {
    height: 1px;
    background-color: #bbf7d0;
    margin: 0 20px;
}

.dash-precio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #166534;
}

.dash-precio-label i {
    width: 15px;
    height: 15px;
    color: var(--primary-color);
}

.dash-precio-secundario {
    font-size: 14px;
    font-weight: 600;
    color: #4ade80;
    color: #16a34a;
}

.dash-precio-valor {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

.dash-precio-nd {
    display: flex;
    flex-direction: row;
    background: #fff8f0;
    border-color: #fcd34d;
    color: #92400e;
    font-size: 13px;
    font-weight: 500;
    gap: 8px;
    padding: 14px 20px;
    align-items: center;
}

.dash-precio-nd i {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #d97706;
}

/* Acciones */
.dash-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.btn-dash-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary-color);
    color: white;
    padding: 13px 28px;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-dash-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 126, 95, 0.25);
}

.btn-dash-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: transparent;
    color: var(--text-light);
    padding: 13px 22px;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    border: 1.5px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-dash-secondary:hover {
    border-color: var(--text-light);
    color: var(--dark-color);
}

.dash-danger-zone {
    margin-top: 24px;
    border: 1px solid #fecaca;
    background-color: #fef2f2;
}

.dash-danger-zone .dash-form-title {
    color: #b91c1c;
}

.dash-danger-zone .dash-form-icon {
    background-color: #fee2e2;
    color: #dc2626;
}

.btn-dash-danger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: transparent;
    color: #dc2626;
    padding: 13px 22px;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    border: 1.5px solid #dc2626;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-dash-danger:hover {
    background-color: #dc2626;
    color: white;
}

@media (max-width: 768px) {
    .dash-form-card {
        padding: 28px 20px;
    }

    .dash-row {
        grid-template-columns: 1fr;
    }

    .dash-checkboxes {
        grid-template-columns: 1fr;
    }

    .dash-form-actions {
        flex-direction: column-reverse;
    }

    .btn-dash-primary,
    .btn-dash-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* ── Ubicación toggle ─────────────────────────────── */
.dash-ubicacion-toggle {
    display: flex;
    gap: 14px;
    margin-bottom: 4px;
}

.dash-ubicacion-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
    background: var(--bg-white);
    user-select: none;
}

.dash-ubicacion-card:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.dash-ubicacion-card.active {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.dash-ubicacion-card input[type="radio"] {
    display: none;
}

.dash-ub-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-smooth);
    color: var(--text-light);
}

.dash-ubicacion-card.active .dash-ub-icon {
    background: var(--primary-color);
    color: white;
}

.dash-ub-icon i { width: 18px; height: 18px; }

.dash-ub-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.dash-ub-titulo {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-color);
}

.dash-ub-sub {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.4;
}

.dash-ubicacion-aviso {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #fffbeb;
    border: 1.5px solid #fcd34d;
    border-radius: 9px;
    padding: 10px 14px;
    font-size: 13px;
    color: #92400e;
    margin-bottom: 14px;
    line-height: 1.5;
}

.dash-ubicacion-aviso i {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    margin-top: 1px;
    color: #d97706;
}

/* Select2 overrides para dashboard */
.dash-select2-wrap .select2-container { width: 100% !important; }
.dash-select2-wrap .select2-container--default .select2-selection--single {
    height: auto;
    padding: 11px 38px 11px 13px;
    border: 1.5px solid var(--border-color);
    border-radius: 9px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--dark-color);
    background-color: var(--bg-white);
    transition: var(--transition-smooth);
}
.dash-select2-wrap .select2-container--default.select2-container--open .select2-selection--single,
.dash-select2-wrap .select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0,126,95,0.1);
    outline: none;
}
.dash-select2-wrap .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--dark-color);
    line-height: 1.5;
    padding: 0;
}
.dash-select2-wrap .select2-container--default .select2-selection--single .select2-selection__placeholder { color: #b0bec5; }
.dash-select2-wrap .select2-container--default .select2-selection--single .select2-selection__arrow { height: 100%; top: 0; right: 10px; }
.select2-dropdown {
    border: 1.5px solid var(--primary-color);
    border-radius: 9px;
    font-family: var(--font-body);
    font-size: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    overflow: hidden;
}
.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1.5px solid var(--border-color);
    border-radius: 7px;
    padding: 7px 11px;
    font-family: var(--font-body);
    font-size: 13px;
    outline: none;
}
.select2-container--default .select2-search--dropdown .select2-search__field:focus { border-color: var(--primary-color); }
.select2-results__group {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 12px 4px;
    background: var(--bg-light);
}
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable { background-color: var(--primary-color); }
.select2-container--default .select2-results__option--selected { background-color: var(--primary-light); color: var(--primary-color); font-weight: 600; }
.select2-results__option { padding: 8px 14px; }

@media (max-width: 600px) {
    .dash-ubicacion-toggle { flex-direction: column; }
}

/* Evitar que los iconos dentro de las cards intercepten clicks */
.dash-ubicacion-card .dash-ub-icon i,
.dash-ubicacion-card .dash-ub-body {
    pointer-events: none;
}

/* ── Trabajadores ─────────────────────────────────── */
.dash-trab-hint {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 16px;
    font-style: italic;
}

.dash-trab-lista {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dash-trab-empty {
    font-size: 13px;
    color: var(--text-light);
    font-style: italic;
    padding: 12px 0;
}

.dash-trab-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
    background: var(--bg-white);
    user-select: none;
    position: relative;
}

.dash-trab-card:hover  { border-color: var(--primary-color); background: var(--primary-light); }
.dash-trab-card.selected { border-color: var(--primary-color); background: var(--primary-light); }

.dash-trab-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.dash-trab-card.selected .dash-trab-avatar { background: var(--primary-hover, #005f47); }

.dash-trab-foto {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--primary-color);
}

.dash-trab-body { flex: 1; min-width: 0; }

.dash-trab-nombre {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 2px;
}

.dash-trab-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 6px;
}

.dash-trab-meta i { width: 12px; height: 12px; flex-shrink: 0; }

.dash-trab-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.dash-trab-rating.sin-eval {
    font-size: 11px;
    color: var(--text-light);
    font-style: italic;
}

.dash-trab-stars {
    display: flex;
    gap: 1px;
    line-height: 1;
}

.dash-trab-stars .star {
    font-size: 15px;
    color: #d1d5db;
}

.dash-trab-stars .star.full {
    color: #f59e0b;
}

.dash-trab-stars .star.half {
    background: linear-gradient(to right, #f59e0b 50%, #d1d5db 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dash-trab-rating-num {
    font-size: 13px;
    font-weight: 700;
    color: var(--dark-color);
}

.dash-trab-trabajos {
    font-size: 11px;
    color: var(--text-light);
}

.dash-trab-presentacion {
    font-size: 13px;
    color: var(--dark-color);
    line-height: 1.5;
    margin-bottom: 8px;
}

.dash-trab-comunas {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.dash-trab-tag {
    font-size: 11px;
    padding: 2px 8px;
    background: var(--bg-light);
    border-radius: 20px;
    color: var(--text-light);
    border: 1px solid var(--border-color);
}

.dash-trab-servicios {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}

.dash-trab-tag-personal {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
}

.dash-trab-servicios .dash-trab-tag {
    background: var(--primary-light);
    color: var(--primary-color);
    border-color: #b6dfd4;
}

.dash-trab-check {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    margin-top: 2px;
}

.dash-trab-card.selected .dash-trab-check {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.dash-trab-check-icon {
    width: 12px;
    height: 12px;
    color: white;
    display: none;
}

.dash-trab-card.selected .dash-trab-check-icon { display: block; }

@media (max-width: 600px) {
    .dash-trab-card { flex-wrap: wrap; }
}

/* ── Campana de notificaciones ── */
.notif-wrap {
    position: relative;
}

.notif-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1.5px solid rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.12);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: background 0.2s;
}

.notif-btn:hover { background: rgba(255,255,255,0.22); }

.notif-btn i { width: 18px; height: 18px; }

.notif-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--primary-color);
    line-height: 1;
}

/* Badge de solicitudes disponibles en nav */
.sol-disp-badge {
    position: absolute;
    top: -7px;
    right: -14px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--primary-color);
    line-height: 1;
    animation: sol-badge-pulse 2.4s ease-in-out infinite;
    z-index: 10;
}

.sol-disp-badge::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: #ef4444;
    opacity: 0;
    animation: sol-badge-ping 2.4s ease-out infinite;
    z-index: -1;
}

@keyframes sol-badge-ping {
    0%   { transform: scale(0.9); opacity: 0.75; }
    70%  { transform: scale(2.2); opacity: 0; }
    100% { transform: scale(2.2); opacity: 0; }
}

@keyframes sol-badge-pulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.15); }
}

.notif-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 320px;
    background: white;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    border: 1px solid var(--border-color);
    z-index: 9999;
    overflow: hidden;
}

.notif-dropdown-header {
    padding: 14px 16px 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--dark-color);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notif-dropdown-header span { opacity: 0.5; font-size: 12px; font-weight: 400; }

.notif-list {
    max-height: 340px;
    overflow-y: auto;
}

.notif-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--bg-light);
    cursor: default;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    transition: background 0.15s;
}

a.notif-link {
    display: flex;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

a.notif-link:hover {
    background: #dcfce7;
}

.notif-item:last-child { border-bottom: none; }

.notif-item.nueva { background: #f0fdf4; }

.notif-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
    flex-shrink: 0;
    margin-top: 5px;
}

.notif-item.leida .notif-dot { background: transparent; }

.notif-body { flex: 1; min-width: 0; }

.notif-msg {
    font-size: 13px;
    color: var(--dark-color);
    line-height: 1.4;
}

.notif-fecha {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 3px;
}

.notif-empty {
    padding: 28px 16px;
    text-align: center;
    font-size: 13px;
    color: var(--text-light);
}

.notif-loading {
    padding: 20px 16px;
    text-align: center;
    font-size: 13px;
    color: var(--text-light);
}

/* ── Bienvenida trabajador ── */
.bienvenida-hero {
    padding-bottom: 56px;
}

.bienvenida-main {
    background: var(--bg-light);
    min-height: calc(100vh - 340px);
    padding: 48px 0 80px;
}

.pasos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.paso-card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow: var(--shadow-premium);
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
}

.paso-numero {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.paso-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.paso-icon-wrap i {
    width: 28px;
    height: 28px;
    color: var(--primary-color);
}

.paso-titulo {
    font-size: 18px;
    font-weight: 800;
    color: var(--dark-color);
    margin: 0;
}

.paso-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.paso-checklist {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.paso-check {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: var(--dark-color);
    font-weight: 500;
}

.paso-check i {
    width: 14px;
    height: 14px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.paso-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-smooth);
    margin-top: 4px;
}

.paso-btn:hover {
    background: #005f47;
    transform: translateY(-1px);
}

.paso-btn i {
    width: 16px;
    height: 16px;
}

@media (max-width: 900px) {
    .pasos-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Modal trabajador preferido ── */
.trab-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.trab-modal {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 560px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    overflow: hidden;
}

.trab-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.trab-modal-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.trab-modal-header h3 i { width: 20px; height: 20px; color: var(--primary-color); }

.trab-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    padding: 4px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    transition: background 0.15s, color 0.15s;
}
.trab-modal-close:hover { background: #f3f4f6; color: #111827; }
.trab-modal-close i { width: 20px; height: 20px; }

.trab-modal-body {
    padding: 16px 24px;
    overflow-y: auto;
    flex: 1;
}

.trab-modal-hint {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0 0 16px;
}

.trab-modal-no-workers {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 24px 0;
    text-align: center;
}
.trab-modal-no-workers i { width: 48px; height: 48px; color: var(--primary-color); }
.trab-modal-no-workers p {
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.6;
    max-width: 420px;
}

.trab-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-shrink: 0;
}

.trab-modal-footer .btn-dash-secondary,
.trab-modal-footer .btn-dash-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ── Reclamos ──────────────────────────────────────────────── */
.reclamo-tipo-grupo {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.reclamo-tipo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    transition: border-color 0.18s, background 0.18s, color 0.18s;
    min-width: 90px;
}

.reclamo-tipo-card input[type="radio"] { display: none; }

.reclamo-tipo-card i { width: 22px; height: 22px; }

.reclamo-tipo-card:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #f0fdf4;
}

.reclamo-tipo-card.selected {
    border-color: var(--primary-color);
    background: #ecfdf5;
    color: var(--primary-color);
}

.dash-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.18s;
    box-sizing: border-box;
}

.dash-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0,148,98,0.1);
}

/* Historial de reclamos */
.reclamo-lista { display: flex; flex-direction: column; gap: 16px; }

.reclamo-item {
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.reclamo-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.reclamo-item-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.reclamo-tipo-badge,
.reclamo-estado-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.reclamo-tipo-badge i { width: 13px; height: 13px; }

.reclamo-tipo-comentario { background: #dbeafe; color: #1d4ed8; }
.reclamo-tipo-reclamo    { background: #fee2e2; color: #b91c1c; }
.reclamo-tipo-sugerencia { background: #fef9c3; color: #854d0e; }

.reclamo-estado-pendiente   { background: #fef3c7; color: #92400e; }
.reclamo-estado-en_revision { background: #dbeafe; color: #1e40af; }
.reclamo-estado-resuelto    { background: #dcfce7; color: #166534; }
.reclamo-estado-cerrado     { background: #f1f5f9; color: #475569; }

.reclamo-fecha { font-size: 12px; color: #94a3b8; white-space: nowrap; }

.reclamo-asunto {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 4px;
}

.reclamo-descripcion {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    white-space: pre-wrap;
}

.reclamo-thread {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.reclamo-msg {
    padding: 12px 14px;
    border-radius: 10px;
    background: #f9fafb;
    border: 1px solid var(--border-color);
}

.reclamo-msg-admin {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.reclamo-msg-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 5px;
}

.reclamo-msg-autor {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6b7280;
}
.reclamo-msg-admin .reclamo-msg-autor { color: #166534; }
.reclamo-msg-autor i { width: 13px; height: 13px; }

.reclamo-msg-fecha { font-size: 11px; color: #9ca3af; white-space: nowrap; }

.reclamo-msg-texto {
    font-size: 13px;
    color: #1f2937;
    line-height: 1.55;
    white-space: pre-wrap;
    margin: 0;
}
.reclamo-msg-admin .reclamo-msg-texto { color: #14532d; }

.reclamo-msg-fotos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.reclamo-msg-foto {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    display: block;
}
.reclamo-msg-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }

.reclamo-cerrado-aviso {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-light);
    font-style: italic;
    margin-top: 12px;
}
.reclamo-cerrado-aviso i { width: 14px; height: 14px; }

.reclamo-reply-form {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

.reclamo-reply-dropzone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    border: 1.5px dashed var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    margin-top: 8px;
    transition: border-color .15s, color .15s;
}
.reclamo-reply-dropzone:hover { border-color: var(--primary-color); color: var(--primary-color); }
.reclamo-reply-dropzone i { width: 15px; height: 15px; }

.reclamo-reply-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.reclamo-reply-preview-item {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}
.reclamo-reply-preview-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

.reclamo-reply-preview-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(0,0,0,.6);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}
.reclamo-reply-preview-remove i { width: 11px; height: 11px; }

.reclamo-reply-error {
    font-size: 12px;
    color: #ef4444;
    font-weight: 600;
    margin: 8px 0 0;
}

.reclamo-reply-acciones {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

/* ── Gestionar dirección ────────────────────────────────────── */
.dash-ub-row {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.dash-ub-card-wrap {
    position: relative;
    flex: 1;
}

.dash-ub-card-wrap .dash-ubicacion-card {
    width: 100%;
}

.dash-ub-gestionar-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.15);
    border: 1.5px solid rgba(255,255,255,0.5);
    border-radius: 6px;
    padding: 3px 9px;
    font-size: 11px;
    font-weight: 600;
    color: inherit;
    cursor: pointer;
    transition: var(--transition-smooth);
    white-space: nowrap;
    z-index: 2;
}

.dash-ub-gestionar-btn:hover { background: rgba(255,255,255,0.3); }

.dash-ub-gestionar-btn:hover { background: rgba(255,255,255,0.15); }
.dash-ub-gestionar-btn i { width: 11px; height: 11px; }

.dash-ub-otro-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 18px;
    border: 1.5px dashed #94a3b8;
    border-radius: 12px;
    background: white;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
    white-space: nowrap;
    min-width: 90px;
}

.dash-ub-otro-btn i {
    width: 18px;
    height: 18px;
}

.dash-ub-otro-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #f0fdf4;
}

/* ── Address modal ──────────────────────────────────────────── */
.dir-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.dir-modal {
    background: var(--bg-white);
    border-radius: 16px;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    overflow: hidden;
}

.dir-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1.5px solid var(--border-color);
}

.dir-modal-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0;
}

.dir-modal-header h3 i { width: 18px; height: 18px; color: var(--primary-color); }

.dir-modal-close {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border: none; background: none; border-radius: 8px;
    cursor: pointer; color: var(--text-light);
    transition: var(--transition-smooth);
}
.dir-modal-close:hover { background: var(--bg-light); color: var(--dark-color); }
.dir-modal-close i { width: 16px; height: 16px; }

.dir-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dir-modal-footer {
    padding: 14px 24px;
    border-top: 1.5px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ── Address card ───────────────────────────────────────────── */
.dir-card {
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 16px;
    transition: var(--transition-smooth);
}

.dir-card.selected { border-color: var(--primary-color); background: var(--primary-light); }
.dir-card.is-pref  { border-color: #fcd34d; }

.dir-card-header {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
}

.dir-card-info { flex: 1; min-width: 0; }

.dir-card-alias {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.dir-card-address {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-color);
}

.dir-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.dir-card-notas {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-light);
    margin: 0;
}
.dir-card-notas i { width: 11px; height: 11px; }

.dir-inmueble-badge {
    font-size: 11px;
    padding: 2px 8px;
    background: var(--primary-light);
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    color: var(--primary-color);
    font-weight: 600;
}

.dir-card-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.dir-card-select { flex: 1; font-size: 13px; padding: 7px 12px; }
.dir-card-edit   { font-size: 13px; padding: 7px 12px; }

.dir-card-delete-btn {
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    border: 1.5px solid #fca5a5;
    background: none;
    border-radius: 8px;
    cursor: pointer;
    color: #ef4444;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}
.dir-card-delete-btn:hover { background: #fef2f2; }
.dir-card-delete-btn i { width: 14px; height: 14px; }

.dir-card-pref {
    width: 30px; height: 30px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border: none; background: none; cursor: pointer;
    color: #d1d5db; border-radius: 6px;
    transition: var(--transition-smooth);
}
.dir-card-pref:hover, .dir-card-pref.dir-pref-active { color: #f59e0b; }
.dir-card-pref i { width: 16px; height: 16px; }

/* ── Address form ───────────────────────────────────────────── */
.dir-form { display: flex; flex-direction: column; gap: 14px; }

.dir-form-row { display: flex; flex-direction: column; gap: 6px; }
.dir-form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.dir-form-field { display: flex; flex-direction: column; gap: 5px; }

.dir-form-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--dark-color);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.dir-form-opt { font-weight: 400; text-transform: none; color: var(--text-light); letter-spacing: 0; }

.dir-form-error {
    font-size: 11px;
    color: #c53030;
    margin: 0;
}

.dir-form-pref-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--dark-color);
    cursor: pointer;
}

.dir-form-hint {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0 0 4px;
}

.dir-map-error {
    font-size: 12px;
    color: #c53030;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 8px 10px;
    margin: 8px 0 0;
    line-height: 1.4;
}

.dir-map-container {
    width: 100%;
    height: 260px;
    border-radius: 10px;
    border: 1.5px solid var(--border-color);
    margin-top: 10px;
    z-index: 1;
}

.dir-map-confirmacion {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #166534;
    margin: 8px 0 0;
}
.dir-map-confirmacion i { width: 14px; height: 14px; }

/* ── Empty state ────────────────────────────────────────────── */
.dir-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px;
    color: var(--text-light);
    text-align: center;
}
.dir-empty-state i { width: 40px; height: 40px; }
.dir-empty-state p { font-size: 14px; margin: 0; }

/* ── Tipo limpieza cards ──────────────────────────────────── */
.dash-tipo-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}

.dash-tipo-card {
    position: relative;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: var(--transition-smooth);
    background: var(--bg-white);
    user-select: none;
}

.dash-tipo-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0; height: 0;
}

.dash-tipo-card:hover  { border-color: var(--primary-color); background: var(--primary-light); }
.dash-tipo-card.active { border-color: var(--primary-color); background: var(--primary-light); box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 34,197,94), 0.15); }

.dash-tipo-nombre {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 6px;
}

.dash-tipo-desc {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.5;
}

.dash-tipo-acciones {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dash-tipo-acciones li {
    position: relative;
    padding-left: 18px;
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.5;
}

.dash-tipo-acciones li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-color);
}

.dash-tipo-ver-mas {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    padding: 0;
    border: none;
    background: none;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
}

.dash-tipo-ver-mas:hover { text-decoration: underline; }

.dash-tipo-ver-mas i { width: 14px; height: 14px; }

/* ── Contadores ───────────────────────────────────────────── */
.dash-counter {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    width: fit-content;
}

.dash-counter-btn {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border: none; background: var(--bg-light);
    cursor: pointer; color: var(--dark-color);
    transition: var(--transition-smooth);
    flex-shrink: 0;
}
.dash-counter-btn:hover { background: var(--primary-light); color: var(--primary-color); }
.dash-counter-btn i { width: 14px; height: 14px; }

.dash-counter-input {
    width: 52px; height: 40px;
    text-align: center;
    border: none; border-left: 1.5px solid var(--border-color); border-right: 1.5px solid var(--border-color);
    font-size: 16px; font-weight: 700;
    color: var(--dark-color);
    -moz-appearance: textfield;
    background: var(--bg-white);
}
.dash-counter-input::-webkit-outer-spin-button,
.dash-counter-input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ── Servicios adicionales ────────────────────────────────── */
.dash-servicio-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition-smooth);
    user-select: none;
}
.dash-servicio-item:hover  { border-color: var(--primary-color); background: var(--primary-light); }
.dash-servicio-item.active { border-color: var(--primary-color); background: var(--primary-light); }
.dash-servicio-item input  { accent-color: var(--primary-color); width: 16px; height: 16px; flex-shrink: 0; }
.dash-servicio-nombre      { flex: 1; font-size: 13px; font-weight: 500; color: var(--dark-color); }
.dash-servicio-precio      { font-size: 12px; font-weight: 700; color: var(--primary-color); white-space: nowrap; }

.dash-servicio-info {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border: none;
    background: none;
    padding: 0;
    color: var(--text-light);
    cursor: pointer;
}
.dash-servicio-info:hover  { color: var(--primary-color); }
.dash-servicio-info i      { width: 15px; height: 15px; pointer-events: none; }

.dash-servicio-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: 220px;
    background: var(--dark-color);
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    text-align: left;
    padding: 8px 10px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
    z-index: 20;
}
.dash-servicio-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--dark-color);
}
.dash-servicio-info.show .dash-servicio-tooltip { display: block; }

/* ── Layout 2 columnas (form + sidebar) ───────────────────── */
.dash-layout-2col {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: start;
}

.dash-precio-sidebar {
    position: sticky;
    top: 88px;
}

.dash-precio-sidebar-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 24px;
    border: 1px solid #e2e8f0;
}

.dash-precio-sidebar-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #64748b;
    margin-bottom: 16px;
}

.dash-precio-sidebar-header i {
    width: 16px;
    height: 16px;
    color: var(--primary-color);
}

@media (max-width: 900px) {
    .dash-layout-2col {
        grid-template-columns: 1fr;
    }
    .dash-precio-sidebar {
        position: static;
        order: -1;
    }
}

/* ── Última limpieza: grupo de botones ────────────────────── */
.dash-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.dash-btn-opt {
    flex: 1 1 auto;
    min-width: 160px;
    padding: 12px 18px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: white;
    color: #1e293b;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    text-align: center;
}

.dash-btn-opt:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.dash-btn-opt.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.dash-recomendacion {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 14px;
    background: #fefce8;
    border: 1.5px solid #fde047;
    border-radius: 8px;
    font-size: 13px;
    color: #854d0e;
    line-height: 1.4;
}

.dash-recomendacion i {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #ca8a04;
}

/* ── Precio estimado ──────────────────────────────────────── */
.dash-precio-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px 22px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark, #15803d));
    border-radius: 14px;
    color: white;
}

.dash-precio-valor {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1px;
    white-space: nowrap;
    color: inherit;
}

.dash-precio-duracion {
    font-size: 13px;
    opacity: 0.85;
    line-height: 1.4;
}

.dash-precio-disclaimer {
    margin-top: 12px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.6;
    padding: 10px 14px;
    background: #f8fafc;
    border-left: 3px solid #94a3b8;
    border-radius: 0 6px 6px 0;
}

.dash-precio-recargo {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 10px;
    padding: 10px 14px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    font-size: 12.5px;
    color: #92400e;
    line-height: 1.5;
}

.dash-precio-recargo i { flex-shrink: 0; width: 15px; height: 15px; margin-top: 1px; }

.dash-descuento-box { margin-top: 14px; }

.dash-descuento-input-row {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.dash-descuento-input-row .dash-input { flex: 1; }

.dash-descuento-msg {
    margin-top: 6px;
    font-size: 12.5px;
    color: #16a34a;
    min-height: 16px;
}

.dash-descuento-msg.dash-descuento-error { color: #c53030; }

.dash-precio-descuento-row,
.dash-precio-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding: 8px 0;
    font-size: 14px;
}

.dash-precio-descuento-row {
    color: #16a34a;
    font-weight: 600;
    border-top: 1px dashed var(--border-color);
}

.dash-precio-total-row {
    color: var(--dark-color);
    font-weight: 800;
    font-size: 16px;
    border-top: 1.5px solid var(--border-color);
}

.dash-terms-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
    cursor: pointer;
}

.dash-terms-check input[type="checkbox"] {
    flex-shrink: 0;
    width: 17px;
    height: 17px;
    margin-top: 2px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.dash-terms-check span {
    font-size: 12px;
    color: #475569;
    line-height: 1.5;
}

.dash-terms-check a {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 600;
}

.dash-terms-check a:hover {
    color: var(--primary-dark, #15803d);
}

.btn-sidebar-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 14px;
    padding: 14px;
    font-size: 15px;
}

/* Los diálogos de SweetAlert2 deben quedar siempre por encima de nuestros
   modales propios (.nt-modal-overlay usa z-index:2000), ya que varias
   pantallas piden una confirmación de Swal mientras un modal sigue abierto. */
.swal2-container {
    z-index: 4000 !important;
}
