.eruditus-dashboard {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1f2937;
    line-height: 1.5;
}

.eruditus-dashboard * {
    box-sizing: border-box;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    max-width: 1200px;
    margin: 40px auto;
}

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

.empresa-sidebar,
.empresa-contenido {
    background: #fff;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid #f3f4f6;
}

.empresa-sidebar {
    height: fit-content;
}

.eruditus-dashboard .card {
    border: none !important;
    box-shadow: none !important;
}

.username {
    text-align: center;
    font-weight: 800;
    font-size: 1.5rem;
    margin: 0 0 4px 0;
    color: #111827;
    letter-spacing: -0.025em;
}

.sector {
    text-align: center;
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0 0 24px 0;
    font-weight: 500;
}

.btn-ver-perfil {
    display: block;
    background: #4f46e5;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s;
    margin-bottom: 24px;
}

.btn-ver-perfil:hover {
    background: #4338ca;
    color: #fff;
}

.eruditus-dashboard form label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #374151;
}

.eruditus-dashboard input[type="text"],
.eruditus-dashboard input[type="email"],
.eruditus-dashboard input[type="password"],
.eruditus-dashboard input[type="file"],
.eruditus-dashboard input[type="tel"],
.eruditus-dashboard input[type="url"],
.eruditus-dashboard textarea,
.eruditus-dashboard select {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    background-color: #fff;
    border: 1px solid #d1d5db;
}

.eruditus-dashboard textarea {
    min-height: 120px;
    resize: vertical;
}

.eruditus-dashboard input:focus,
.eruditus-dashboard textarea:focus,
.eruditus-dashboard select:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.eruditus-dashboard button {
    background: #111827;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
    transition: background-color 0.2s;
}

.eruditus-dashboard button:hover {
    background: #000;
}

.eruditus-dashboard h3 {
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 1.5rem;
    color: #111827;
    padding-bottom: 16px;
}

/* Nuevos Estilos */

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

@media (max-width: 600px) {
    .form-grid-2,
    .form-grid-3 {
        grid-template-columns: 1fr;
    }
}

.input-disabled {
    background: #f3f4f6 !important;
    cursor: not-allowed;
    color: #6b7280;
}

.sidebar-contact {
    margin-bottom: 24px;
    font-size: 0.9em;
    color: #4b5563;
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}

.sidebar-contact p {
    margin: 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.sidebar-social {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.sidebar-social a {
    text-decoration: none;
    color: #4f46e5;
    font-size: 0.85em;
    font-weight: 600;
    padding: 4px 8px;
    background: #eef2ff;
    border-radius: 6px;
    transition: all 0.2s;
}

.sidebar-social a:hover {
    background: #4f46e5;
    color: #fff;
}

.photo-uploader {
    text-align: center;
    margin-bottom: 20px;
}

.photo-uploader .photo-label {
    display: block;
    margin: 0 auto;
    position: relative;
    cursor: pointer;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden; /* Ensures overlay matches circle */
    border: 4px solid #f9fafb;
    box-shadow: 0 0 0 1px #e5e7eb;
}

.perfil-foto {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 0.85em;
    font-weight: 600;
}

.photo-label:hover .photo-overlay {
    opacity: 1;
}
