/* ============================================================
   Tecnico Profile (user_type=tecnico)
   ============================================================ */
.tecnico-profile-container {
    max-width: 900px;
}
.tecnico-profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.tecnico-photo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.tecnico-photo-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e5e7eb;
}
.tecnico-photo-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    border: 3px dashed #d1d5db;
}
.tecnico-photo-upload-btn {
    font-size: 12px;
    color: #3b82f6;
    cursor: pointer;
    font-weight: 500;
}
.tecnico-photo-upload-btn:hover { text-decoration: underline; }
.tecnico-availability-toggle, .tecnico-visibility-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.tecnico-availability-toggle label, .tecnico-visibility-toggle label {
    font-size: 12px;
    color: #6b7280;
}
.tecnico-profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.tecnico-field-group {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
}
.tecnico-field-group h3 {
    margin: 0 0 16px;
    font-size: 15px;
    color: #1a1a2e;
}
.tecnico-field-full {
    grid-column: 1 / -1;
}
@media (max-width: 768px) {
    .tecnico-profile-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Technician Directory (user_type=productora)
   ============================================================ */
.tec-dir-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.tec-dir-filters input { flex: 1; min-width: 200px; }
.tec-dir-filters select { min-width: 160px; }
.tec-dir-table-wrapper {
    overflow-x: auto;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}
.tec-dir-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.tec-dir-table thead th {
    background: #f9fafb;
    text-align: left;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .5px;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
}
.tec-dir-table thead th:first-child { padding-left: 20px; width: 48px; }
.tec-dir-table thead th:last-child { width: 48px; text-align: center; }
.tec-dir-row {
    cursor: pointer;
    transition: background .15s;
}
.tec-dir-row:hover { background: #f9fafb; }
.tec-dir-row td {
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
    vertical-align: middle;
}
.tec-dir-row:last-child td { border-bottom: none; }
.tec-dir-td-photo { padding-left: 20px; width: 48px; }
.tec-dir-td-name { font-weight: 600; color: #1a1a2e; }
.tec-dir-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    font-size: 0.85rem;
}
.tec-dir-photo-sm {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: #f3f4f6;
}
.tec-dir-photo-placeholder-sm {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e0e7ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #4338ca;
    font-weight: 700;
}
.tec-dir-fav-btn-tbl {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #d1d5db;
    transition: color .2s;
    padding: 4px;
}
.tec-dir-fav-btn-tbl.is-favorite { color: #f59e0b; }
.tec-dir-fav-btn-tbl:hover { color: #f59e0b; }

/* Tecnico Detail Modal: Redesigned */
.td-hero {
    text-align: center;
    margin-bottom: 20px;
}
.td-avatar {
    width: 90px;
    height: 90px;
    margin: 0 auto 12px;
    border-radius: 50%;
    overflow: hidden;
    background: #f3f4f6;
    box-shadow: 0 2px 12px rgba(0,0,0,.1);
}
.td-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.td-avatar-init {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: #4338ca;
    background: #e0e7ff;
    border-radius: 50%;
}
.td-hero-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a2e;
}
.td-hero-nickname {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 2px;
}
.td-hero-avail {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 4px;
}
.td-avail-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.td-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
}
.td-tag {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #f3f4f6;
    color: #374151;
}
.td-tag-primary {
    background: #ede9fe;
    color: #5b21b6;
}
.td-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 16px;
}
.td-card {
    background: #f9fafb;
    border-radius: 10px;
    padding: 14px 16px;
}
.td-card-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 8px;
}
.td-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #374151;
    padding: 4px 0;
}
.td-row-icon {
    font-size: 0.9rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}
.td-label {
    font-weight: 600;
    font-size: 0.78rem;
    color: var(--text-muted);
    min-width: 80px;
    flex-shrink: 0;
}
.td-empty-val {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.85rem;
}
.td-links-grid {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
}
.td-links-grid .td-row-link {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 250px;
    display: inline-block;
}
.td-row-link {
    color: var(--primary);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.td-row-link:hover { text-decoration: underline; }
.td-section {
    margin-top: 16px;
}
.td-admin-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-top: 8px;
}
.td-history-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
}
.td-history-item {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 0.85rem;
    padding: 4px 0;
    border-bottom: 1px solid var(--border-light, #f0f0f0);
}
.td-history-item:last-child { border-bottom: none; }
.td-history-project { font-weight: 600; color: var(--text-primary); }
.td-history-role { color: var(--text-secondary); }
.td-history-date { margin-left: auto; color: var(--text-muted); font-size: 0.78rem; white-space: nowrap; }
.td-bio-text {
    font-size: 0.88rem;
    color: #374151;
    line-height: 1.6;
    margin: 0;
    background: #f9fafb;
    padding: 12px 16px;
    border-radius: 10px;
}
.td-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: #f3f4f6;
    color: #374151;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    transition: background .15s;
}
.td-link-btn:hover { background: #e5e7eb; }
.td-cv-btn {
    padding: 5px 14px;
    border: 1px solid var(--primary, #2563eb);
    background: var(--primary, #2563eb);
    color: #fff;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
}
.td-cv-btn:hover:not(:disabled) { filter: brightness(0.95); }
.td-cv-btn:disabled {
    background: #e5e7eb;
    border-color: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
}
.td-cv-nomsg {
    color: #6b7280;
    font-size: 0.82rem;
    font-style: italic;
    margin-right: 8px;
}
.td-fav-section {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
}
.td-fav-textarea {
    width: 100%;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 10px;
    font-size: 0.85rem;
    resize: vertical;
    min-height: 60px;
    font-family: inherit;
}
.td-fav-actions {
    margin-top: 10px;
    display: flex;
    gap: 8px;
}
.td-action-main {
    text-align: center;
    padding-top: 4px;
}

.td-action-borrar {
    text-align: center;
    margin-top: 14px;
}

