:root {
            --bg: #f8fafc;
            --accent: #ffd300;
            --accent-soft: #fff8e7; 
            --text-main: #1e293b;
            --text-muted: #64748b;
            --white: #ffffff;
            --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        }

        body {
            font-family: 'Inter', sans-serif;
            background-color: var(--bg);
            margin: 0;
            padding: 20px;
            display: flex;
            justify-content: center;
        }

        .profile-card {
            background: var(--white);
            width: 100%;
            max-width: 800px;
            border-radius: 20px;
            box-shadow: var(--shadow);
            overflow: hidden;
            border: 1px solid #e2e8f0;
        }

        .profile-header {
            background: linear-gradient(135deg, var(--accent) 0%, #facc15 100%);
            height: 120px;
            position: relative;
        }

        /* --- CONTENEDOR DE AVATAR CON CARGA --- */
        .avatar-container {
            position: absolute;
            bottom: -50px;
            left: 50%;
            transform: translateX(-50%);
            cursor: pointer;
        }

        .profile-avatar {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            border: 5px solid var(--white);
            object-fit: cover;
            background: #eee;
            box-shadow: var(--shadow);
            transition: filter 0.3s;
        }

        /* Ícono de cámara que aparece al pasar el mouse */
        .camera-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 120px;
            height: 120px;
            border-radius: 50%;
            background: rgba(0, 0, 0, 0.4);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s;
            color: white;
            font-size: 24px;
            border: 5px solid transparent;
        }

        .avatar-container:hover .camera-overlay {
            opacity: 1;
        }

        .avatar-container:hover .profile-avatar {
            filter: blur(2px);
        }

        #fileInput {
            display: none; /* Escondemos el input feo de Windows */
        }

        /* Resto del diseño */
        .profile-body { padding: 60px 40px 40px; text-align: center; }
        .user-name { font-size: 24px; font-weight: 700; color: var(--text-main); margin: 10px 0 5px; }
        .user-role { color: var(--text-muted); font-size: 14px; margin-bottom: 30px; display: block; }

        .info-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            text-align: left;
            margin-top: 20px;
        }

        .info-item {
            padding: 15px;
            background: var(--accent-soft);
            border-radius: 12px;
            border: 1px solid #fef08a;
        }

        .info-label { display: block; font-size: 11px; text-transform: uppercase; color: var(--text-muted); font-weight: 600; margin-bottom: 5px; }
        .info-value { font-size: 15px; color: var(--text-main); font-weight: 500; }

        .edit-btn {
            margin-top: 30px;
            padding: 12px 25px;
            background: var(--text-main);
            color: white;
            border: none;
            border-radius: 10px;
            cursor: pointer;
            font-weight: 600;
            transition: transform 0.2s;
        }

        .edit-btn:active { transform: scale(0.95); }